filesnames for > /24 nets

James Raftery james-bind-users at now.ie
Mon Aug 27 09:43:24 UTC 2001


On Sat, Aug 25, 2001 at 12:59:13PM -0400, Dick Huskey wrote:
> Q1) How does one name the PTR zone files for a group of sub-networks &
> subdomains that all use a netmask that is longer than 24 bits?

Anyway you choose. Filenames are arbitrary and have no significance
in themselves. All that matters is that you specify the correct name
and path in the "file" statement when you define the zone in your
named.conf.

zone "foo.in-addr.arpa" {
	file "/var/named/i_like_hamsters";
	[ ... ]
};

works just fine, as long as there is a file /var/named/i_like_hamsters
and it has valid data for the foo.in-addr.arpa zone.

> & netB which will then suggest names of db.192.168.aaa &
> db.192.168.BBB.  This enables use of the shorthand internal references
> to the IP numbers. e.g.:
>     neta0: db.192.168.aaa  contains PTR records like:
>         1 IN PTR hostname1
[snip]

No. A relative name is relative to the name of the zone, not the name of
the file. The name of the zone is that which appears after "zone" in
the zone statement; "foo.in-addr.arpa", above.

If the above PTR appeared in the zone file for 40.168.192.in-addr.arpa, 
regardless of the file's name, that PTR is really 
1.40.168.192.in-addr.arpa

> Q3) The $ORIGIN statement certainly cleans things up for the A records,
> but it appears that the $ORIGIN is just prepended to the shorthand host
> ID.  Is this a proper understanding or is it ANDed?

$ORIGIN sets the domain name that will be appended to any unqualified 
records.

> Q4) Can the $ORIGIN statement be used in the reverse look up files?  Is
> it possible that the $ORIGIN in a reverse lookup file is just appended
> to the host ID number?

Yes and yes.

> Q5) Again, for neta0 & neta1, what do the zonenames look like for the
> reverse lookup? Maybe:
>     neta0:zone "0.aaa.168.192-in-addr.arpa"
>     neta1:zone "8.aaa.168.192-in-addr.arpa"

Correct, maybe. There are some suggested naming schemes in RFC2317.
Have you read it? http://www.faqs.org/rfcs/rfc2317.html

> Q6) Given that the example networks are all private, does one just
> purposely select private network numbers that do not present these
> conflicts (e.g., use net0 & net2)

That's certainly a possibility.


Regards,
james

_____________________________________________________________________
This message has been checked for all known viruses by the 
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp



More information about the bind-users mailing list