DNS reverse lookup for 255.255.0.0 network

DNS reverse lookup for 255.255.0.0 network

Post by Tomc » Fri, 05 Oct 2001 17:36:06



My DNS refuses to do reverse lookups for this config, why?

/etc/named.conf

options {
...stuff...

Quote:};

...other zones...

zone "168.192.in-addr.arpa" {
        type master;
        file "zone/192.168";
        notify no;

Quote:};

/var/named/zone/192.168

...header...

8.1      PTR      hareid-gw.mydomain.com.
9.1      PTR      kleven-gw.mydomain.com.
10.1     PTR      mmv-gw.mydomain.com.
11.1     PTR      sande-gw.mydomain.com.
12.1     PTR      larsnes-gw.mydomain.com.

If I use this config it worx ok:

/etc/named.conf

options {
...stuff...

Quote:};

...other zones...

zone "8.168.192.in-addr.arpa" {
        type master;
        file "zone/192.168.8";
        notify no;

Quote:};

zone "9.168.192.in-addr.arpa" {
        type master;
        file "zone/192.168.9";
        notify no;

Quote:};

/var/named/zone/192.168.8

...header...

8.1      PTR      hareid-gw.mydomain.com.

/var/named/zone/192.168.9

...header...

9.1      PTR      kleven-gw.mydomain.com.

 
 
 

DNS reverse lookup for 255.255.0.0 network

Post by Steve Cowle » Fri, 05 Oct 2001 23:40:04



Quote:> My DNS refuses to do reverse lookups for this config, why?

See Below!!!

Quote:> /etc/named.conf

> options {
> ...stuff...
> };

> ...other zones...

> zone "168.192.in-addr.arpa" {
>         type master;
>         file "zone/192.168";
>         notify no;
> };

I take it your goal is to keep all your PTR records in one file instead of
delegating each subnet from this upper level in-addr.arpa zone.

Quote:

> /var/named/zone/192.168

> ...header...

> 8.1      PTR      hareid-gw.mydomain.com.
> 9.1      PTR      kleven-gw.mydomain.com.
> 10.1     PTR      mmv-gw.mydomain.com.
> 11.1     PTR      sande-gw.mydomain.com.
> 12.1     PTR      larsnes-gw.mydomain.com.

The above will never work without the proper delegation "first" for each
subnet. (like your second example) Anyway, to overide the need to
delegate each subnet, specify the FULL in-addr.arpa name. i.e.

1.8.168.192.in-addr.arpa.   86400   PTR  hareid-gw.mydomain.com.
1.9.168.192.in-addr.arpa.   86400   PTR  kleven-gw.mydomain.com.
1.10.168.192.in-addr.arpa. 86400   PTR  mmv-gw.mydomain.com.
1.11.168.192.in-addr.arpa. 86400   PTR  sande-gw.mydomain.com.
1.21.168.192.in-addr.apra. 86400   PTR  larsnes-gw.mydomain.com.

Steve Cowles

 
 
 

DNS reverse lookup for 255.255.0.0 network

Post by Steve Cowle » Fri, 05 Oct 2001 23:59:32


Quote:> The above will never work without the proper delegation "first" for each
> subnet. (like your second example) Anyway, to overide the need to
> delegate each subnet, specify the FULL in-addr.arpa name. i.e.

OOPS!!! Forgot the "IN" in my last reply.Try...

1.8.168.192.in-addr.arpa.   86400   IN PTR  hareid-gw.mydomain.com.
1.9.168.192.in-addr.arpa.   86400   IN PTR  kleven-gw.mydomain.com.
1.10.168.192.in-addr.arpa. 86400   IN PTR  mmv-gw.mydomain.com.
1.11.168.192.in-addr.arpa. 86400   IN PTR  sande-gw.mydomain.com.
1.21.168.192.in-addr.apra. 86400   IN PTR  larsnes-gw.mydomain.com.

Steve Cowles