My hosting provider (amen.pt) told me I can keep my e-mails and webmail hosted with them and host the website elsewere. For this to work I need to change the DNS A record 'www' to the IP of the other server.
My question (which I asked them, but haven't heard of them so far...) is if this IP must be static or can this configuration handle a dynamic IP. This is because I'm thinking of moving the website to Webfaction and I think I have a dynamic IP there...
Thanks!
If you have a dynamic IP address on your server then you need to have some method of detecting the change and then updating your DNS records with the updated information. During the time between the IP address changing and your update to the DNS your site will be effectively down.
You will need to find out if amen.pt allow and have some method of facilitating an automatic update to your DNS records. Failing that you will probably have to host your DNS with a company that does allow and facilitate automatic updates when IPs change.
There are several tools (e.g., DynDNS) to update DNS records dynamically. If amen.pt does not allow to change your DNS configuration with an external tool you can create a fix
CNAME
record for your www address which point to the dynamic address. For example you can have aCNAME
entry for www.example.com pointing to dynamic.example.com.You can then use any public tools (as DynDNS) to update dynamic.example.com
Easier solution:
1 - Create a CNAME record from 'www.mywebsite.com' to 'dynamic.mywebsite.com'.
2 - Point your A name record from 'website.com' to '174.129.25.170' which is the wwwizer.com service. It will redirect your website.com to www.website.com that points to your dynamic IP.
Best solution:
Not all domain registrars allow you to set you base host as a CNAME, the problem is:
A points name to IP CNAME points name to name
If you can't point your A to an IP because it's dynamic and you can't point website.com to a name due your domain registrar limitation. How will you point to your domain to the dynamic IP?
I suggest you to use cloudflare as far as I can remember they accept you to set your base domain as a CNAME. Follow these steps:
1 - Create your account in https://www.cloudflare.com it's a free CDN (content delivery network) you'll be able to just use the DNS service if you want.
2 - Change your nameservers to cloudflare.
3 - Wait the DNS propagation time (24 hours) and check if cloudflare is working. (It shows in your cloudflare dashboard)
4 - Point 'website.com' to dynamic.website.com then point 'www' to 'website.com'.
Hope it helps.