DNS expertise - MX records

Man of Honour
Joined
4 Nov 2002
Posts
15,511
Location
West Berkshire
I have a domain that looks roughly like this (relevant records extracted from DNS zone):

domain.com 1800 IN MX 0 domain.com
domain.com 1800 IN A ipaddress-1
mail 1800 IN CNAME domain.com
www 1800 IN A ipaddress-2

I've already moved www.domain.com to a new IP address (ipaddress-2). Now I want to do the same for domain.com, but I want to leave mail.domain.com and the MX where they are (i.e. ipaddress-1)

Is that possible, and if so, what changes do I need to make to the zone to make that work?

Oh, and have I done the www move the right way? (it's working, but I don't want to do anything bad to the DNS server as it isn't mine). It was originally www 1800 IN CNAME domain.com

Thanks.

PS - all names changed to protect the innocent. :)
 
Last edited:
Hi Mark :)

Do this...

Look up the IP which domain.com currently points to.
Change mail from a CNAME to an A record and point it to that IP
Make mail.domain.com the MX
Change the root record for domain.com to the new IP

That should do it.
 
Back
Top Bottom