More Than One Zone on a Name Server Question

Tom Naves tman at sdf.lonestar.org
Wed Feb 16 22:03:52 UTC 2005


I am trying to figure how to add dns zone to my existing dns server.  My 
existing zone is mydomain.com and I am adding mydomain.net.  I looked in 
DNS and BIND and figured the way to do it was.

One

Add the new zone statement to my named.conf file e.g.,

};

zone  "mydomain.com" {
 	type master;
 	file  "db.mydomain.com";
};

zone  "mydomain.net" {
 	type master;
 	file  "db.mydomain.net";
};


Two

Add another db file to /var/named e.g.,

db.mydomain.net

Which looks like this:

$TTL 86400
mydomain.net.	IN		SOA	linux.mydomain.com. 
dns.mydomain.com. (
 				1; serial
 				28800 ; refresh
 				7200  ;  retry
 				604800 ; expire
 				86400 ; negative caching ttl
 				)

 			IN	NS	linux.mydomain.com.

mydomain.net.		IN	MX	10	mail
mydomain.net.		IN	MX	20	mail2

localhost		IN	A	127.0.0.1

mail			IN	A	192.168.1.131
mail2			IN	A	192.168.1.134
linux.mydomain.com.	IN	A	192.168.1.144

When I run rndc reload it loads and seems to work o.k. but I get the 
following message in syslog:

Feb 16 13:14:20 linux named[1605]: dns_master_load: db.mydomain.net:19: 
ignoring out-of-zone data (linux.mydomain.com)

Is this normal or is something out of whack?

Also mydomain.com and mydomain.net are using addresses on the same subnet. 
In my reverse lookup files for mydomain.com I have the A records in the 
abbreviated form e.g.,

hostname   IN  A  x.x.x.x  The FQDN is derived from the SOA i.e.,

mydomain.com. IN  SOA  linux.mydomain.com.  dns.mydomain.com

Can I just add the hosts from mydomain.net to this file in theis form:

mail.mydomain.net.  IN  A  192.168.1.131 or do I need separate files for 
the additional zone?  And if so how do you do it?

Thanks

Tom



More information about the bind-users mailing list