jazzman on 16 May 2006 03:21:40 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] "Mini" DNS options?


Hi all.

I thought this might be easier. I'm attaching my named.conf and .zone file 
for my domain. I did everything you guys suggested but for some reason I 
cannot get hosts on my network to work properly with the dns server.

I can't list every address on my network that can use the dns, cause the 
worst case on my network is every address in the 10.2.2.x range being used 
(like I have that many friends?!? No this won't ever happen BUT...). So 
for the allow line I added 10.2.2.0/24, which should cover me, yes?

Still, when I go to a winxp box with the dns server (10.2.2.253) set as 
it's primary dns servre and I type "nslookup" at the command line I get:

*** Can't find server name for address 10.2.2.253: Non-existent domain

But then, from within nslookup, if I type "Server 10.2.2.253" it works 
fine! However, opening a browser and going to one of the names in my dns 
server returns an error...

Incidentally my other linux box works fine, so the issue appears to 
be only windows boxes(?)

Your patience is much appreciated
Marc
$TTL	86400
$ORIGIN exdomain.org.
@		IN SOA	@       root (
					42		; serial (d. adams)
					3H		; refresh
					15M		; retry
					1W		; expiry
					1D )		; minimum


		IN	NS		10.2.2.253

		IN	A		10.2.2.253

vault		IN	A		10.2.2.253
fishcam		IN	A		10.2.2.225

//
// named.conf for Red Hat caching-nameserver 
//

options {
	directory "/var/named";
	dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
	/*
	 * If there is a firewall between you and nameservers you want
	 * to talk to, you might need to uncomment the query-source
	 * directive below.  Previous versions of BIND always asked
	 * questions using port 53, but BIND 8.1 uses an unprivileged
	 * port by default.
	 */
	 // query-source address * port 53;
         listen-on       { 127.0.0.1; 10.2.2.253; };
         allow-query { 127.0.0.1; 10.2.2.22; }; 
         allow-transfer { none; };

};

// 
// a caching only nameserver config
// 
controls {
	inet 127.0.0.1 allow { localhost; } keys { rndckey; };
	inet 10.2.2.253 allow { 10.2.2.22; } keys { rndckey; };
};

zone "." IN {
	type hint;
	file "named.ca";
};

zone "localdomain" IN {
	type master;
	file "localdomain.zone";
	allow-update { none; };
};

zone "localhost" IN {
	type master;
	file "localhost.zone";
	allow-update { none; };
};

zone "exdomain.org" IN {
	type master;
	file "exdomain.org.zone";
	allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
	type master;
	file "named.local";
	allow-update { none; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
        type master;
	file "named.ip6.local";
	allow-update { none; };
};

zone "255.in-addr.arpa" IN {
	type master;
	file "named.broadcast";
	allow-update { none; };
};

zone "0.in-addr.arpa" IN {
	type master;
	file "named.zero";
	allow-update { none; };
};

include "/etc/rndc.key";
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug