LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNS for Mail (https://www.linuxquestions.org/questions/linux-networking-3/dns-for-mail-134406/)

twistedpair 01-13-2004 01:12 PM

DNS for Mail
 
Hi all,
I was wondering if anyone could point me to some good how-to articles that deal specifically with DNS configuration as it relates to mail routing. I know there is a DNS-howto, but I was looking for something a little more specific.

Thanks!
-Pair

WeNdeL 01-13-2004 02:06 PM

O'reilly's DNS and Bind.

BAAMMM!

chort 01-13-2004 02:25 PM

DNS & BIND is excellent.

For "mail routing" (at least, from the Internet) all you need is at least one MX record.

yourdomain.tld. IN MX 20 yourmailserver.yourdomain.tld.

The "20" is the preference. The higher the preference number, the less preferred it is. The lower the number, the more preferred. Other mail servers will start at the lowest number and try each listed MX in ascending order until they find one that will take the mail (roughly speaking, it's actually more complicated than that, but you can assume that it works the way I said and you'll be OK).

twistedpair 01-13-2004 02:48 PM

That was kinda what I was thinking, but don't you need PTR records for servers that do reverse DNS? What about an A record?

Pair

Quote:

Originally posted by chort
DNS & BIND is excellent.

For "mail routing" (at least, from the Internet) all you need is at least one MX record.

yourdomain.tld. IN MX 20 yourmailserver.yourdomain.tld.

The "20" is the preference. The higher the preference number, the less preferred it is. The lower the number, the more preferred. Other mail servers will start at the lowest number and try each listed MX in ascending order until they find one that will take the mail (roughly speaking, it's actually more complicated than that, but you can assume that it works the way I said and you'll be OK).


chort 01-13-2004 05:21 PM

Well how are they going to resolve the IP of "yourmailserver.yourdomain.tld" without an A record??? Of course you need an A record! As for PTR records, they're not strictly required, but they certainly are polite. Every IP should have a PTR record.


All times are GMT -5. The time now is 01:57 AM.