Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a DNS server setup using webmin, and I am having trouble getting the MX records to work. I just want to double check that my records file is setup correctly.

$ttl 38400
example.com.    IN  SOA ns1.example.com. 1055026205 (
            29
            1D
            1H
            1W
            3H )
example.        IN    A     123.456.7.890
www.example.com.    IN    CNAME example.com.
ns1.example.com.    IN    A     123.456.7.890
ns2.example.com.    IN    A     123.456.7.890
mail.example.com.   IN    A     123.456.7.890
example.com.        IN    NS    ns1.example.com.
example.com.        IN    NS    ns2.example.com.
mail.example.com.   IN    MX    10 example.com.
123.456.7.890.example.com.  IN  PTR example.com.
share|improve this question
3  
Is example. IN A 123.456.7.890 a typo? –  EightBitTony Jun 9 '13 at 22:59

1 Answer 1

You didn't really say how you intended to configure the mail service...

If your SMTP server is listening at example.com (123.456.7.890), then the config you included looks like a correct way to handle mail for domain mail.example.com, that is, for email addresses like David@mail.example.com.

I can only guess that you might want mail to work for the domain example.com, that is email addresses like David@example.com. In that case you would need an MX record on example.com itself.

By the way, in zone files it is conventional to list the SOA record first, then the NS records, then everything else. Also, your PTR record is meaningless. PTR records are used almost exclusively in reverse zones (under in-addr.arpa and ip6.arpa).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.