zone file question

Kevin Darcy kcd at daimlerchrysler.com
Mon Jun 12 20:51:28 UTC 2000


Scott.Wiseman wrote:

> Kevin,
>
> thanks for your help so far..
> What is an origin?

The *default* origin is whatever you load the zone as. So, for example, if
named.boot says "primary santee-homes.com db.santee-homes.com", then
"santee-homes.com" is the default origin. The $ORIGIN directive is used to
*change* that default, but in my experience this is rarely useful (I suppose
if you had a *large* number of names in a particular non-delegated
subdomain, it might be useful to help keep the size of the zonefile down).
As long as you have no $ORIGIN statements in the zonefile, then any name
which is not dot-terminated will have the default origin appended to it when
the zonefile is parsed. In this way, in combination with the use of "@", you
can make a single "template" zonefile which is shared among multiple zones;
the contents of the named.boot directive itself determines how that template
gets "instantiated" for each zone.

"@ORIGIN" is just plain bad syntax. That's not in your *production* master
file, is it?

As I said earlier, if you want *different* data for the two zones, then you
shouldn't be sharing the zonefile.  In which case, all of this is just
hypothetical.


- Kevin

> There are two origin keywords here...
> the first has a '@' symbol which I believe makes it relative
> and the second in here what does it do? under host names
>
> Scott
>
> ;
> ;    File:      db.zoneinfo for santee-homes.com
> ;    Purpose:   This file establishes the name/address information
> ;               for this zone.  You will have to fill out the actual
> ;               information for your specific zone in the format shown
> ;               in the comments.
> ;
> ;
> @ORIGIN com.
> santee-homes    IN SOA remax.remaxhost.com. swiseman at realestatenet.com. (
>                         1999051800      ; Serial(yyyymmddnn)
>                         10800           ; Refresh(3h)
>                         1800            ; Retry(1h)
>                         604800          ; Expire(1wk)
>                         5               ; Min TTL(1d)
>                         )
> ; Name Servers
>                 IN NS   remax.remaxhost.com.
>                 IN A    216.184.208.175
>                 IN MX   10 mail.remaxhost.com.
> ; Host Names
> $ORIGIN santee-homes.com.
> localhost       IN A    127.0.0.1
> www             IN A    216.184.208.175
> mail            IN A    216.184.208.175
>
> ; associate subdomains
>                         IN      A       216.184.208.175
> alangill                IN      A       216.184.208.175
> bhowland                IN      A       216.184.208.175
> bstewart                IN      A       216.184.208.175
> dneiss                  IN      A       216.184.208.175
> gwhalen                 IN      A       216.184.208.175
> jdavidson               IN      A       216.184.208.175
> kbattee                 IN      A       216.184.208.175
> kroesch                 IN      A       216.184.208.175
> mstewart                IN      A       216.184.208.175
> pdavidson               IN      A       216.184.208.175
> rlewis                  IN      A       216.184.208.175
> sbowers                 IN      A       216.184.208.175
> ;
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com






More information about the bind-users mailing list