I have a DNS server which is not returning mx queries for some reason? The zone file is as follows:
$TTL 1H @ IN SOA example.com. root.example.com. ( 1 ; serial# 3H ; refresh 1H ; retry 1W ; expire 1H ) ; minimum NS ns1.example.com. MX 10 mail TXT "v=spf1 a mx include:isp.com -all"
example.com. A aaa.bbb.ccc.ddd ns1 A aaa.bbb.ccc.ddd mail A aaa.bbb.ccc.ddd
The server is setup as with a caching only configuration with recursion turned off. Anyone have any idea what could be wrong?
Thanks! jlc
On Sunday 16 March 2008, Joseph L. Casale wrote:
I have a DNS server which is not returning mx queries for some reason? The zone file is as follows:
$TTL 1H @ IN SOA example.com. root.example.com. ( 1 ; serial# 3H ; refresh 1H ; retry 1W ; expire 1H ) ; minimum NS ns1.example.com. MX 10 mail TXT "v=spf1 a mx include:isp.com -all"
example.com. A aaa.bbb.ccc.ddd ns1 A aaa.bbb.ccc.ddd mail A aaa.bbb.ccc.ddd
The server is setup as with a caching only configuration with recursion turned off. Anyone have any idea what could be wrong?
You should probably be using a FQDN for the MX record.
Here's an example of a DNS record that works for me: ; Zone File for hosix.com $TTL 14400 @ 14440 IN SOA ns1.hosix.com. root.alder.hosix.com. ( 2005043003 14400 7200 3600000 86400 )
hosix.com. 14400 IN NS ns1.hosix.com. hosix.com. 14400 IN NS ns2.hosix.com.
hosix.com. 14400 IN A 207.58.168.98
hosix.com. 14400 IN MX 0 hosix.com.
mail 14400 IN CNAME hosix.com. www 14400 IN CNAME hosix.com. ftp 14400 IN CNAME hosix.com.
The named log files are pretty good at showing why things aren't working.
Shawn
You should probably be using a FQDN for the MX record.
Here's an example of a DNS record that works for me: ; Zone File for hosix.com $TTL 14400 @ 14440 IN SOA ns1.hosix.com. root.alder.hosix.com. ( 2005043003 14400 7200 3600000 86400 )
hosix.com. 14400 IN NS ns1.hosix.com. hosix.com. 14400 IN NS ns2.hosix.com.
hosix.com. 14400 IN A 207.58.168.98
hosix.com. 14400 IN MX 0 hosix.com.
mail 14400 IN CNAME hosix.com. www 14400 IN CNAME hosix.com. ftp 14400 IN CNAME hosix.com.
The named log files are pretty good at showing why things aren't working.
Shawn
Ok, copied your file exactly as is with obvious name/ip changes and set perms correctly. It didn't makle any difference? I enabled logging and set it to debug and it shows nothing. I was doings this remotely from a windows box and using nslookup on the windows box, funny thing is using nslookup and set q=mx works on the local CentOS Bind server but from the windows client it doesn't?
Thanks! jlc
I enabled logging and set it to debug and it shows nothing. I was doings this remotely from a windows box and using nslookup on the windows box, funny thing is using nslookup and set q=mx works on the local CentOS Bind server but from the windows client it doesn't?
Thanks! jlc
Sigh... I didn't enable enough logging, after I rectified that I saw the windows box was appending its domain suffix on the query which I don't why but it seems to work.
Thanks! jlc
Ok, copied your file exactly as is with obvious name/ip changes and set perms correctly. It didn't makle any difference? I enabled logging and set it to debug and it shows nothing. I was doings this remotely from a windows box and using nslookup on the windows box, funny thing is using nslookup and set q=mx works on the local CentOS Bind server but from the windows client it doesn't?
So from the CentOS box you can type something like: host -t mx domain.com
and that works?
How about this from the Windows box: c:>nslookup
server YourCentOSName or IP set type=mx yourdomain.com
That should work
If that also works, then check the DNS server your windows box is using. It may have cached the DNS entry for domain.com (assuming the DNS server is NOT the CentOS box)
You could also try an ipconfig /flushdns
Shawn
So from the CentOS box you can type something like: host -t mx domain.com
and that works?
How about this from the Windows box: c:>nslookup
server YourCentOSName or IP set type=mx yourdomain.com
That should work
If that also works, then check the DNS server your windows box is using. It may have cached the DNS entry for domain.com (assuming the DNS server is NOT the CentOS box)
You could also try an ipconfig /flushdns
Shawn
Yeah, that is what I did. The windows box is using a different dns server, but as you wrote out, I switched it over in the nslookup command. Its appends the wkst's dns suffix on the query domain.com but not name.domain.com? Bizarre.
jlc
On Sun, 2008-03-16 at 19:28 -0600, Joseph L. Casale wrote:
I have a DNS server which is not returning mx queries for some reason? The zone file is as follows:
$TTL 1H @ IN SOA example.com. root.example.com. ( 1 ; serial# 3H ; refresh 1H ; retry 1W ; expire 1H ) ; minimum NS ns1.example.com. MX 10 mail TXT "v=spf1 a mx include:isp.com -all"
example.com. A aaa.bbb.ccc.ddd ns1 A aaa.bbb.ccc.ddd mail A aaa.bbb.ccc.ddd
The server is setup as with a caching only configuration with recursion turned off. Anyone have any idea what could be wrong?
---- just guessing (because I am this dumb), you created as root and need to change owner:group to named:named (the zone file). /var/log/messages should tell you if that was the problem.
Craig