Issue with reverse dns and local caching name server

Jason Crummack jason.crummack at easysoft.com
Wed Jun 10 09:19:12 UTC 2009


Hi all,

I'm fairly new to bind configuration and was wondering if you could 
point me in the right direction for issues we seem to be having with our 
caching name server reverse looking up a particular address, i've been 
banging my head against this for the last couple of days now and 
wondered if you could point me in the right direction on solving the issue.

here's what i'm getting with a local host command

$ host -d 203.22.30.47 127.0.0.1  

Trying "47.30.22.203.in-addr.arpa"
Received 43 bytes from 127.0.0.1#53 in 0 ms
Trying "47.30.22.203.in-addr.arpa"
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:

Host 47.30.22.203.in-addr.arpa not found: 2(SERVFAIL)
Received 43 bytes from 127.0.0.1#53 in 0 ms


$ dig +trace @127.0.0.1 -x 203.22.30.47

; <<>> DiG 9.4.3 <<>> +trace @127.0.0.1 -x 203.22.30.47
; (1 server found)
;; global options:  printcmd
.                       517909  IN      NS      G.ROOT-SERVERS.NET.
.                       517909  IN      NS      A.ROOT-SERVERS.NET.
.                       517909  IN      NS      B.ROOT-SERVERS.NET.
.                       517909  IN      NS      K.ROOT-SERVERS.NET.
.                       517909  IN      NS      J.ROOT-SERVERS.NET.
.                       517909  IN      NS      M.ROOT-SERVERS.NET.
.                       517909  IN      NS      H.ROOT-SERVERS.NET.
.                       517909  IN      NS      L.ROOT-SERVERS.NET.
.                       517909  IN      NS      C.ROOT-SERVERS.NET.
.                       517909  IN      NS      I.ROOT-SERVERS.NET.
.                       517909  IN      NS      E.ROOT-SERVERS.NET.
.                       517909  IN      NS      F.ROOT-SERVERS.NET.
.                       517909  IN      NS      D.ROOT-SERVERS.NET.
;; Received 492 bytes from 127.0.0.1#53(127.0.0.1) in 1 ms

203.in-addr.arpa.       86400   IN      NS      TINNIE.ARIN.NET.
203.in-addr.arpa.       86400   IN      NS      NS-SEC.RIPE.NET.
203.in-addr.arpa.       86400   IN      NS      NS4.APNIC.NET.
203.in-addr.arpa.       86400   IN      NS      DNS1.TELSTRA.NET.
203.in-addr.arpa.       86400   IN      NS      NS1.APNIC.NET.
203.in-addr.arpa.       86400   IN      NS      NS3.APNIC.NET.
;; Received 185 bytes from 202.12.27.33#53(M.ROOT-SERVERS.NET) in 273 ms

30.22.203.in-addr.arpa. 86400   IN      NS      ns.bigtrolley.com.au.
30.22.203.in-addr.arpa. 86400   IN      NS      ns.opensystems.com.au.
;; Received 106 bytes from 193.0.0.196#53(NS-SEC.RIPE.NET) in 26 ms

47.30.22.203.in-addr.arpa. 38400 IN     PTR     mail.opensystems.com.au.
30.22.203.in-addr.arpa. 38400   IN      NS      ns02.opensystems.com.au.
30.22.203.in-addr.arpa. 38400   IN      NS      ns01.opensystems.com.au.
;; Received 150 bytes from 203.22.30.26#53(ns.bigtrolley.com.au) in 326 ms


if I use an external dns nameserver available to us the lookup succeeds

$ host -d 203.22.30.47 82.138.243.4

Trying "47.30.22.203.in-addr.arpa"
Using domain server:
Name: 82.138.243.4
Address: 82.138.243.4#53
Aliases:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64989
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;47.30.22.203.in-addr.arpa.     IN      PTR

;; ANSWER SECTION:
47.30.22.203.in-addr.arpa. 38400 IN     PTR     mail.opensystems.com.au.

;; AUTHORITY SECTION:
30.22.203.in-addr.arpa. 38400   IN      NS      ns02.opensystems.com.au.
30.22.203.in-addr.arpa. 38400   IN      NS      ns01.opensystems.com.au.

Received 118 bytes from 82.138.243.4#53 in 1473 ms

running bind version 9.4.3

named.conf
<<<
options {
  directory "/var/named";
  query-source address 192.168.0.15 port 53;
  allow-recursion { any; };
  allow-query { any; };
  allow-query-cache { any; };
};

logging {
        category lame-servers { null; };
};

# main root caches
zone "." {
    type hint;
    file "root.cache";
};
 >>>

Many Thanks

Jason Crummack
Easysoft Limited




More information about the bind-users mailing list