I used to have my web and email services on the same machine, on the same IP address, so my DNS Zone was relatively simple.
Now, I am setting-up 2 separate machines, for Web server, and for Email server.
- Server #1 for Web services : 212.100.12.345
- Server #2 for Email services : 212.100.56.789
After hours of researching, learning and self-testing, I am stuck when setting my DNS zone : everything on my MAIL server (Server #2) won't ping correctly. I obviously have properly created the DNS records on both machines.
On the Server #1 (212.100.12.345), I need to have :
- ftp.mydomain.com
- www.mydomain.com
On the Server #2 (212.100.56.789) I need to have :
- mail.mydomain.com
- webmail.mydomain.com
Here is the current DNS Zone I've set-up, without success :
$TTL 3600
@ IN SOA dns200.anycast.me. tech.ovh.net. (2017021601 43200 3600 1209600 600)
IN NS dns200.anycast.me.
IN NS ns200.anycast.me.
IN A 212.100.12.345
IN MX 1 mail.mydomain.com.
ftp IN CNAME mydomain.com.
www IN CNAME mydomain.com.
mail IN A 212.100.56.789
pop IN CNAME mail.mydomain.com.
webmail IN CNAME mail.mydomain.com.
Should I correct anything ? (Yes : but what ^!^)
Should I add some record to the DNS records on my Server #1, in order to "re-route" traffic for mail.mydomain.com to the Server #2 ?
Thank you if you have any clue ;)