Giles Coochey wrote:
> David Brown wrote:
>
>> However, from windows (w2k) I get:
>>
>> >nslookup www.linux.org 192.168.0.12
>> *** Can't find server name for address 192.168.0.12: Non-existent domain
>> Server: UnKnown
>> Address: 192.168.0.12
>>
>> Non-authoritative answer:
>> Name: www.linux.org
>> Address: 198.182.196.56
>>
>
> Windows does a reverse lookup on your DNS server.
>
> Why not set up a 0.168.192.in-addr.arpa zone for your local network and
> put in the reverse lookup addresses of your servers.
Just to make sure my understanding is correct (I've a fair understanding
of tcp/ip and routing, but I've not previously had to touch dns), this
means that windows nslookup (and apparently, given the timeouts I'm
getting, all of w2k's use of dns) is doing a reverse lookup asking my
bind server for the dns name for 192.168.0.12. Bind doesn't have a name
for it, and this leads windows to reject the dns server. So the trick
is to tell bind that it is the primary dns server for the whole
0.168.192.in-addr.arpa zone.
I'm trying to figure out how to do this - my attempts so far have
failed. The server's hostname is "jupiter". If I can figure this out
for the one server, I'd also like to add names for other fixed address
nodes on the network (and maybe even for the DHCP allocated addresses).
To do this, I first add a sections to my named.conf.local (included by
named.conf) :
zone "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.192.168.0";
};
zone "jupiter" {
type master;
file "/etc/bind/db.jupiter";
};
I made the two files db.192.168.0 and db.jupiter based on db.127 and
db.local which were already in the debian setup:
jupiter:/etc/bind# cat db.192.168.0
;
; BIND reverse data file for 192.168.0.*
;
$TTL 604800
@ IN SOA jupiter. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS jupiter.
12 IN PTR jupiter.
jupiter:/etc/bind# cat db.jupiter
;
; BIND data file for jupiter
;
$TTL 604800
@ IN SOA jupiter. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS jupiter.
@ IN A 192.168.0.12
This has not helped in any way (and I did remember to restart bind after
the changes). I expect that when I've got it working, nslookup on
"192.168.0.12" and "jupiter" should work correctly on the server - at
the moment I get:
jupiter:/etc/bind# nslookup 192.168.0.12
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find 12.0.168.192.in-addr.arpa: NXDOMAIN
jupiter:/etc/bind# nslookup jupiter
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find jupiter: NXDOMAIN
Any help or hints would be much appreciated.
mvh.,
David