Configuring Reverse DNS in BIND on Kloxo centOS

Configuring Reverse DNS in BIND on Kloxo centOS

When you nslookup or dig some ipaddress,

your server name sometime got “default unknown”

This is due to the reverse dns is not configured propertly.

Usually DNS is doing domain to ip forward mapping.

But the MX and mail service need ip to domain mapping in order to work properly.

Here is the configuration of reverse dns under centOS 5.0 and Kloxo.

kloxo reverse dns configure.

Two files :

 

One file in kloxo.named.conf

which is located at  /var/named/chroot/etc/

zone “1.168.192.in-addr.arpa” { type master; file “/var/named/1.168.192.in-addr.arpa”; allow-update { none; };};

Generate a zone file and put it under:

/var/named/chroot/var/named/1.168.192.in-addr.arpa

with contents as :

@   IN  SOA ns2.androidlit.com. youyoukty.gmail.com. (
2014022601  ; Serial
10800   ; Refresh
3600    ; Retry
604800  ; Expire
86400 ) ; Minimum

1.168.192.in-addr.arpa.                IN      NS      ns1.androidlit.com.
1.168.192.in-addr.arpa.                IN      NS      ns2.androidlit.com.

2               IN      PTR     ns1.androidlit.com.
3              IN      PTR     ns2.androidlit.com.

 

restart bind server, test it using nslookup youripaddress

 

Reference:

zone “0.168.192.in-addr.arpa” IN { type master; file “0.168.192.in-addr.arpa”; allow-update { none; }; };

via Configuring Reverse DNS in BIND 9 | Phil Chen.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s