# Dynamic DNS (DDNS)

> For AI tools: this is the Markdown copy of https://xproxy.io/document/dynamic-dns-setup. Every XProxy guide has one at its URL + `.md`; the index of all guides is https://xproxy.io/llms.txt.

Configure Dynamic DNS for stable domain access to your XProxy server.

Dynamic DNS (DDNS) gives your box a name that always points to your current home IP. Use the name instead of the IP, and nothing breaks when your internet provider changes it.

**You need:** proxies that customers reach through your router ([router forwarding](https://xproxy.io/document/how-public-access-xproxy)) and a free account at a DDNS provider. It takes about 10 minutes.

In short

**What it does**

Your box tells the provider your IP again and again. The name always points to the latest one.

**Why you want it**

Customers keep one address. You never send a new IP to anyone after a router restart.

**Do you need it?**

Only with router forwarding. A VPS has a fixed address, so with [VPS forwarding](https://xproxy.io/document/vps-forwarding-to-use-difference-place) you can skip this.

## Pick a provider

XProxy supports five. Pick one. If you own a domain, Cloudflare is the best choice.

| Provider | Plan | Your own domain | Good for |
| --- | --- | --- | --- |
| Cloudflare | Free plan | Yes. Pay only your domain registrar | You own a domain. Fast updates (1 minute TTL) |
| DuckDNS | Free | No. Only names ending in.duckdns.org | The simplest start. Unlimited names |
| NO-IP | 3 free host names | Yes, on a paid plan | An easy, reliable start |
| Dynu | No renewal needed | Yes: point your domain to Dynu | Your own domain without Cloudflare |
| DNS-O-Matic | Passes updates on | Depends on the provider behind it | Updating several providers at once |

You can turn on more than one provider. **Sync All** (top right of the page) updates all of them now.

## Set it up

**Step 1: Create an API token (Cloudflare)**

In Cloudflare, open **My Profile**, then **API Tokens**, and click **Create Token**.

1. Use the **Edit zone DNS** template.
2. Limit it to the domain you will use. XProxy needs **DNS Read** and **DNS Edit** on that zone.
3. Create the token and copy it. Cloudflare shows it only once.

> Cloudflare is the best choice if you own a domain. The Free plan is enough, and you only pay your domain registrar.

**Step 2: Get the Zone ID and add a record (Cloudflare)**

1. Open your domain in Cloudflare. On **Overview**, copy the **Zone ID**.
2. Open **DNS**, then **Records**, and add an **A** record for the name you want, for example `proxy` for `proxy.example.com`. Any IP is fine for now: XProxy keeps it up to date.
3. Set the **Proxy status** to **DNS only** (grey cloud).

> Keep the orange cloud **off**. Cloudflare's proxy only passes web traffic, so proxy connections through it fail.

**Step 3: Get a token and a name (DuckDNS)**

1. Sign up at [duckdns.org](https://www.duckdns.org) and copy your **token**.
2. Create a subdomain, for example `myproxy`. Your name is `myproxy.duckdns.org`.

> DuckDNS is free and simple, but it only gives you `.duckdns.org` names. You cannot use your own domain.

**Step 4: Create a host name (NO-IP)**

1. Create an account at [noip.com](https://www.noip.com).
2. Create a host name, for example `myproxy.ddns.net`.
3. Note your username. For the password, the panel recommends a **DDNS update key** instead of your account password.

> The free plan has 3 host names. Your own domain needs a paid plan.

**Step 5: Add a host name (Dynu)**

1. Create an account at [dynu.com](https://www.dynu.com).
2. Add a host name, for example `myproxy.ddnsfree.com`.
3. Find your **IP Update Password** in your Dynu account. XProxy sends it hashed (MD5).

> Dynu also supports your own domain: point the name servers (NS) of your domain to Dynu.

**Step 6: Set up your account (DNS-O-Matic)**

1. Create an account at [dnsomatic.com](https://www.dnsomatic.com).
2. Add the DDNS services you want it to update.
3. Note your username and password.

> DNS-O-Matic does not host names itself. It forwards one update to many providers (for example Cloudflare, DuckDNS, NO-IP or Dynu).

**Step 7: Enter it in XProxy (Cloudflare)**

Open your panel, then **General Settings** and **Dynamic DNS**. Open the **Cloudflare** tab.

1. Turn **Enable** on.
2. Paste the **API Token**, the **Zone ID** and the **Record Name** (for example `proxy.example.com`).
3. Keep **Proxied** off.
4. Click **Save**, then **Test Update**.

![Dynamic DNS page, Cloudflare tab: Enable, API Token, Zone ID, Record Name, Proxied off, Save and Test Update](https://media1.xproxy.io/docs/anywhere/ddns-cloudflare.webp)

> Click **Save**: the panel starts to sync at once. Then click **Test Update**. You want **Synchronized successfully**. **No change needed** is fine too: the name already points to your IP. A short **TTL** (60 or 120 seconds) makes a new IP spread faster.

**Step 8: Enter it in XProxy (DuckDNS)**

Open your panel, then **General Settings** and **Dynamic DNS**. Open the **DuckDNS** tab.

1. Turn **Enable** on.
2. Paste the **Token**.
3. Type your **Domain**, for example `myproxy.duckdns.org`.
4. Click **Save**, then **Test Update**.

![Dynamic DNS page, DuckDNS tab: Enable, Token, Domain, Save and Test Update](https://media1.xproxy.io/docs/anywhere/ddns-duckdns.webp)

> Click **Save**: the panel starts to sync at once. Then click **Test Update**. You want **Synchronized successfully**. **No change needed** is fine too: the name already points to your IP.

**Step 9: Enter it in XProxy (NO-IP)**

Open your panel, then **General Settings** and **Dynamic DNS**. Open the **NO-IP** tab.

1. Turn **Enable** on.
2. Type your **Username** and your **Password/DDNS Key**.
3. Type the **Hostname**, for example `myproxy.ddns.net`.
4. Click **Save**, then **Test Update**.

![Dynamic DNS page, NO-IP tab: Enable, Username, Password or DDNS Key, Hostname, Save and Test Update](https://media1.xproxy.io/docs/anywhere/ddns-noip.webp)

> Click **Save**: the panel starts to sync at once. Then click **Test Update**. You want **Synchronized successfully**. **No change needed** is fine too: the name already points to your IP.

**Step 10: Enter it in XProxy (Dynu)**

Open your panel, then **General Settings** and **Dynamic DNS**. Open the **Dynu** tab.

1. Turn **Enable** on.
2. Type the **Hostname**, for example `myproxy.ddnsfree.com`.
3. Type the **Account Password**: this is your Dynu **IP Update Password**.
4. Click **Save**, then **Test Update**.

![Dynamic DNS page, Dynu tab: Enable, Hostname, Account Password, Save and Test Update](https://media1.xproxy.io/docs/anywhere/ddns-dynu.webp)

> Click **Save**: the panel starts to sync at once. Then click **Test Update**. You want **Synchronized successfully**. **No change needed** is fine too: the name already points to your IP.

**Step 11: Enter it in XProxy (DNS-O-Matic)**

Open your panel, then **General Settings** and **Dynamic DNS**. Open the **DNS-O-Matic** tab.

1. Turn **Enable** on.
2. Type your **Username** and **Password**.
3. **Hostname**: leave it empty to update `all.dnsomatic.com` (every linked service), or type one host name.
4. Click **Save**, then **Test Update**.

![Dynamic DNS page, DNS-O-Matic tab: Enable, Username, Password, Hostname, Save and Test Update](https://media1.xproxy.io/docs/anywhere/ddns-dnsomatic.webp)

> Click **Save**: the panel starts to sync at once. Then click **Test Update**. You want **Synchronized successfully**. **No change needed** is fine too: the name already points to your IP.

**Step 12: Hand out the name**

Tell XProxy to give your name to customers. Open **Proxy Management**, then **Proxy Settings** and the **Address** tab.

1. For **Source**, choose **DDNS**. **Resolves to** shows your name. Using your own domain? Choose **Custom** and type it.
2. Click **Save**.

The proxy list, Copy, Export, QR codes, rotation links, the public API and Selling now use your name.

![Proxy Settings, Address tab: the Source switch set to DDNS, the name it resolves to, and Save](https://media1.xproxy.io/docs/anywhere/ddns-address.webp)

> Do not put a name behind Cloudflare's orange cloud here. The panel warns you: only web traffic gets through it.

**What's next?**

Want to sell these proxies? See [Selling Platform](https://xproxy.io/document/how-use-selling-platform). Customers can now use `name:port` in their tools.

## What the status means

Under each form the panel shows **Last IP** (the IP it sent), the last result and **Next** (when it updates again).

| You see | It means |
| --- | --- |
| Green tick on the tab | The last update worked. The name points to your IP. |
| Orange warning | A temporary problem, for example a rate limit. The panel tries again by itself. |
| Red error | Wrong login or token, or the record or host name was not found. Fix it and click Test Update. |
| Grey icon | Not run yet. |

Other settings, the same for every provider: **IP Source** is **Auto (public IP)**, or **Manual** if you want to send a fixed IP. **Update interval** is 60 seconds or more.

## Something not working?

| You see | What to do |
| --- | --- |
| Authentication failed | Check the username, token or password. Remove spaces before or after it. |
| Record or host not found | Make sure the name exists in your provider account, and that you typed it in full. |
| The name still shows the old IP | Wait for the **TTL** to pass. Next time, use a shorter one (60 or 120 seconds). You can also clear the DNS cache on your computer. |
| Nothing updates | Check that **Enable** is on and that you clicked **Save**. |
| Customers cannot connect with the name | Open **Proxy Settings**, **Address** and read the **DNS check**. It tells you if the name has no record, or sits behind Cloudflare's orange cloud. |
| How do I check the name myself? | Run the command below. It should print your current public IP. |

Terminal

```
dig +short proxy.example.com
```

---

Source: https://xproxy.io/document/dynamic-dns-setup
