I have the following BIND zone file pointing the webserver to yyy.yyy.yyy.yyy and the nameservers and mail server to xxx.xxx.xxx.xxx:
$TTL 300
@ 86400 IN SOA ns1.domain.com. admin.gmail.com. (
2016012708 ; serial, todays date+todays
86400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds
domain.com. 86400 IN NS ns1.domain.com.
domain.com. 86400 IN NS ns2.domain.com.
ns1.domain.com. IN A xxx.xxx.xxx.xxx
ns2.domain.com. IN A xxx.xxx.xxx.XXX
domain.com. IN A yyy.yyy.yyy.yyy
localhost.domain.com. IN A 127.0.0.1
domain.com. IN MX 0 mail.domain.com.
mail.domain.com. IN A xxx.xxx.xxx.xxx
domain.com. IN TXT "v=spf1 +a +mx +ip4:xxx.xxx.xxx.xxx ~all"
www IN CNAME domain.com.
ftp IN A yyy.yyy.yyy.yyy.
The MX record should resolve to xxx.xxx.xxx.xxx
for the mail server, but instead it returns xxx.xxx.xxx.xxx.domain.com
. I have tried using "mail" instead of "mail.domain.com" in the A record, and I have tried combinations of trailing dots versus no trailing dots, thinking relative vs absolute paths might be the problem. But this has all been to no avail. Is there something obvious about the syntax that I am missing here?