MX record in zone file
Greg Wildman
rhlist at itns.co.za
Thu Jan 13 08:20:04 UTC 2005
On Thu, 2005-01-13 at 11:56 -0800, Rudolf Amirjanyan wrote:
> Hello,
>
> In DNS records, I.E zone file, is it possible to write IP address of the
> mail server instead of host domain name?
> like:
>
> DOMAIN.COM in mx 10 123.123.123.123.
If my memory serves me correctly that is not allowed per RFC.
A better way would be to create the A record at the same time, eg.
----- sample test.com zone file ------
$TTL 43200 ; 12 hours
@ IN SOA ns1.test.com. hostmaster.test.com. (
2005011301 ; serial
3600 ; refresh (1 hour)
900 ; retry (15 minutes)
1209600 ; expire (2 weeks)
43200 ; minimum (12 hours)
)
IN NS ns1.test.com.
IN A 192.168.0.1
IN MX 5 mail
mail IN A 192.168.0.5
ns1 IN A 192.168.0.1
www IN CNAME ns1
localhost IN A 127.0.0.1
--------------------------------------
The MX record points to the A record which resolves to the IP (in this
case 192.168.0.5)
--
Greg
More information about the fedora-list
mailing list