Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following data in my dns file, for my domain...

@       IN      A       208.X.Y.Z
mail    IN      A       208.X.Y.Z
... etc..

what is the @ line, mean? I know what an A record is.. but a host with an ampersand at sign?

share|improve this question
A little nitpicky perhaps but @ is not an ampersand. ;) – John Gardeniers Nov 12 '09 at 6:40
HAHAH oooops :) That's so true .... time to fix that up.. (donno why i said it's an ampersand / & ) .. .... – Pure.Krome Nov 12 '09 at 22:42
up vote 37 down vote accepted

RFC 1035 defines the format of a DNS zone file.

... on page 34 you'll find:

@ A free standing @ is used to denote the current origin.

This means that @ is a shortcut for the name defined with $ORIGIN.

You can find more information on $ORIGIN here, which is an excerpt from Pro DNS and BIND, published by Apress.

share|improve this answer

It's the root, or in your example it's

share|improve this answer
It doesn't seem to be equivalent when I try it out. I made an A record for pointing to my host's IP. This makes a DNS lookup fail with the error that it couldn't resolve the hostname. If I change the to @, the domain resolves and my website becomes reachable. What is the difference between the two? I assume the zone isn't (I'm setting these records in the Namecheap control panel). – Daniel Saner Oct 11 '15 at 19:16
@DanielSaner The part to put before the IN is the prefix before So if you put, that really means So that's why the @ is an important character which translates simple to – Scott Forsyth - MVP Oct 12 '15 at 3:47
My understanding was that the trailing . designates the name as fully qualified, so the origin shouldn't be appended. That would be according to RFC 1535, and it's in fact the way my registrar uses it in their examples:… But such a configuration doesn't work when I try it. Maybe the control panel does something else than just add the information to the zone as-is? – Daniel Saner Oct 12 '15 at 10:07
Yeah, much of that is up to the implementation of the DNS tool. You'll see the @ when you work with the DNS files directly, but you'll rarely see it in the various DNS tools. The DNS tools try to simplify the UI. From your messages it sounds like you have it working one way but not another so I recommend going with the way that it does work. DNS tools are really up to the implementation of the tool, and even DNS servers may not implement this the same way according to specs. – Scott Forsyth - MVP Oct 12 '15 at 15:29

It's an alias for the zone name itself. In this case, it indicates that the zone name has that address (or mx record, or ...)

share|improve this answer

Your Answer


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.