problem testing with nslookup
Kevin Darcy
kcd at daimlerchrysler.com
Thu Mar 7 00:17:31 UTC 2002
Stefan Demarmels wrote:
> > > If I do an nslookup from a different linux-machine on the net, nslookup
> > > 172.16.0.4, I get:
> > >
> > > Server: miami
> > > Address: 0.0.0.0
> > >
> > > *** miami can't find 172.16.0.4: No response from server ***
> >
> > Incorrect resolv.conf?
>
> Yes, I had to create one and configure it the right way.
>
> >
> > > ....named: none:0: open: /etc/rndc.key: file not found
> > > ....named: couldn't add command channel 127.0.0.1#953: file not found
> >
> > Instructions on creating this file are in the Administrator
> > Reference Manual, included with BIND 9, or on the www.isc.org
> > site.
> >
> My db.lai5p.ch file
>
> $TTL 3h
> lai5p.ch IN SOA bind.lai5p.ch stevey.bluewin.ch (
> 1
> 3h
> 1h
> 1w
> 1h
> );
>
> lai5p.ch IN NS bind.lai5p.ch
> lai5p.ch IN NS win98ws1.lai5p.ch
> lai5p.ch IN NS poolpot.lai5p.ch
> lai5p.ch IN NS brunhilde.lai5p.ch
>
> localhost.lai5p.ch IN A 127.0.0.1
> bind.lai5p.ch IN A 172.16.0.4
> win98ws1.lai5p.ch IN A 172.16.0.2
> brunhilde.lai5p.ch IN A 172.16.0.3
> poolpot.lai5p.ch IN A 172.16.0.1
>
> lh.lai5p.ch IN CNAME localhost.lai5p.ch
> bd.lai5p.ch IN CNAME bind.lai5p.ch
> win1.lai5p.ch IN CNAME win98ws1.lai5p.ch
> bh.lai5p.ch IN CNAME brunhilde.lai5p.ch
> plpt.lai5p.ch IN CNAME poolpot.lai5p.ch
>
> In the last message you sent, you wrote something like "."'s missing, what
> did you mean with this? I couldn't find anyting like it in my book.
Standard zonefile-parsing rule: any name that doesn't end in "." is parsed as
if it had the zone origin appended to it.
So, for example, "win1.lai5p.ch" will be parsed as "win1.lai5p.ch.lai5p.ch.",
which is probably not what you want.
Either leave the zone origin off of those names, e.g. just "win1", or put a
"." at the end of the name, e.g. "win1.lai5p.ch.".
- Kevin
More information about the bind-users
mailing list