This tutorial aim to get around dynamic IP issue who's nest: when the IP address public of the box change, the DNS zone is not update to point towards the new IP address.
After put in place the solution proposed in this tutorial, the redirection from your domain name to the real IP address will not be loose anymore.
The method which will be put in place consist to make automatic the fact the box annonce to the dynamic DNS it has change global IP address, and then the DNS zone will automatically be changed.
If you own a domain name at OVH, you could go to step 4 and follow this tutorial because OVH propose a DynDNS service.
Here is sites which offer a DynDNS service free of charge:
Register to one of them.
Move the DNS zones, excepted the NS fields, from the registrar where you bought your domain name to the dynamic DNS service you registrer at step 1.
This step consist to say to the registrar that DNS service will be manage by the DynDNS service. Redirect NS field to the IP address gived by the DynDNS service.
Then, remove DNS zones, excepted NS fields, from the registrar.
On the dynamic DNS service create a login that you will enter on a dynamic DNS client.
This client could be your box or a package installed on your server as ddclient
.
We gone use the client installed on the box which is more easy way.
Put the login of the dynamic DNS and the public IP address on your box.