Confused about what $ORIGIN does in relation to @

Chris Buxton cbuxton at menandmice.com
Tue Sep 11 23:26:30 UTC 2007


On Sep 11, 2007, at 4:18 PM, Mark Andrews wrote:
> $TTL 3600       ; 1 hour
> @               IN SOA  dssns.dss.state.la.us.  
> rmccain.dss.state.la.us. (
>                         2007091103        ; serial
>                         1200        ; refresh (20 minutes)
>                         600        ; retry (10 minutes)
>                         1209600    ; expire (2 weeks)
>                         3600       ; minimum (1 hour)
>                         )
> @               NS      dssns.dss.state.la.us.
> @               NS      dssns2.dss.state.la.us.
> @               A       205.172.49.49
> @               MX      10 smtp-ext1.dss.state.la.us.
> @               MX      20 smtp-ext2.dss.state.la.us.
> acess           A       205.172.49.23
> acess-info      A       205.172.49.23
> acspoc          A       205.172.49.9

This could be further simplified by using inherited owner names -  
that is, if a record's first field (the owner name) is left blank, it  
inherits the owner name of the previous record. Also, there's no  
reason to specify a class (IN in this case) anywhere in a zone file -  
it inherits the class from the zone definition, and you're not  
allowed to put multiple classes into a zone file. So the example  
above can be simplified further like so:

$TTL 3600       ; 1 hour
@               SOA  dssns.dss.state.la.us. rmccain.dss.state.la.us. (
                         2007091103        ; serial
                         1200        ; refresh (20 minutes)
                         600        ; retry (10 minutes)
                         1209600    ; expire (2 weeks)
                         3600       ; minimum (1 hour)
                         )
                 NS      dssns.dss.state.la.us.
                 NS      dssns2.dss.state.la.us.
                 A       205.172.49.49
                 MX      10 smtp-ext1.dss.state.la.us.
                 MX      20 smtp-ext2.dss.state.la.us.
acess           A       205.172.49.23
acess-info      A       205.172.49.23
acspoc          A       205.172.49.9

Chris Buxton
Men & Mice



More information about the bind-users mailing list