Questions about MX record

Mathias Körber mathias at staff.singnet.com.sg
Sun Jul 23 07:21:03 UTC 2000




> -----Original Message-----
> From: news at news6.aus1.giganews.com
> [mailto:news at news6.aus1.giganews.com]On Behalf Of Nick McCubbins
>=20
> My understanding is that I should have two "A" entries, one for
> mail.domain.com and one for domain.com, both pointing to the machine's
> IP address.

You don't need two A records.

The cleaner way is to:

	@	IN SOA ...
		IN NS ns1
		IN NS <other nameserver elsewhere>

		IN MX	mail

	mail	IN A 1.2.3.4
	ns1	IN A 1.2.3.4

If you want all mail to potential hosts or subdomains
of your domain to also go to mail.domain.com, you could
	a) add another wildcard MX record

	*	IN MX mail

	b) add a separate MX record for each host and subdomain

	host1	IN MX mail

The extra A record for domain.com is not really necessary,
and would most likely be used ifyou want web URLs like
	http://domain.com
to work the same as http://www.domain.com. In that case, naturally
the A records for domain.com and www.domain.com must point to the same =
address.

It is not common to use an extra A record for mail, though it might
help with broken mailers that do not understand MX records...

HTH
>=20
> Should I set the mx record to domain.com or mail.domain.com?  What
> effects will this have on my Sendmail configuration?
>=20
> Thanks in advance.
>=20
> -Nick
>=20
>=20




More information about the bind-users mailing list