LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   $ORIGIN Directive definition?? (https://www.linuxquestions.org/questions/linux-newbie-8/%24origin-directive-definition-764888/)

L1nuxn00b703 10-27-2009 06:31 PM

$ORIGIN Directive definition??
 
Hello,
Can anyone explain the $ORIGIN Directive in a zone file to me? the online definition is a bit confusing. Thanks.

chrism01 10-27-2009 07:09 PM

Well, I got this
Quote:

$ORIGIN

Appends the domain name to unqualified records, such as those with the hostname and nothing more.

For example, a zone file may contain the following line:

$ORIGIN example.com.

Any names used in resource records that do not end in a trailing period (.) are appended with example.com.
Note

The use of the $ORIGIN directive is unnecessary if the zone is specified in /etc/named.conf because the zone name is used as the value for the $ORIGIN directive by default.
from http://www.linuxtopia.org/online_boo...one-directives.
Seems fairly straightforward to me. Can you explain which part(s) are not clear?
That's a very good chapter on DNS/Bind btw.

L1nuxn00b703 10-27-2009 08:17 PM

chrism01, thanks for the awesome link!!! So basically any records in the zone file, for instance:

$ORIGIN example.com.
test IN A 1.2.3.4

Since there is no "." at the end of test in the record, it will automatically append example.com to test? is this correct?


All times are GMT -5. The time now is 11:16 AM.