LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-27-2009, 07:31 PM   #1
L1nuxn00b703
Member
 
Registered: Sep 2009
Posts: 108

Rep: Reputation: 15
$ORIGIN Directive definition??


Hello,
Can anyone explain the $ORIGIN Directive in a zone file to me? the online definition is a bit confusing. Thanks.
 
Old 10-27-2009, 08:09 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
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.
 
Old 10-27-2009, 09:17 PM   #3
L1nuxn00b703
Member
 
Registered: Sep 2009
Posts: 108

Original Poster
Rep: Reputation: 15
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
origin of the term slacker rob.rice Slackware 10 08-05-2008 08:40 PM
Origin of UDP messages estratos Programming 2 08-18-2006 02:54 AM
Origin horatiu Linux - Software 1 07-25-2006 08:04 AM
Origin, KaleidaGraph-like software tanaselia Linux - Software 2 06-22-2005 07:17 AM
xmessage origin zindadilfaiz Linux - Networking 2 02-19-2003 04:10 AM


All times are GMT -5. The time now is 08:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration