Bind v9.1.3: Use of $ORIGIN in zone files
Roy Arends
Roy.Arends at nominum.com
Tue Sep 25 11:43:08 UTC 2001
On Tue, 25 Sep 2001, dgoogle wrote:
> Has anyone used the $ORIGIN option in the zone files with any success?
Yes.
> Any examples would be appreciated.
example:
$ORIGIN example.com.
$TTL 600
@ SOA ns1 hostmaster 1 3h 1h 1w 5m
NS ns1
NS ns2
ns1 A 10.0.0.1
ns2 A 192.168.0.1
will translate to
example.com. 600 IN SOA ns1.example.com. (
hostmaster.example.com.
1 10800 3600 604800 300 )
example.com. 600 IN NS ns1.example.com.
example.com. 600 IN NS ns2.example.com.
ns1.example.com. 600 IN A 10.0.0.1
ns2.example.com. 600 IN A 192.168.0.1
Every hostname, not ending with a dot, will have the $ORIGIN appended.
Regards,
Roy Arends
Nominum
-------------
0-14-023750-X dcrpt ths 43.0D.01 01.05.0C 84.18.03 8A.13.04 2D.0B.0A
More information about the bind-users
mailing list