HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Bind DNS cannot find in-addr.arpa (http://www.howtoforge.com/forums/showthread.php?t=47157)

tomtom901 9th July 2010 15:56

Bind DNS cannot find in-addr.arpa
 
4 Attachment(s)
Hi All,

I started toying around with O'Reilly's DNS and Bind book today, but I'm having some minor problems with my rDNS. I can forward lookup using nslookup, but my reverse lookup doesn't seem to work.

Hope somebody could point it out.

Forward lookup
Code:

[root@ns2 var]#nslookup orange
Server:        127.0.0.1
Address:        127.0.0.1#53

Name:  orange.real-websolutions.net
Address: MY IP

Reverse Lookup
Code:

[root@ns2 var]#nslookup MY IP
Server:        127.0.0.1
Address:        127.0.0.1#53

*** Can't find MY IP rDNS.in-addr.arpa.: No answer

I've also added txt files from:

/etc/resolv.conf
/etc/named.conf
/var/named/db.127.0.
/var/named/db.My IP rDNS

Hoping someone can point me in the right direction!

falko 10th July 2010 11:37

Please try with dig:
Code:

dig -x your_ip
You should add
Code:

nameserver 127.0.0.1
to your resolv.conf.

matty 13th July 2010 02:16

You've got some issues with your configuration. In your zone file, you are trying to resolve IPs 79.99.27.8.1 and 79.99.27.8.2. Obviously, there's no such IPs.

OK, here's how to fix things.

Your zone file can be named normally, rather than backwards. It's just a filename, and doing it the normal way around will make more sense to you later. Even more so when you find yourself maintaining hundreds of zone files one day. So, first step, rename your file to db.79.99.27. Note that I dropped the 8 from the name. The 8 (and the 1 & 2) go into the file itself.

Now, fix the named.conf zone entry to point at the new filename, and to also drop the 8 from the zone.

zone "27.99.79.in-addr.arpa" {
type master;
file "/path/to/db.79.99.27";
};

Now add records to the zone as desired. You also need to add a dot after the names, otherwise the zone name is appended to the end of the name (which is why you only need to put 1 2 8 etc, not 1.27.99.79.in-addr.arpa., which can also do)

1 IN PTR ns1.real-websolutions.net.
2 IN PTR ns2.real-websolutions.net.
8 IN PTR mail.real-websolutions.net.

Don't forget to increment the serial number, and reload the named configuration.


All times are GMT +2. The time now is 19:34.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.