Cannot set MX of other server on my domain

Farhan asked:

in bind, i am trying to set MX servers for my domain, but i get the domainname.com appended to the MX server. i do now know how to avoid it.

here is my entry in MX zone file

example.com.    120 IN  MX  10 mx00.1and1.co.uk
example.com.    120 IN  MX  20 mx01.1and1.co.uk

But when do a DIG MX of example.com, i get this:

example.com.          120     IN      MX      10 mx00.1and1.co.uk.example.com.
example.com.          120     IN      MX      20 mx01.1and1.co.uk.example.com.

How to avoid it?

My answer:


You forgot to put the dot . at the end of your FQDN.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.