Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Usually after $TTL and $ORIGIN there is a line starting with @ and IN in zone name then email address of admin, what does @ mean here and in the next entries?

share|improve this question
add comment

1 Answer 1

$ORIGIN is used in two contexts during zone file processing:

  1. The symbol @ forces substitution of the current (or synthesized) value of $ORIGIN. The @ symbol is replaced with the current value of $ORIGIN. The current value of $ORIGIN is added to any 'unqualified' name (any name which does not end in a 'dot').
  2. The current value of $ORIGIN is added to any 'unqualified' name (any name which does not end in a 'dot').

Example of @ symbol replacement:

; example.com zone file fragment 
; no $ORIGIN present and is synthesized from the 
; zone name in named.conf
....
@          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
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.