problems with BIND

Stuart Sears stuart at sjsears.com
Sun Oct 16 12:15:37 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Fabiano Petrone enlightened us with the following gems on 16/10/05 11:57:
> Hello to Everybody
> 
> I've configured an (only!!) internal experimental DNS (home.net) for my LAN.
> the machine (FC3, bind 9.2.5 rel.3) is called fedora3.home.net
> (192.168.0.50) I've added a W2000 (zenone.home.net, 192.168.0.20) as an
> experimental client pointing to fedora3 as DNS.
> 
> here's my /var/named/chroot/etc/named.conf file:
> 
> 
> options {
> 	directory "/var/named";
> 	dump-file "/var/named/data/cache_dump.db";
>         statistics-file "/var/named/data/named_stats.txt";
> };
> acl "mylan" {
> 	127/8; 192.168.0.0/24;
> };
> controls {
> 	inet 127.0.0.1 allow { localhost; } keys { rndckey; };
> };
> view "inside" {
> 	match-clients { "mylan"; };
> 	recursion yes;
> 	zone "." IN {
> 	type hint;
> 	file "named.ca";
> 	};
> 
> 	zone "0.168.192.in-addr.arpa" IN {
> 	type master;
> 	file "homelan.db";
> 	};
> 
> 	zone "home.net" {
> 	type master;
> 	file "db.home.net.inside";
> 	};
> };
> include "/etc/rndc.key";
> 
> that's my homelan.db for the reverse lookups:
> 
> $TTL	86400
> @	IN	SOA	0.0.168.192.in-addr.arpa.	root.fedora3.home.net. (
> 					2005101501 ; Serial
> 					28800      ; Refresh
> 					14400      ; Retry
> 					3600000    ; Expire
> 					86400 )    ; Minimum
> 
> 	IN	NS	0.0.168.192.in-addr.arpa.
> 1	IN	PTR	fedora3.home.net.
> 2	IN	PTR	zenone.home.net.
> 
> ;EOF
> 
> and that's is my db.home.net.inside
> 
> $TTL	86400
> @	IN	SOA	home.net.	root.fedora3.home.net. (
> 					2005101501 ; Serial
> 					28800      ; Refresh
> 					14400      ; Retry
> 					3600000    ; Expire
> 					86400 )    ; Minimum
> 
> ; Name Servers
> 		IN	NS		fedora3.home.net.
> 
> ; Mail Server for Domain
> 		IN	MX	10	fedora3.home.net.
> 
> ; Public Servers
> fedora3		IN	A		192.168.0.50
> 
> ; Private Clients on the LAN
> zenone		       IN	A		192.168.0.20
> 
> ;EOF
> 
> the problems are the following:
> 
> (1)
> the command
> host fedora3 (or host zenone) 
> fails with the following message:
> 
> Host fedora3 not found: 2(SERVFAIL)
> 
> 
> host fedora3.home.net (or host zeone.home.net)
> 
> works OK instead.
> 
> (2) 
> 
> the command
> 
> nslookup zenone.home.net
> works OK
> 
> the command
> 
> nslookup 192.168.0.20
> 
> fails with the following error message:
> 
> Server:         192.168.0.50
> Address:        192.168.0.50#53
> 
> ** server can't find 20.0.168.192.in-addr.arpa: NXDOMAIN
> 
> 
> thanks a lot in advance for your reply
> 
> bye
> 
> Fabiano
> 
methinks the error lies here:
	IN	NS	0.0.168.192.in-addr.arpa.
which should be
	IN	NS	my.name.server.
ie, not the entire reverse lookup zone.
the same applies to your SOA record, usually.
the hostname part should be a fully-qualified hostname, not an IP address

try changing the NS record in your reverse lookup zone to
@	IN	NS		fedora3.home.net.

see if that works


Regards,

Stuart
- --
Stuart Sears RHCE RHCX
DPRINTK("doing direct send\n"); /* @@@ well, this doesn't work anyway */
        linux-2.6.6/drivers/atm/eni.c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDUkRpamPtx1brPQ4RAl7bAJ9uvVmgn39P0cZpft+UmpKp9e3PLQCfQYux
NAsK0QeMEg5RyRU7td25fhg=
=aWxs
-----END PGP SIGNATURE-----




More information about the fedora-list mailing list