problem with local zones

Darren Evans devans at presscentre.net
Wed Dec 5 14:19:43 UTC 2001



Im running bind-8.2.3-1.rpm on a Redhat 7.0 server.  The nameserver is resolving
live domains fine, however I want to add some local domains as a test, just for
local testing and not used anywhere else.

For example I want my nameserver to resolve abcxyz.com.  So I add the config
to /etc/named.conf and appropriate zone file.

The problem is that the nameserver does not resolve this local file,
it goes out straight onto the net, not reading the local added zone file.

Why is the local name server not in control, and letting the root servers kick in?

I've gone over the configuration file several times, and used this method before
especially to test domains that i'm planning on changing nameservers.

Suggestions greatly appreciated, please cc: me as im not on the list.

Here is my full /etc/named.conf


options {
	directory "/var/named";
        listen-on port 53 { any; };
        auth-nxdomain yes;              // always set AA on NXDOMAIN.
        allow-query { any; };
        allow-transfer { any; };
	named-xfer "/usr/sbin/named-xfer";
};

controls {
	inet 212.67.198.199 port 52 allow { 212.67.198.199; }; // keys { "presscentre_key"; };
	// inet 212.67.198.199 port 52 allow { 212.67.198.199; }  keys { "presscentre_key"; }; // BIND 9
        unix "/var/run/ndc" perm 0600 owner 0 group 0;  // ignored by named.

};

key presscentre_key {
	algorithm hmac-md5;
	secret "123456789SuCHANGED...CHANGEDTKTHkdw2h4dfgvdfapy4rkWJ2N8rnG4agZ1ZCsk4FjePW4kw44";
};


logging {
	category default { default_syslog; default_debug; };
	category panic { default_syslog; default_stderr; };
	category packet { default_debug; };
	category eventlib { default_debug; };
};

zone "." {
        type hint;
        file "db.cache";
};

zone "localhost" {
        type master;
        file "db.localhost";
};

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

// Forward zones go here

zone "presscentre.net" IN {
	type master;
	file "db.presscentre.net";
	allow-transfer { 205.166.226.38; };		// zone transfer for secondary NS
};

zone "changed1.co.uk" IN {
	type master;
	file "db.changed1.co.uk";
	allow-transfer { 205.166.226.38; };		// zone transfer for secondary NS
};

zone "progressivepublishing.com" IN {
	type master;
	file "db.progressivepublishing.com";
	allow-transfer { 205.166.226.38; };		// zone transfer for secondary NS
};

zone "changed.info" IN {
	type master;
	file "db.changed.info";
	allow-transfer { 205.166.226.38; };		// zone transfer for secondary NS
};


zone "abcxyz.com" IN {
	type master;
	file "db.abcxyz.com";
	allow-transfer { 205.166.226.38; };		// zone transfer for secondary NS
};


// Slave zones go here



// Reverse zones go here

// zone "0/31.198.67.212.in-addr.arpa" IN {
zone "198.67.212.in-addr.arpa" IN {
	type master;
	file "db.198.67.212";
	allow-transfer { 205.166.226.38; };
};

regards,
Darren

Please cc: as i'm no longer on the list.



More information about the bind-users mailing list