dots in hostnames problem

Phil Mayers p.mayers at imperial.ac.uk
Wed Mar 9 20:24:05 UTC 2011


On 03/09/2011 06:09 PM, Matt Rae wrote:
> Hi, I'm working on setting up a slave dns server. Dots have
> historically been used in the hostnames here. The dots cause the
> resulting zone file from a zone transfer to have $ORIGIN automatically
> set assuming the dots are indicating a subdomain.

Oh god, not this again... ;o)

The "." in a DNS name stands for "label separator". If you have a 
"hostname with dots in it" all you have is a hostname with >1 label to 
the left of the enclosing DNS zone.

It's legal, fine, nothing to worry about, move along.

If you want a zonefile without $ORIGIN and so forth, use a tool to 
flatten it out - e.g.

dig @server zone.name axfr

named-compilezone -o output zone.name zone.file



More information about the bind-users mailing list