syntax/format of zone on slave $ORIGIN/paragraph - sorted?

Walter Smith whatisee1 at
Thu Feb 10 18:11:48 UTC 2011


So - I want to combine and sort unique $ORIGINs without seeing same $ORIGIN again and again.

Like in your example, I would prefer to see just _ONE_ time this sorted paragraph:
<<$ORIGIN >> and not having multiple entries...

 admin                   MX      7 mx 
 $ORIGIN    <<<---------------- FIRST OCCURENCE
 aat                     A 
 alumni                  A 
 blog                    CNAME   webservices 
 preview                 CNAME 
 $ORIGIN   <<< ---------------- SECOND OCCURENCE
 bolero                  CNAME   ufsplay 
 bpaservices             A            CNAME   www 
 camino                  A 

--- On Thu, 2/10/11, Chris Thompson <cet1 at> wrote:

From: Chris Thompson <cet1 at>
Subject: Re: syntax/format of zone on slave $ORIGIN/paragraph - sorted?
To: "Barry Margolin" <barmar at>
Cc: "Bind-Users List" <bind-users at>
Date: Thursday, February 10, 2011, 9:48 AM

On Feb 10 2011, Barry Margolin wrote:

>When writing the zone file on a slave, BIND uses $ORIGIN so that all 
>records just have a single label.  So instead of writing:
> IN A
>it will write:
>$ORIGIN bar
>foo IN A
>If you have a zone with lots of levels of subdomain, the file will have 
>lots of $ORIGIN statements as a result.

Except that the rules seem to be a bit more complicated than that. (I am
using "named-checkzone -D -s relative" but I am pretty sure the same code
is involved.) Here's an extract:

admin                   MX      7 mx
aat                     A
alumni                  A
blog                    CNAME   webservices
preview                 CNAME
bolero                  CNAME   ufsplay
bpaservices             A            CNAME   www
camino                  A

So why did it dive into a subdomain for,
but not for These lines

preview                 CNAME

could have been replaced by            CNAME   cms

just as in the latter case.

Chris Thompson
Email: cet1 at
bind-users mailing list
bind-users at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the bind-users mailing list