---
title: DNS with a dynamic IP
template: docs
taxonomy:
    category: docs
routes:
  default: '/dns_dynamicip'
---

! Before going further, make sure your global IP address is dynamic with: [`ip.yunohost.org`](http://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:

- [OVH](http://ovh.com/)
- [GoDaddy](https://godaddy.com/)
- [Gandi](http://gandi.net/)
- [Namecheap](https://www.namecheap.com/)
- [BookMyName](https://www.bookmyname.com/)

If you own a domain name at **OVH**, you may go to step 4 and follow this [tutorial](/OVH), 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:

- [DNSexit](https://www.dnsexit.com/Direct.sv?cmd=dynDns)
- [No-IP](https://www.noip.com/remote-access)
- [ChangeIP](https://changeip.com)
- [DynDNS.it (in italian, paid plan)](https://dyndns.it)
- [DynDNS with your own domain](https://github.com/opi/DynDNS-with-HE.NET)
- [Duck DNS](https://www.duckdns.org/)
- [ydns.io](https://ydns.io/)

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](/dns_config), except for the NS fields, from the [registrar](#registrars) 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](#registrars) 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](/dns_config) (except the previous NS fields), from the [registrar](#registrars).

#### 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).

![](image://dns_dynamic-ip_box_conf.png?resize=600)

You're good to go !
