Help with ISC bind and reverse lookup for private addresses

phn at icke-reklam.ipsec.nu phn at icke-reklam.ipsec.nu
Tue Aug 24 15:14:24 UTC 2004


Jerry Brown <brownjh at email.uah.edu> wrote:
> Please Help!

> 	Our primary DNS server is a sparc-station 9 and our secondary is a Tru64
> machine, both running BIND 8.3.4. Our domain is 146.229.0.0  We have just
> received request to support a vlan with private addresses(10.0.*.*) within
> our domain. We are having difficulty making this work, especially reverse
> mapping for the private addresses.

> Here is what we have tried:

> Added the following to our named.conf:
> zone "guest.uah.edu" {
>         type master;
>         file "guest.hosts";
> };

> zone "0.10.in-addr.arpa" {
>         type master;
>         file "guest.rev";
> };

> ;       Host file for guest.uah.edu
> @       IN      SOA     uahis1.uah.edu. root.uahis1.uah.edu. (
>                                 04082309 ; Serial
>                                 3600    ; Refresh
>                                 1200     ; Retry
>                                 1209600 ; Expire
>                                 14400 )  ; Minimum
>         IN      NS      uahis1.uah.edu.
>         IN      NS      email.uah.edu.
>         IN      NS      spunky.uah.edu.
> guest   IN      A       10.0.204.16
> gateway IN      A       10.0.207.254
> ;

> ;       REV file for guest.uah.edu
> ;       Address to hostname mappings.
> ;
> @       IN      SOA     uahis1.uah.edu. root.uahis1.uah.edu. (
>                                 04082309; Serial
>                                 3600    ; Refresh
>                                 1200     ; Retry
>                                 1209600 ; Expire
>                                 14400 )  ; Minimum
>         IN      NS      uahis1.uah.edu.
> 2.1     IN      PTR     uahis1.uah.edu.
> 16.204.0.10     IN      PTR     guest.uah.edu.
> 254.207.0.10    IN      PTR     gateway.uah.edu.
> ;
> --------

> Output from reloading zone files:
> Aug 23 22:45:50 uahis1 named[3253]: [ID 295310 daemon.notice] reloading
> nameserver
> Zone "uah.edu" (file uah.hosts): No default TTL ($TTL <value>) set, using
> SOA minimum instead
> master zone "uah.edu" (IN) loaded (serial 4082307)
> Zone "229.146.in-addr.arpa" (file uah.rev): No default TTL ($TTL <value>)
> set, using SOA minimum instead
> master zone "229.146.in-addr.arpa" (IN) loaded (serial 4082307)
> Zone "guest.uah.edu" (file guest.hosts): No default TTL ($TTL <value>) set,
> using SOA minimum instead
> master zone "guest.uah.edu" (IN) loaded (serial 4082309)
> Zone "0.10.in-addr.arpa" (file guest.rev): No default TTL ($TTL <value>)
> set, using SOA minimum instead
> master zone "0.10.in-addr.arpa" (IN) loaded (serial 4082309)

The two lines :
16.204.0.10     IN      PTR     guest.uah.edu.
254.207.0.10    IN      PTR     gateway.uah.edu.

don't do what you assume. As the leftside is nit terminated with '.'
he zones $ORIGIN "0.10.in-addr.arpa" will be appended.


The line
2.1     IN      PTR     uahis1.uah.edu.

shoould work as expected.


BTW, you should switch to bind-9 and start using views here, announcing
'A' records with rfc1918 addresses is bad and confusing. Views will make
it simple for you to only show these zones to you "insiders".

And, do drop nslookup and start using dig. Please .


-- 
Peter Håkanson         
        IPSec  Sverige      ( At Gothenburg Riverside )
           Sorry about my e-mail address, but i'm trying to keep spam out,
	   remove "icke-reklam" if you feel for mailing me. Thanx.


More information about the bind-users mailing list