@origin

Joseph S D Yao jsdy at center.osis.gov
Wed Jan 23 17:56:00 UTC 2002


On Tue, Jan 22, 2002 at 09:53:51AM +0000, Ken wrote:
> what does it do?

"@origin" produces a syntax error when put into a zone file.

When "@" is the label (left-hand side) of a resource record in a zone
file, it initially translates into the zone for which that file is
called.  Thus, your zone files will typically start with (something
like):

$TTL	86400

@	SOA	main-ns.example.domain. integerx.hotmail.com. ...

so if this file were called for "example.domain", the "@" would refer
to "example.domain.".

This is also the domain appended to right-hand names that don't end
with a dot.  E.g.,

@	NS	main-ns

actually refers to the host specified in the SOA record above.

The "$ORIGIN" directive changes the value of "@".  It is best to keep
this within the subdomains of the original value of "@".

-- 
Joe Yao				jsdy at center.osis.gov - Joseph S. D. Yao
OSIS Center Systems Support					EMT-B
-----------------------------------------------------------------------
   This message is not an official statement of OSIS Center policies.


More information about the bind-users mailing list