MX record is wrong

luppie

Verified User
Joined
Jul 28, 2005
Messages
41
Today i've added a second MX record for mail fallback, this MX record points to an other server outside my domain. In Directadmin in the DNS panel i put the hostname of the mailserver "relay.transip.nl" with a prio of 20.

Now if i check the MX record with NSLookup i noticed that somehow my own domainname is used as a sufix for this record.


How can i fix this and/or how can i prevent this from happening ?


My zone file looks like this :

Zone removed
 
Last edited:
Look carefully at your zone file and you'll see you need a "." at the end of the domain name.

Without that "." (I call it a 'dot') the main zonefile domain name will be appended to whatever you've typed.

Also, don't forget your second MX server has to know what to do with the email once it gets it.

Jeff
 
Well, i did'nt edit the zonefile myself (yet).

This is the zonefile generated by DA using the DA webinterface.

In stead of
pie.net. 14400 IN MX 20 relay.transip.nl
i also tried
pie.net. 14400 IN MX 20 relay.transip.nl.
but that did'nt made a difference (i did'nt restart any service after the change i dont know if this suppose to)
 
Last edited:
If you change it in the DA interface, then you don't have to restart BIND. If you change it manually you do:
Code:
# service named reload
on RHL, RHEL, and CentOS.

Jeff
 
Ok, it worked. I had added the dot manualy and did'nt restart anything so that was not working. I added the dot in the webinterface and it worked like a charm.
 
Back
Top