email forwarding / dns question
PirateNinja
Icrontian
I have the following DNS setup:
MX 0 mydomain.com -> mail.mydomain.com
A mail.mydomain.com -> 10.10.10.10
Recently, my host of 10.10.10.10, changed my IP address without notifying me. All the email I had setup @ 10.10.10.10 broke. Actually I only use 10.10.10.10 for mail forwarding, but still it broke. Naturally I fixed it by changing this dns record:
A mail.mydomain.com -> 10.10.10.20
My questions:
1. Is there a good monitoring service you guys recommend that would SMS alert me the instant one of my forwarding email addresses stops working, whether it is a problem with DNS or otherwise?
2. Is there a better way for me to setup my DNS so that I can avoid downtime in the future?
3. Is there a good professional email forwarding only service out there? I see Dyn has one, but I'm hesitant.
MX 0 mydomain.com -> mail.mydomain.com
A mail.mydomain.com -> 10.10.10.10
Recently, my host of 10.10.10.10, changed my IP address without notifying me. All the email I had setup @ 10.10.10.10 broke. Actually I only use 10.10.10.10 for mail forwarding, but still it broke. Naturally I fixed it by changing this dns record:
A mail.mydomain.com -> 10.10.10.20
My questions:
1. Is there a good monitoring service you guys recommend that would SMS alert me the instant one of my forwarding email addresses stops working, whether it is a problem with DNS or otherwise?
2. Is there a better way for me to setup my DNS so that I can avoid downtime in the future?
3. Is there a good professional email forwarding only service out there? I see Dyn has one, but I'm hesitant.
0
Comments
Find out what name 10.10.10.20 resolves to.
So then you would have your "PirateNinja" domain setup at x.x.x.x usually points to you webserver...
and the MX record would be:
pirateninja.com. MX 0 mail.bigserverelsewhere.com.
make sure the periods are in place after the names. Otherwise the DNS tries to resolve to pirateninja.com.mail.bigserverelsewhere.com
2. You may be able to get around that with DDNS
As for a notification when the email stops working, the only resolution my mind comes up with is an automated ping of the mail server and monitor the IP that resolves. If IP is different, send SMS.
Edit again because I reread OP questions.
1. Use Afraid.org (AKA FreeDNS) for dynamic DNS services. Just.. leave it at that. No muss, no fuss.
2. Don't go blaming DNS for your missing infrastructure. If you don't want email to go splat, have a backup MX. There's a reason we use a priority field in MX records and there's usually more than one.
3. There is no such thing as a good 'forwarding' service. Most intelligent servers out there will reject on A/PTR mismatch or missing PTR. Use hosting.
So what you should have is:
mydomain.int
SOA Section
IN MX 0 mail.mydomain.int
IN MX 10 mail2.mydomain.int
10.10.10.20 IN A mail.mydomain.int
10.10.10.21 IN A mail2.mydomain.int
10.10.10.in-addr.arpa
SOA Section
20 IN PTR mail.mydomain.int
21 IN PTR mail2.mydomain.int
I still need the IP address for the A record, and the IP address is what changed on me a few days ago. Also this isn't for pirateninja.com, although by chance I do own that domain.
My DNS is hosted on a Route 53. My webserver and mail server are different. The mail server is a fully functional mail server, but it is only used for forwarding because I don't need it for anything else.
Essentially I'm asking for a recommendation for an excellent email only hosting company that won't change IPs without a heads up and a good service to monitor that mail server.
Rootwyrm ... thanks.
========
Anybody have other ideas to my original three questions?
Here is a zone record for one of our customers from my DNS server at wrok. The names and IP's are munged as to not cause any issues.
Basically customers_domain.ca is his domain and his web and mail are hosted on not_my_server.ca.
We hosted his site and mail before but he required an exchange server so he moved his site and mail but left the DNS still with us...
In the following Zone record:
dns_server.at_work.ns.ca & second_dns_server.at_work.ns.ca are my DNS servers.
customers_domain.ca points to 209.xx.xx.139 which is the address of his website.
www.customers_domain.ca points to CNAME of 209.xx.xx.139
sharepoint.customers_domain.ca points to the sharepoint server at 209.xx.xx.141
Both MX records for his mail smtp1.not_my_server.ca & smtp2.not_my_server.ca do not have IP numbers, they just point to the FQDN of his hosts mail exchangers.
This way if his host ever changes mail exchanger IP numbers it does not matter as things will still resolve.