LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 06:31 PM   #1
L1nuxn00b703
Member
 
Registered: Sep 2009
Posts: 117

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, 07:09 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 08:17 PM   #3
L1nuxn00b703
Member
 
Registered: Sep 2009
Posts: 117

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



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 07:40 PM
Origin of UDP messages estratos Programming 2 08-18-2006 01:54 AM
Origin horatiu Linux - Software 1 07-25-2006 07:04 AM
Origin, KaleidaGraph-like software tanaselia Linux - Software 2 06-22-2005 06:17 AM
xmessage origin zindadilfaiz Linux - Networking 2 02-19-2003 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:54 PM.

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
Open Source Consulting | Domain Registration