Howtos / Articles

Check the reverse dns hostname for a IP on Linux

This guide will step you through how to take an IP address, and find out what its reverse dns host name is. This is useful for checking mail server DNS setup, etc.

The DNS system works two ways. It is used to convert host names to IP addresses, but it can also convert IP addresses to host names.

Two handy programs to perform DNS queries on Linux are ‘dig’ and ‘host’. If either of these aren’t installed on your system, they should be available in your distributions repositories.

Using ‘dig’:

$ dig -x +short


$ dig -x +short

Using ‘host’:

$ host


$ host domain name pointer

Share this howto article!
  • Facebook
  • Twitter
  • Reddit
  • email

Leave a Reply




You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>