Selective forwarding for reverse zones?

Treptow, Craig Treptow.Craig at principal.com
Tue Apr 11 14:35:44 UTC 2000


Hi.  Both servers in this example are 8.2.2-p5.  I've checked out the archives
of this list, the DNS&BIND book, as well as
http://www.acmebw.com/papers/bind82.pdf.  If it is addressed somewhere, or I
missed it, please let me know.

On the server for foobar.com, forward and reverse lookups work fine, as in:

# nslookup craig
Server:  netmon4.foobar.com
Address:  192.168.40.201

Name:    craig.foobar.com
Address:  192.168.40.26

# nslookup 192.168.40.26
Server:  netmon4.foobar.com
Address:  192.168.40.201

Name:    craig.foobar.com
Address:  192.168.40.26

# 

On the server for principal.com (nameserver1), I can do selective forwarding
for forward resolutions, as in:

# nslookup craig.foobar.com
Server:  nameserver1.principal.com
Address:  192.168.34.5

Non-authoritative answer:
Name:    craig.foobar.com
Address:  192.168.40.26

# 

Where this is in the "nameserver1" machine's /etc/named.conf:

zone "foobar.com" IN {
        type forward;
        forward only;
        forwarders { 192.168.40.201; };
};

zone "40.168.192.in-addr.arpa" IN {
        type forward;
        forward only;
        forwarders { 192.168.40.201; };
};

And this is a small section of the db.foobar.com:

treptow         IN      CNAME   craig.foobar.com.
craig           IN      A       192.168.40.26

And this is a small section of the db.192.168 on the foobar.com server:

26.40           IN      PTR     craig.foobar.com.

The "nameserver1" machine also has this in it's db.192.168:

$ORIGIN 40.168.192.in-addr.arpa.
12      1200    IN      PTR     dom2.root.principal.com.        ;Cl=4
100     1200    IN      PTR     root.root.principal.com.        ;Cl=4
170     1200    IN      PTR     pfgw2k.pfgusa.root.principal.com.       ;Cl=4
105     1200    IN      PTR     dom2.root.principal.com.        ;Cl=4
106     1200    IN      PTR     wtsw2k.root.principal.com.      ;Cl=4
190     1200    IN      PTR     root.w2kpilot.local.    ;Cl=4
152     1200    IN      PTR     term1.root.principal.com.       ;Cl=4
166     1200    IN      PTR     CLUSTER1.root.principal.com.    ;Cl=4

I'd like to be able to lookup 192.168.40.26 on the "nameserver1" machine and
get back craig.foobar.com.

Any insight is appreciated.

Thanks!

Craig





More information about the bind-users mailing list