DNS with a dynamic IP

Before going further, make sure your global IP address is dynamic with: ip.yunohost.org. The global IP address of your box changes almost every day.

This tutorial aim to get around dynamic IP issue which is: when the IP public address of your (Internet Service Provider-) box changes, the DNS zone is not updated to point towards the new IP address, and consequently your server is no more reachable via its domain name

After setting up the solution proposed in this tutorial, the redirection from your domain name to the actual IP address of your server will not be lost anymore.

The method proposed here consists of automatizing the fact the box announces its global IP address change to the dynamic DNS, so that the DNS zone will automatically be updated.

Registrars

Here are some examples of registrars, companies where you can buy domain names:

If you own a domain name at OVH, you may go to step 4 and follow this tutorial, given that OVH proposes a DynDNS service.

1. Create an account to a Dynamic DNS service

Here are sites which offer a DynDNS service free of charge:

Register to one of them. It should provide you with one (or more) IP address to reach the service, and a login (that you may be able to self-define).

2. Move the DNS zones

Copy the DNS zones, except for the NS fields, from the registrar where you bought your domain name from to the dynamic DNS service you registrer at in step 1.

3. Switch the management of your domain name to the dynamic DNS server

This step consists in declaring to your registrar that the DNS service will now be managed by the DynDNS service provider.

For this, first declare in the NS field(s) the IP address provided by the DynDNS service.

Then, remove any other item in the DNS zones (except the previous NS fields), from the registrar.

4. Configure the client

This client could be your ISP-box, or a package installed on your server, such as ddclient. Here, we will use the client provided by the box, which is the more easy way.

Enter the login of the dynamic DNS and its public IP address in your box (interface details may vary by ISP).

You're good to go !

¿Encontraste errores? ¿Crees que puedes mejorar esta documentación? Simply click the Edit link at the top of the page, and then the icon on Github to suggest changes.