![]() |
mail us
|
mail this page products | company | support | downloads | isp services | contact us |

$ORIGIN defines a base value from which 'unqualified' name substitutions are made when processing the zone file. Zone files which do not contain an $ORIGIN directive, while being perfectly legitimate are also much more confusing. In general always explicitly define an $ORIGIN directive unless there is a very good reason not.
$ORIGIN is a standard directive defined in RFC 1035.
$ORIGIN values must be 'qualified' (they end with a 'dot'). Confusingly some documentation omits this dot.
If an $ORIGIN directive is not defined - BIND synthesizes one from the zone name in the named.conf file as the initial ORIGIN e.g.
// named.conf file fragment
zone "example.com" in{
type master;
file "pri.example.com";
};
example.com is the initial value of $ORIGIN if none present in the zone file.
$ORIGIN is used in two contexts during zone file processing:
@ Symbol replacement:
; example.com zone file fragment ; no ORIGIN present .... @ IN NS ns1.example.com. ; ns1.example.com is the name server for example.com .... $ORIGIN uk.example.com. @ IN NS ns2.example.com. ; functionally identical to ; uk.example.com IN NS ns2.example.com ; ns2.example.com is the name server for uk.example.com
Unqualified name addition:
; example.com zone file fragment ; no ORIGIN present .... www IN A 192.168.23.15 ; www.example.com = IP 192.168.23.15 joe IN CNAME www ;unqualified name ; joe.example.com = www.example.com .... $ORIGIN uk.example.com. ftp IN A 10.0.16.34 ; functionally identical to ; ftp.uk.example.com IN A 10.0.16.34
tech info
guides home
intro
contents
1 objectives
big picture
2 concepts
3 reverse map
4 dns types
quickstart
5 install bind
6 samples
reference
7 named.conf
8 dns records
operations
9 howtos
10 tools
11 trouble
programming
12 bind api's
security
13 dns security
bits & bytes
15 messages
resources
notes & tips
registration FAQ
dns resources
dns rfc's
change log

This work is licensed under a
Creative Commons License.
If you are happy it's OK - but your browser is giving a less than optimal experience on our site. You could, at no charge, upgrade to a W3C STANDARDS COMPLIANT browser such as Mozilla
FreeBSD
NetBSD
OpenBSD
DragonFlyBSD
Linux
OpenOffice
Mozilla
SourceForge
GNU-Free SW Foundation
Open Source Initiative
Creative Commons
Ibiblio - Library
Open Book Project
Open Directory
Wikipedia
|
Copyright © 1994 - 2008 ZyTrax, Inc. All rights reserved. Legal and Privacy |
site by zytrax![]() |
web-master at zytrax Page modified: July 05 2007. |