Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> Bind Reverse DNS, I can't get reverse mapping to work
dcatkin
 Posted: Dec 28 2016, 10:21 PM
Quote Post


SLF Newbie


Group: Members
Posts: 9
Member No.: 1751
Joined: 29-July 12









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
PM
^
dcatkin
 Posted: Dec 28 2016, 10:27 PM
Quote Post


SLF Newbie


Group: Members
Posts: 9
Member No.: 1751
Joined: 29-July 12









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.
PM
^
inittux
 Posted: Jan 15 2017, 10:45 PM
Quote Post


SLF Geek
****

Group: Members
Posts: 279
Member No.: 953
Joined: 20-October 11









What exactly isn't working? What happens when you try and do a reverse lookup? Any errors in the logs?

--------------------
PM
^
inittux
 Posted: Jan 17 2017, 07:25 PM
Quote Post


SLF Geek
****

Group: Members
Posts: 279
Member No.: 953
Joined: 20-October 11









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 docs

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.

--------------------
PM
^
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll