in centos

How do I setup reverse dns for my IP?

1 Star2 Stars3 Stars4 Stars5 Stars
Ratings: 4.75/5 from 12 users.

What is the reverse DNS?

Reverse DNS is an IP address to domain name mapping – the opposite of Forward DNS which maps domain names to IP addresses.

Comparison :

host has address

host domain name pointer

What does the Reverse DNS serve for?

The Reverse DNS is one of the basic requirements for running some Internet protocols. It is also often used as a spam filter to determine whether the IP address of the incoming message matches an authenticated domain name and to block the message if it doesn’t.

Who controls the reverse DNS?

Reverse DNS is controlled by the owner of the IP address (probably your SIP).

Configuring the reverse DNS

Lets setup PTR record for the IP address ‘’. It should be pointed to ‘’.

Add the new zone to the ‘named.conf’ file as follows :

add zone under your zone “”

nano /etc/named.conf

zone "" {
type master;
file "/var/named/";
zone "" {
type master;
file "/var/named/";

then edit it
nano /var/named/

$ttl 38400 IN SOA (
38400 ) IN NS PTR

save and restart your dns
service named start

Related Posts

Written By:

Blog for everything about hosting, website, server and technical support

Add a Comment

Your email address will not be published. Required fields are marked *