How is a $ORIGIN directive used inside a DNS Zone File

Leonard Mills lenm at yahoo.com
Mon Dec 14 08:00:20 UTC 2015


Today at 11:36 PM Pacific time (US)  Harshith wrote:>Why is a $ORIGIN directive used in DNS Zone Files? 
It improves readability of the zone file by removing parts of a fully-qualified domain for the names in the zone.

>Would my Zone Files not work if I do not have $ORIGIN directive?Depends on the rest of the zone file.
>[ What does $ORIGIN . mean?]It means that any following relative names are relative to the root.
>              $ORIGIN 2.               $ORIGIN 2.7.5.2.0.2.5.0.2.1.e164.arpa
>                          0            NAPTR    10 10 "u" "sip+E2U" "!^.*$!sip:2052025720 at 112.24.45.44!" .
>                          1            NAPTR    10 10 "u" "sip+E2U" "!^.*$!sip:2052025721 at 112.24.44.44!" 

Without the origin statement those lines would need to be:0.2.7.5.2.0.2.5.0.2.1.e164.arpa.    NAPTR    10 10...1.2.7.5.2.0.2.5.0.2.1.e164.arpa.    NAPTR    10 10...
If you go to, for example, BIND 9.9 Administrator Reference Manual (ARM) | Internet Systems Consortium Knowledge Baseyou will be informed how to obtain a copy of the ARM for your BIND version.   The ARM is your friend.

HTHLen


 


    On Sunday, December 13, 2015 11:36 PM, Harshith Mulky <harshith.mulky at outlook.com> wrote:
 

  <!--#yiv5090258795 P {margin-top:0;margin-bottom:0;}-->Why is a $ORIGIN directive used in DNS Zone Files? 
Would my Zone Files not work if I do not have $ORIGIN directive?

I would need some examples on how this works, lets say

$ORIGIN .
[ What does $ORIGIN . mean?]
or 

What is the difference here having 1.e164.arpa. in $ORIGIN [ as in example 1] or having it in NAPTR Records section [as in Example 2]
1.            $ORIGIN 1.e164.arpa.

or

2.               $ORIGIN 2.7.5.2.0.2.5.0.2.1.e164.arpa.
                          0            NAPTR    10 10 "u" "sip+E2U" "!^.*$!sip:2052025720 at 112.24.45.44!" .
                          1            NAPTR    10 10 "u" "sip+E2U" "!^.*$!sip:2052025721 at 112.24.44.44!" .

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
bind-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20151214/98b0bb2b/attachment.html>


More information about the bind-users mailing list