Fastman
05-13-2002, 09:40 PM
I'm not sure if I can do this:
I have a domain name (mydomain.com) that is currently set up with the following DNS entries:
NS1.111.111.11.11
NS2.111.111.11.12
NS3.222.222.22.21
NS4.222.222.22.22
How would I set up mail so that all mail goes to 222.222.22.21?
I believe that the CPanel MX Entry feature works only if you are sending mail to a different domain name, not the same name but a specific IP address. Is that correct, or will it take an IP number?
I assume it might be better to edit a DNS Zone in WHM, but I am never certain on editing DNS zones - what entries would I make on 111.111.11.11 to route mail to the other server?
Thanks for any help!
Shyne
05-14-2002, 12:19 AM
MX will accept only IP addresses. Change the current IP address next to the MX entry to what ever server you want e-mail to be handled at.
Fastman
05-14-2002, 08:28 AM
I had tried entering 222.222.22.21, but it still goes into the other server. That's why I had assumed the format needed to be www.domainname.com.
Any other suggestions, or did I misunderstand what you were saying?
kwimberl
05-14-2002, 03:08 PM
Originally posted by Shyne
MX will accept only IP addresses. Change the current IP address next to the MX entry to what ever server you want e-mail to be handled at.
That statement is NOT true. MX entries are generally NOT IPs. Do a lookup on your domain and you will be surprised. :-)
You need to set an A record for the IP you want. Perhaps set an A record for mail. Then set the MX to mail.yourdomain.com.
Fastman
05-14-2002, 04:05 PM
So to have all mail go to 222.222.22.21, do you mean that I should create an entry in 111.111.11.11's DNS Zone of mail,14400, in A 222.222.22.21? Or do you mean to create an entry in 111.111.11.11's DNS Zone of 222.222.22.21, 14400, in MX? Or both?
El Nino
05-14-2002, 05:16 PM
You have to create an A record for 222.222.22.21 calling it mail or something like that and then create an MX record for mail.yourdomain.com because MX records don't take IP addresses, only names.
If you have any questions or need examples, goto http://www.domainwhitepages.com or http://combat.uxn.com and type in a domain name (any one should work) and you should see an MX entry in there.
Shyne
05-14-2002, 06:14 PM
Originally posted by kwimberl
That statement is NOT true. MX entries are generally NOT IPs. Do a lookup on your domain and you will be surprised. :-)
You need to set an A record for the IP you want. Perhaps set an A record for mail. Then set the MX to mail.yourdomain.com.
You are SO right.
:)
Fastman
05-14-2002, 06:14 PM
So if I've got it right :cartman: In WebHost Manager, I'd edit the DNS Zone on server 111.111.11.11 to add:
mail, 14400 IN A, 222.222.22.21
and
mail.mydomain.com, 14400 IN MX, mydomain.com
I'm confused because it doesn't seem like they would tie together.
Fastman
05-14-2002, 08:54 PM
Would this work in the zone for 111.111.11.11?
mydomain.com. 14400 IN MX 0 222.222.22.21.
Wouldn't that set the mail exchange to send mail received at 111.111.11.11 to 222.222.22.21?
El Nino
05-15-2002, 01:55 AM
Originally posted by Fastman
So if I've got it right :cartman: In WebHost Manager, I'd edit the DNS Zone on server 111.111.11.11 to add:
mail, 14400 IN A, 222.222.22.21
and
mail.mydomain.com, 14400 IN MX, mydomain.com
I'm confused because it doesn't seem like they would tie together.
You've got the MX record backwards. I believe it's supposed to be:
mydomain.com, 14400 IN MX, mail.mydomain.com
I'm pretty sure you can't use just the IP address instead of mail.mydomain.com, so that's why you have to create an A record. Also, don't forget to add 0 as the preference, so the record might look like:
mydomain.com, 14400 IN MX, 0 mail.mydomain.com