Moving servers using DNS

Geeza

Verified User
Joined
Oct 29, 2005
Messages
13
Location
The Netherlands
Hi, I am currently in the process of moving from our current server to a new server that uses Direct Admin.

On our current server (which is colocated) we have no admin (root) rights. I have however access to the dns server.

The following DNS records excist for one of our domains:

Name Type Content Priority TTL
findtheeasteregg.com SOA ns3.firstfind.nl [email protected] 2005080300 16384 2048 1048576 86400 3600
findtheeasteregg.com NS ns3.firstfind.nl 86400
findtheeasteregg.com NS ns4.firstfind.nl 86400
findtheeasteregg.com MX mx1.cyso.net 20 86400
findtheeasteregg.com MX mx2.cyso.net 30 86400
findtheeasteregg.com MX zoekned.yourcolocated.nl 10 86400
findtheeasteregg.com A 217.170.2.231 86400
*.findtheeasteregg.com A 217.170.2.231 86400
ftp.findtheeasteregg.com CNAME findtheeasteregg.com 86400
pop.findtheeasteregg.com CNAME findtheeasteregg.com 86400
pop3.findtheeasteregg.com CNAME findtheeasteregg.com 86400
smtp.findtheeasteregg.com CNAME findtheeasteregg.com 86400
www.findtheeasteregg.com CNAME findtheeasteregg.com 86400
mail.findtheeasteregg.com CNAME findtheeasteregg.com 86400
localhost.findtheeasteregg.com A 127.0.0.1 86400


To make the transistion to our new server a lot better it would be easy if I could change the DNS to point to our new server prior of actually moving them.

I've managed to change the above records so the domain findtheeasteregg.com ends up on our new system. In order to do this I've changed the CNAME records to end up on the IP of our new server: 82.192.72.200. Using Direct Admin on the new server I've added the account findtheeasteregg.com.

What I can't manage to get working is the email. I've read MX records relate to email. I've tried to change them but it says MX records need a hostname, not an IP.

Has anyone any experience in DNS and able to help me out? I have no idea what to change for the above DNS records or Direct Admin to make email get received by the POP box on the new server.
 
You need to set up an A record (not a CNAME) for your mail server and then point your MX to the A record...


A - Record should look something like this...

mail 12h IN A 82.192.72.200

MX should look like this

findtheeasteregg.com. IN MX 10 mail
 
Thanx for the reply,

I now have the following in my DNS records:

findtheeasteregg.com SOA ns3.firstfind.nl [email protected] 2005080300 16384 2048 1048576 86400 3600

Name Type Content
---------------------------------------------------------------
findtheeasteregg.com NS ns3.firstfind.nl 86400
findtheeasteregg.com NS ns4.firstfind.nl 86400
findtheeasteregg.com MX mail.findtheeasteregg.com 10 3600
findtheeasteregg.com A 82.192.72.230 86400
mail.findtheeasteregg.com A 82.192.72.230 3600
*.findtheeasteregg.com A 82.192.72.230 86400
www.findtheeasteregg.com CNAME findtheeasteregg.com

Unfortunatly it still doesn' t work. Is there anything I'm missing :S
?
 
Forgot to mention. I get the folowing undeliverable message when sending an e-mail:

< smtp6.wanadoo.nl #5.0.0 X-Postfix; host mx1.cyso.net[217.170.2.82] said: 550 5.7.1 <[email protected]>... Relaying denied. Proper authentication required. (in reply to RCPT TO command)>
 
The above settings resolved my problems! Thanks for all the help!

Today I found out the server was sending a "Unrouteable address" error. It meant the server received the email but couldn't find the internal e-mail address (so it no longer was a dns related problem with my old host but a local error).

I solved my final problem by looking at the returned "error e-mail" and reading this page:
http://help.directadmin.com/item.php?id=16

The hostname of my server wasn't the same as provided to DirectAdmin during install. So make sure the hostname of Directadmin is the same as the actual hostname in linux.
 
Back
Top