Glossary / DNS basics
Dynamic DNS (DDNS)
Dynamic DNS (DDNS) is a way to keep a hostname pointed at an IP address that changes, such as a home internet connection. A small client on your router or computer notices the new address and updates the DNS record automatically, so home.example.com keeps reaching your network.
Copy the syntax
The record DDNS keeps current
home.example.com. 300 IN A 203.0.113.24A short TTL, such as 300 seconds, lets the new address spread quickly.
Signed update with nsupdate
nsupdate -k home.key <<< $'update delete home.example.com A\nupdate add home.example.com 300 A 203.0.113.24\nsend'For DNS servers that accept RFC 2136 updates with a TSIG key.
Have a name in mind?
.com $24.99 first year, renews at $24.99/yr. Other endings: not on sale yet.
In plain English
Dynamic DNS keeps a name pointed at your home or office connection, even when your internet provider changes its address.
What to do
- Turn on the DDNS setting in your router, or install your provider's update client.
- Use a short TTL on the record it updates.
- Check the name resolves to your current public IP.
- Update protocol
- DNS UPDATE, RFC 2136Source: RFC 2136
- Signed updates
- TSIG keys, RFC 8945Source: RFC 8945
- Record usually updated
- A (IPv4) or AAAA (IPv6)Source: RFC 3596
What is dynamic DNS used for?
Dynamic DNS is used to reach something on a connection without a fixed IP: a home server, security cameras, a VPN endpoint or a lab machine. Instead of memorizing an address that changes, you use a stable hostname.
Many routers have a DDNS setting built in. You pick a provider, enter the hostname and credentials, and the router reports each new address.
Do I need DDNS if I have a static IP?
No. With a static IP, a normal A record never needs to change. DDNS solves the problem of addresses that your ISP reassigns.
Is dynamic DNS secure?
The update itself should be authenticated, with a TSIG key or the provider’s token, so nobody else can repoint your hostname. Exposing a home service still means patching it and putting it behind a VPN or strong login where you can.
Dynamic DNS setups, with example values
| Hostname | Type | Value | Updated by |
|---|---|---|---|
| home.example.com | A | 203.0.113.24 | Router DDNS client |
| vpn.example.com | AAAA | 2001:db8::24 | Script on the VPN box |
| cam.example.com | CNAME | home.example.com. | Never: follows the A record |
How do I set up dynamic DNS?
Pick a DNS provider that accepts dynamic updates. You get a hostname and an update key or token.
Create the A record with a short TTL, such as 300 seconds. The hostname exists and resolves.
Enter the hostname and key in your router’s DDNS settings, or install the provider’s update client. The client reports your current address.
Restart the connection and run dig home.example.com +short. The answer matches your new public IP.
Questions about Dynamic DNS (DDNS)
Is there free dynamic DNS?
Free dynamic DNS services exist and usually give you a hostname under the provider’s own domain. Using your own domain needs a DNS host that accepts updates for your zone, and some routers support only a short list of providers.
How fast does a DDNS change take effect?
The record updates within seconds of the client reporting it. Resolvers that cached the old address keep it until the TTL runs out, which is why DDNS records use short TTLs.
Does DDNS work with CGNAT?
Not for inbound access. Under carrier-grade NAT your public address is shared, so the hostname points to an address you cannot accept connections on. You need a public IP from your ISP or a tunnel service instead.
Can I point my own domain at a DDNS hostname?
Yes. Create a CNAME on a subdomain, such as home.example.com, that points at the DDNS hostname. The CNAME follows whatever address the DDNS record holds.
Put it to work on your own domain
See the first-year and renewal price before you pay.