reverse address resolution problems

David Botham dns at botham.net
Thu Aug 8 17:03:38 UTC 2002




> -----Original Message-----
> From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org] On
> Behalf Of Aidan Mark Humphreys
> Sent: Thursday, August 08, 2002 7:10 AM
> To: comp-protocols-dns-bind at isc.org
> Subject: reverse address resolution problems
> 
> 
> This has to be something dumb, but I can't see it.
> 
> My first attempt to configure bind as a local name server - not
> much success. I'm using a real domain name but only on the
> internal LAN.
> 
> FQNR works, but short names don't resolve and inverse resolution
> doesn't work. The syslog shows no errors on "ndc reload".
> 
> What have I done wrong?
> 
> 
> 
> 
> Here are all the details ...
> 
> # named -v
> named 8.3.2-T1B
> 
> OS is FreeBSD 4.6
> 
> Here is resolv.conf
> .........................................................
> domain xzy.de

Your problem with short resolution could be here.  Your attempts to hide
the real domain could have erased the answer to your question.  Try
posting the real info...


> nameserver 192.168.123.187
> --------------------------------------------------------
> 
> Here is the Reverse Resolution Failiure:
> ---------------------------------------------------------
> 
> # dig @192.168.123.187 192.168.123.187

This command should be:

# dig -x @192.168.123.187 192.168.123.187

The command you show is looking for an A record for 192.168.123.187,
which we know does not exist.  The -x option tells dig to formulate an
in-addr.arpa query based on the ip address given on the cli.  The
default query type for dig is "A"...
> 
> ; <<>> DiG 8.3 <<>> @192.168.123.187 192.168.123.187
> ; (1 server found)
> ;; res options: init recurs defnam dnsrch
> ;; got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 4
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1,
> ADDITIONAL: 0
> ;; QUERY SECTION:
> ;;      192.168.123.187, type = A, class = IN
> 
> ;; AUTHORITY SECTION:
> ..                       1h25m40s IN SOA  A.ROOT-SERVERS.NET.
> NSTLD.VERISIGN-GRS.COM. (
>                                         2002080701      ; serial
>                                         30M             ;
> refresh
>                                         15M             ; retry
>                                         1W              ; expiry
>                                         1D )            ;
> minimum
> 
> 
> ;; Total query time: 6 msec
> ;; FROM: bornheim.xzy.de to SERVER: 192.168.123.187
> 192.168.123.187
> ;; WHEN: Thu Aug  8 12:55:21 2002
> ;; MSG SIZE  sent: 33  rcvd: 108
> 
> ---------------------------------------------------------
> 
> However FQN resolution works
> 
> ---------------------------------------------------------
> # dig @192.168.123.187 bornheim.xzy.de
> 
> ; <<>> DiG 8.3 <<>> @192.168.123.187 bornheim.xzy.de
> ; (1 server found)
> ;; res options: init recurs defnam dnsrch
> ;; got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1,
> ADDITIONAL: 1
> ;; QUERY SECTION:
> ;;      bornheim.xzy.de, type = A, class = IN
> 
> ;; ANSWER SECTION:
> bornheim.xzy.de.  1H IN A  192.168.123.187
> 
> ;; AUTHORITY SECTION:
> xzy.de.         1H IN NS        bornheim.xzy.de.
> 
> ;; ADDITIONAL SECTION:
> bornheim.xzy.de.  1H IN A  192.168.123.187
> 
> ;; Total query time: 10 msec
> ;; FROM: bornheim.xzy.de to SERVER: 192.168.123.187
> 192.168.123.187
> ;; WHEN: Thu Aug  8 12:57:52 2002
> ;; MSG SIZE  sent: 41  rcvd: 87
> 
> ---------------------------------------------------------
> 
> short name resolution failiure:
> ---------------------------------------------------------
> # dig @192.168.123.187 bornheim
> 
> ; <<>> DiG 8.3 <<>> @192.168.123.187 bornheim
> ; (1 server found)
> ;; res options: init recurs defnam dnsrch
> ;; got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 4
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1,
> ADDITIONAL: 0
> ;; QUERY SECTION:
> ;;      bornheim, type = A, class = IN
> 
> ;; AUTHORITY SECTION:
> ..                       1h23m34s IN SOA  A.ROOT-SERVERS.NET.
> NSTLD.VERISIGN-GRS.COM. (
>                                         2002080701      ; serial
>                                         30M             ;
> refresh
>                                         15M             ; retry
>                                         1W              ; expiry
>                                         1D )            ;
> minimum
> 
> 
> ;; Total query time: 8 msec
> ;; FROM: bornheim.xzy.de to SERVER: 192.168.123.187
> 192.168.123.187
> ;; WHEN: Thu Aug  8 13:01:47 2002
> ;; MSG SIZE  sent: 26  rcvd: 101
> ----------------------------------------------------------
> 
> 
> 
> Here is named.conf
> --------------------------------------------------------
> options {
>         directory "/etc/namedb";
> };
> 
> zone "." {
>         type hint;
>         file "named.root";
> };
> 
> // Local domains
> //
> zone "xzy.de" {
>         type master;
>         file "db.xzy.de";
> };
> 
> zone "123.168.192.in-addr.arpa" {
>         type master;
>         file "db.192.168.123";
> };
> 
> zone "0.0.127.IN-ADDR.ARPA" {
>         type master;
>         file "db.127.0.0";
> };
> -----------------------------------------------------
> 
> Here is db.
> ------------------------------------------------------
> $TTL    3600
> 
> 123.168.192.in-addr.arpa.       IN      SOA     bornheim.xzy.de.
> boss.xyz.de. (
>                                 1       ; Serial
>                                 3h      ; Refresh
>                                 1h      ; Retry
>                                 1w      ; Expire
>                                 1h )    ; Minimum
> ;
> ; Name Servers
> ;
> 123.168.192.in-addr.arpa.       IN      NS      bornheim.xzy.de.
> 
> ;
> ; Addresses point to canonical names
> ;
> 187.123.168.192.        IN      PTR     bornheim.xzy.de.
> 185.123.168.192.        IN      PTR     aachen.xzy.de.
> 130.123.168.192.        IN      PTR     rome.xzy.de.
> 254.123.168.192.        IN      PTR     soho.xzy.de.
> 
> ------------------------------------------------------
> 
> 
> Here is db.xzy.de
> ......................................................
> $TTL    3600
> 
> xzy.de. IN      SOA     bornheim.xzy.de. boss.xyz.de. (
>                                 1       ; Serial
>                                 3h      ; Refresh
>                                 1h      ; Retry
>                                 1w      ; Expire
>                                 1h )    ; Minimum
> ;
> ; Name Servers
> ;
> xzy.de. IN      NS      bornheim.xzy.de.
> 
> ;
> ; Addresses for the cononical names
> ;
> localhost.xzy.de.       IN      A       127.0.0.1
> bornheim.xzy.de.        IN      A       192.168.123.187
> aachen.xzy.de.          IN      A       192.168.123.185
> rome.xzy.de.            IN      A       192.168.123.130
> soho.xzy.de.            IN      A       192.168.123.254
> ;
> ; Aliases
> ;
> bennem.xzy.de.          IN CNAME        soho.xzy.de.
> -----------------------------------------------------------
> 
> Here is db.127.0.0
> ........................................................----
> $TTL    3h
> 
> 0.0.127.in-addr.arpa. IN SOA bornheim.xzy.de. boss.xyz.de. (
>                                 1       ; Serial
>                                 3h      ; Refresh
>                                 1h      ; Retry
>                                 1w      ; Expire
>                                 1h )    ; Minimum
> ;
> ; Name Servers
> ;
> 0.0.127.in-addr.arpa.   IN      NS      bornheim.xzy.de.
> 
> ;
> ; Addresses point to canonical names
> ;
> 1.0.0.127.in-addr.arpa. IN      PTR     localhost.
> -----------------------------------------------------------



More information about the bind-users mailing list