Classless Primary DNS

Mark.Andrews at nominum.com Mark.Andrews at nominum.com
Thu May 4 07:54:07 UTC 2000


> Hello
> 
> I have been assigned a set of classless addresses to use for my site.
> I would like to set up a primary DNS Server.
> I have read rfc 2317 but am still not 100% clear on exactly how everything
> works.
> Let's say I have the ip address 196.14.192.115/28 as my Primary DNS servers
> address.
> The name of my nameserver is test.domain.com
> Do I put a zone entry like the following one in my named.conf
> 
> zone ".192.14.196.in-addr.arpa" {
> 	type master;
> 	file "named.196.14.192";
> };

  The zone name above is illegal (nothing to the left of the first
  dot).  I would also *not* use cidr notation as there are buggy
  resolvers.  I would instead use the octet range instead.  It is
  also wise to be a secondary for the parent zone so that lookups
  won't fail when the link to the outside world is down.

  e.g.

  zone "112-127.192.14.196.in-addr.arpa" {
	type master;
	file "named.196.14.192.112-127";
  };

  zone "192.14.196.in-addr.arpa" {
	type slave;
	file "named.196.14.192";
	masters { ... };
  };

> 
> and then in my named.196.14.192
	
  named.196.14.192.112-127

> 
> $ORIGIN 113/28.192.14.196.in-addr.arpa.

  $ORIGIN 112-127.192.14.196.in-addr.arpa.

> @	IN	test.domain.com.	hostmaster.domain.com.	(
> 					0	;serial
> 					28800	;refresh
> 					14400	;retry
> 					3600000	;expire
> 					86400 )	;minimum
> 	IN	NS	test.domain.com.
> 115	PTR	test.domain.com.
> 
> And then in my named.conf I add the following entry
> 
> zone "domain.com" {
> 	type master;
> 	file "named.domain.com";
> };
> 
> And in the named.domain.com
> 
> @	IN	test.domain.com.	hostmaster.domain.com.	(
> 					0	;serial
> 					28800	;refresh
> 					14400	;retry
> 					3600000	;expire
> 					86400 )	;minimum
> 	IN	NS	test
> 	
> test	IN 	A	196.14.192.115
> 
> Is this right? or have I got it all wrong.
> What exactly does the isp have to add on there side to make the dns on my
> side work?

	They need to add NS records for 112-127.192.14.196.in-addr.arpa
	and CNAMES pointing into 112-127.192.14.196.in-addr.arpa.  Normally
	this would be in the 192.14.196.in-addr.arpa zone.

	Mark
> 
> Any help appreciated.
> 
> 
> 
--
Mark Andrews, Nominum Inc.
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews at nominum.com



More information about the bind-users mailing list