Printable Version of Topic
Click here to view this topic in its original format
Scientific Linux Forum.org > Networking and wireless > Bind Reverse DNS


Posted by: dcatkin Dec 28 2016, 10:21 PM
Here are the files:

Main dns zone file

$ORIGIN .
$TTL 604800
@ IN SOA ns.dyourdomain.com. root.yourdomain.com. (
2016122701 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800); Negative Cache TTL

IN NS ns.yourdomain.com.
IN NS ns1.yourdomain.com.


IN MX 10 mail.yourdomain.com.
IN MX 20 mail.yourdomain.com.
IN MX 0 smtp.yourdomain.com.
;
@ IN NS nsyourdomain.com.
@ IN NS ns1.yourdomain.com.
yourdomain.com. IN MX 0 smtp
yourdomain.com. IN MX 10 mail
ns IN A xxx.xxx.xxx
ns1 IN A xxx.xxx.xxx
mail IN A xxx.xxx.xxx ; We have our mail server somewhere else.
smtp IN A xxx.xxx.xxx
www IN A xxx.xxx.xxx
ftp IN A xxx.xxx.xxx
server IN A xxx.xxx.xxx
laptop IN A xxx.xxx.xxx
router IN A xxx.xxx.xxx
router IN A xxx.xxx.xxx

Posted by: dcatkin Dec 28 2016, 10:27 PM
Reverse map

; reverse map for xxx1/24.
$ORIGIN xxx.xxx.xx.xxx.in-addr.arpa.
$TTL 86400
@ IN SOA ns.yourdomain.com. hostmaster.yourdomain.com. (
2018122702 ; serial
21600 ; refresh after 6 hours
3600 ; retry after 1 hour
604800 ; expire after 1 week
86400 ) ; minimum TTL of 1 day
;
@ IN NS ns.davidcatkin.com.
.IN-ADDR.ARPA. IN NS ns.yourdomain.com.
.IN-ADDR.ARPA. IN PTR ns.yourdomain.com.
.IN-ADDR.ARPA. IN PTR ns1.yourdomain.com.
.IN-ADDR.ARPA. IN PTR yourdomain.com.


141 IN PTR ns.yourdomain.com.
141 IN PTR ns1.yourdomain.com.
141 IN PTR ftp.yourdomain.com.
122.2 IN PTR server.yourdomain.com.
122.3 IN PTR laptop.davidcatkin.com.
122.1 IN PTR yourdomain.

Posted by: inittux Jan 15 2017, 10:45 PM
What exactly isn't working? What happens when you try and do a reverse lookup? Any errors in the logs?

Posted by: inittux Jan 17 2017, 07:25 PM
Since you haven't been online in a while I'll just post what I noticed.

I think the only lines you should remove are these:

CODE

IN-ADDR.ARPA. IN NS ns.yourdomain.com.
.IN-ADDR.ARPA. IN PTR ns.yourdomain.com.
.IN-ADDR.ARPA. IN PTR ns1.yourdomain.com.
.IN-ADDR.ARPA. IN PTR yourdomain.com.


And remove the double digits in your PTR section, and change x.x.x.x(4 digits to 3) to x.x.x in $ORIGIN

" Note that a reverse name resolution zone requires the first three blocks of the IP address reversed followed by .in-addr.arpa. This allows the single block of IP numbers used in the reverse name resolution zone file to be associated with the zone. "

See the redhat https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/s2-bind-configuration-zone-reverse.html

It should look like this( I replaced the x's with a a random number)
CODE

; reverse map for xxx1/24.
$ORIGIN 10.10.10.in-addr.arpa.
$TTL 86400
@ IN SOA ns.yourdomain.com. hostmaster.yourdomain.com. (
2018122702; serial
21600; refresh after 6 hours
3600; retry after 1 hour
604800; expire after 1 week
86400 ); minimum TTL of 1 day
;
@ IN NS ns.davidcatkin.com.

141 IN PTR ns.yourdomain.com.
141 IN PTR ns1.yourdomain.com.
141 IN PTR ftp.yourdomain.com.
122 IN PTR server.yourdomain.com.
122 IN PTR laptop.davidcatkin.com.
122 IN PTR yourdomain.

'
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)