Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I know very little about DNS configuration. Could anyone please explain to me, in plain english, what the following DNS configuration achieve? It's the default configuration for my hosting provider.


              A            X.X.X.X              0   

*             A            X.X.X.X              0   

smtp          A            Y.Y.Y.Y              0   

              MX           smtp                 10  

NS                       0   

NS                       0  TXT          v=spf1 a mx +all     0

A couple of crucial points:

  • Why the DOTs at the end of the domains?
  • Why the MX record has some priority set and why 10?
  • What's the difference between the first two records?
share|improve this question

3 Answers 3

up vote 24 down vote accepted

Dots at the end of names mean 'this is a fully qualified entry', without the dot, the DNS server appends the domain for which these entries are listed to the name. So, you would get

The full stops are critical therefore, to prevent errors.

All MX records have a priority. MX is a mail exchanger record, and you can have multiple MX entries per domain. The entry/entries tell mail servers where to send mail for your domain. The priority allows the mail server to try them in the right order (lowest first).

The first record says "if you look up this domain, you get this IP address", i.e. gives x.x.x.x

The second is a wild card, which says, if you look up any sub-domain for this domain and there is no specific match, then you get this IP address. i.e. and will resolve, and they will resolve to that X.X.X.X.

TXT entries allow for informational records, of which yours is an SPF description. SPF is something else entirely, and handles e-mail validation, more info here -

The two NS entries are name server records, and tell other DNS servers/resolvers which name servers to use for your domain.

share|improve this answer
Thanks a lot. Much clearer now. – Roberto Aloi Jun 18 '11 at 17:50
A            X.X.X.X              0 

This means that will resolve to the IP X.X.X.X

*    A            X.X.X.X              0

This means that (so or will also resolve to X.X.X.X

smtp          A            Y.Y.Y.Y              0

This means you have a record named and it will resolve to Y.Y.Y.Y

MX           smtp                 10 

This sets the previously mentioned as the mailserver for
If someone wants to send email it will try this server.
The priority 10 can be ignored, since there is only one MX record in your zone.
If there were more, it would be the order in which the servers would be tried to be contacted (smallest number will be contacted first).

NS                       0   
NS                       0

These two entries set the servers and as the authoritative domain servers of this zone.
Therefore if someone wants to resolve he would ask or  TXT          v=spf1 a mx +all     0

This is a anti spam technique, it basically specifies that from every host with an A or MX record is allowed to send mails - and no other host is allowed (I'm not very familiar with SPF, please do correct me if I'm wrong).

share|improve this answer

The . at the end of the domains signify that it is a fully qualified domain name. If there is no . then the DNS appends the domain to it e.g in your example has smtp without a . so it becomes

MX records have a priority set and a correctly configured mail server will attempt to deliver mail to the host with lowest priority. If this fails then the next lowest priority host will be tried.

The first record says that the ip address of is x.x.x.x, the second says any host in the domain that isn't specified elsewhere (e.g. smtp) will resolve to x.x.x.x.

You could probably do with having a look at this and it's related articles.

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.