[CentOS] Bind Problem

Mon Mar 17 01:44:05 UTC 2008
Shawn Everett <shawn at tandac.com>

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