Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

e.g. can I do

subdomain IN CNAME @

in a zone file? or is it only valid in the beginning of a record? e.g

@ IN TXT "v=spf1 a mx -all"
share|improve this question

2 Answers 2

up vote 3 down vote accepted

@ is legal both as an "owner name" (i.e. the name of a zone file entry) and as "rdata" (i.e. the contents of a DNS entry), but only as a standalone token.

What you cannot do is <label>.@ - there's no need because <label> on its own with no trailing dot will implicitly append the current value of @ (aka $ORIGIN).

share|improve this answer

Have a look at this page. They did not say explicitly whether it is allowed or not to have @ at the end in your DNS record. You can try it yourself and see if it works!

EDIT:

It seems legal to have at the end. I found an example on Wikipedia.

share|improve this answer

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.