Updated on
DuckDNS is a free dynamic DNS service that gives you a stable name for a changing public IP address. Open the official DuckDNS sign-in page to create a name such as yourhome.duckdns.org. An updater keeps that name pointing to your current address so you can find a home VPN or a server you manage.
What happens when your IP changes? Suppose you save yourhome.duckdns.org as the server in your phone’s VPN app. In this example, your provider changes your home’s public IP from 192.0.2.10 to 198.51.100.27. Once your updater reports the change and the old DNS answer expires, the next lookup of that same name returns the new address. You can reconnect with the VPN profile you already saved.

DuckDNS handles the name. Your internet connection, router, firewall and server handle the connection itself. If you can already sign in, jump to checking your DuckDNS address or testing a connection from outside your home.
Sign in to DuckDNS and create a hostname
Managing your own hostname? Use the official DuckDNS login to view or update the names in your account.
Opening a service at a .duckdns.org address? Use the address its owner gave you. If the service asks you to sign in, its operator manages that account and any password resets.
- At www.duckdns.org, choose one of the sign-in options. If you already have a hostname, use the same sign-in method and account you used to create it.
- Choose an available subdomain and add it. Save the full name, including
.duckdns.org. For example, addingyourhomecreatesyourhome.duckdns.org. - Find the account token. Your updater uses it to change the address associated with your name. Keep the token private, like a password.
- Choose the official setup instructions for a compatible router or a computer or server that stays on. Run one update, check the reply, then configure it to run regularly.
If you’re setting up the updater on a router, find your router’s model and hardware version before following a setup guide. Check that its DDNS options specifically support DuckDNS or its update format.
How to use DuckDNS when your router has no DDNS setting
A Raspberry Pi that stays on at home can keep your hostname up to date. For example, to track your home connection’s public IPv4 address, connect the Pi to that network and follow these steps.
- Use the official Raspberry Pi instructions to create
~/duckdns/duck.sh. Enter your subdomain and account token, and leaveipempty to let DuckDNS detect the address. Omit the sample’s-koption so curl verifies the HTTPS certificate. - Run
chmod 700 ~/duckdns/duck.sh, then~/duckdns/duck.sh. Read the reply withcat ~/duckdns/duck.log. AnOKmeans DuckDNS accepted the update. If you seeKO, check the subdomain and token, then try again. - On a Windows PC, use the IPv4 lookup below with your own hostname. The answer beneath the hostname should match your home’s current public IPv4 address.
- Once the first update works, run
crontab -eon the Pi and add the five-minute schedule from the Raspberry Pi instructions. The Pi will keep reporting address changes while it’s on and connected.
Use and protect your DuckDNS token
Follow the DuckDNS update specification when an updater asks for the HTTPS URL. This example uses placeholders for the subdomain and token. Enter the part before .duckdns.org in domains.
https://www.duckdns.org/update?domains=YOUR_SUBDOMAIN&token=YOUR_TOKEN&ip=
Leaving ip blank lets DuckDNS detect your IPv4 address. Supply an IPv6 address explicitly if you use IPv6. To update both records in the same request, provide IPv4 in ip and IPv6 in ipv6. DuckDNS replies OK for an accepted update or KO if it fails.
If you accidentally shared the update URL or exposed your token in a screenshot, use Recreate token in the account menu and replace the old token in all your updaters. The DuckDNS FAQ shows where to find that option.
Check what IP address your DuckDNS name returns
On Windows, open Command Prompt and replace yourhome.duckdns.org with your own full hostname. Run the first line for IPv4. Use the second if you configured IPv6.
nslookup -type=A yourhome.duckdns.org
nslookup -type=AAAA yourhome.duckdns.org
Read the address listed below your hostname. The address beside Server at the top belongs to the DNS resolver. Compare the IPv4 answer with your home connection’s current public IPv4, or the IPv6 answer with the intended public IPv6 for your service. See Microsoft’s lookup command reference for the record types.
Find out why the server still won’t connect
First, open the service from inside your home network to confirm it is running. Then, from a phone with Wi-Fi turned off, try the remote address you configured for that service. The two tests help you separate an app problem from an outside-access problem.
| What you see | What to check next |
|---|---|
The updater returns KO |
Check the subdomain, token and update address. If you recently replaced the token, check every updater. |
| The lookup shows an old address or no record | Check the spelling of the hostname and the last successful update. Run the updater from the connection you want to reach. |
| The service fails even inside your home | Check that the app is running and that you are using the protocol and address it expects. |
| The address is right and the service works at home, but outside access fails | Check the service’s remote-access configuration and your router’s WAN address. A private or shared WAN address can indicate another router upstream or carrier-grade NAT (CGNAT). |
If your provider uses CGNAT, ask about a reachable public IP address or use a remote-access method that supports your connection. ASUS explains how to check a router’s WAN address and why upstream NAT can affect incoming connections.
Does DuckDNS make file transfers secure?
DuckDNS updates the address connected to the name. Encryption depends on the protocol you use. If you’re connecting to your own file server, our guide to FTP, FTPS and SFTP on Windows explains the options and which ones encrypt the connection.
Frequently asked questions
Does DuckDNS give me a public IP address?
Your internet provider assigns your connection’s IP address. DuckDNS gives that address a hostname and updates its DNS records.
Does an OK update response prove my server is reachable?
OK confirms that DuckDNS accepted the update. Look up the hostname to see the address it returns, then test your app from a separate network.
Can DuckDNS automatically detect IPv6?
Automatic detection applies to IPv4. Supply your IPv6 address in the updater if you need an IPv6 record.
Can I share my DuckDNS URL?
You can share the hostname if someone needs to reach your service. Keep the full update URL private because it contains your account token.