I'm not sure where this really fits in the Unix.com forums, but this seemed to be a good spot for it. If not, please let me know:
I've been trying to track down an issue that I've had for quite a while with reverse lookups. I've got a primary and secondary DNS that are authoritative for some four IP address ranges and 30+ domains. The forward lookups work just fine. But within the past year I've been getting more and more issues with certain ISPs not accepting mail from our domains due to reverse lookup failures. A few years ago I ran all of our domains through various tests at
DNSStuff.com and cleaned up a lot of mistakes from years past. Everything seemed to be working fine then, and even now excepting the reverse zone errors I see every so often. (We're using a port of BIND 8 to VMS [Multinet], but the principles of DNS are the same as *nix)
In our named.conf file I have a reverse zone defined as such:
zone "1.168.192.in-addr.arpa" {
type master;
file "192-168-1.REV";
};
In the actual zone file itself I have entries in the following manner:
@ IN SOA dns1.mydomain.com. myname.mydomain.com. (
2006092601 21600 1800 86400 86400 )
IN NS dns1.mydomain.com.
IN NS dns2.mydomain.com.
IN NS ns1.state.mystate.us.
IN NS ns2.state.mystate.us.
IN NS ns4.state.mystate.us.
;
4 IN PTR srv2.mydomain.com.
7 IN PTR srv5.mydomain.com.
8 IN PTR srv6.mydomain.com.
...and so on
If I do an nslookup for 192.168.1.4 I get 'srv2.mydomain.com' as I would expect. However, if I do an nslookup for 4.1.168.192.in-addr.arpa I get "no A records for this zone". My reason for doing both queries is that the DNSStuff site has a semi-FAQ about reverse DNS. And they point out:
Quote:
Reverse DNS entries are set up with PTR records (whereas standard DNS uses A records), which look like "25.2.0.192.in-addr.arpa. PTR host.example.com" (whereas standard DNS would look like "host.example.com. A 192.0.2.25").
Exceprted from DNSStuff.com
Based on that suggestion it would seem that my reverse zone files are incorrectly formatted? Or... there are two styles either of which work? Or... that newer versions of BIND use the in-addr.arpa formatting and our BIND 8 is just fine? I honestly can't tell which. Most web references and tutorials I've seen regarding DNS setup seem to illustrate the method we employ and not the suggested method that DNSStuff indicates. Am I misunderstanding something here?