The short answer

A dynamic DNS (DDNS) client, on a router or a computer, notices when the public IP address changes and updates a DNS record, using either a provider's HTTP API or the standard DNS UPDATE protocol (RFC 2136). Use a short TTL (60 to 300 seconds) and a credential that can change only that one name. Records go stale when the client stops updating, which can leave your name pointing at someone else's address. And a correct record does not guarantee reachability: behind carrier-grade NAT (CGNAT) your router has no public address of its own, so nothing on the internet can connect in, whatever DNS says.

How updates work

MethodHow the client authenticatesTypical use
Provider HTTP API (often the "dyndns2" style URL that routers support)A username and password or token sent over HTTPSRouters, NAS boxes, and hosted DDNS names
DNS provider API (Cloudflare, Route 53 and others)An API token scoped to the zone or recordScripts and tools such as ddclient or inadyn updating a name in your own domain
DNS UPDATE (RFC 2136)A TSIG key (RFC 8945)Your own authoritative servers, and DHCP servers registering client names

An RFC 2136 update with BIND's nsupdate looks like this (run it with nsupdate -k /etc/ddns.key):

server ns1.example.com
zone example.com
update delete home.example.com A
update add home.example.com 60 A 203.0.113.45
send

On the server, allow updates only for that name and type with that key, for example with BIND's update-policy, so a leaked key cannot change anything else.

IPv4, IPv6 and TTLs

  • IPv4: the client publishes the router's public address, and port forwarding on the router sends connections to the right device.
  • IPv6: each device has its own global address, so the AAAA record must be the address of the device itself, not the router. Use its stable address, not a temporary privacy address that changes every day. When the ISP changes the IPv6 prefix, every device's address changes too.
  • Both: if you publish A and AAAA records, update both. A stale AAAA record makes IPv6 clients fail even when IPv4 works, and many clients try IPv6 first.
  • TTL: 60 to 300 seconds limits how long resolvers keep an old address after a change. Some providers enforce a minimum.

Stale records

A record is stale when it still holds an old address. It happens when the update client stops (a router reset, an expired password, a provider ending free accounts), when only one of A and AAAA is updated, or when a device that ran the client is retired.

A stale address is not just broken: the ISP gives it to another customer, so your name now points at a stranger's connection. Anyone who trusts the name, such as a VPN client or a bookmark, connects to them. When you stop using a DDNS name, delete the record rather than leaving it. See dangling DNS for the same problem with cloud services.

NAT, CGNAT and reachability

SituationCan the internet connect in?
Router has a public IPv4 address, port forwarding set upYes, on the forwarded ports
Router's WAN address is in a private range (192.168.x.x, 10.x.x.x, 172.16.0.0/12) because it sits behind your own ISP modem or routerYes, once fixed. This is double NAT, and both devices are yours: forward the port on both, or put the ISP device in bridge mode.
Router's WAN address is in 100.64.0.0/10, or private with no other NAT device on your premisesNo. You are behind CGNAT or another NAT you do not control (RFC 6598). DDNS will publish the carrier's shared address, which leads nowhere.
ISP blocks inbound ports such as 25, 80 or 443Not on those ports
IPv6 with a firewall that allows the port to that deviceYes, over IPv6 only, for clients that have IPv6

Behind CGNAT, the options are to ask the ISP for a public IPv4 address, use IPv6, or use an outbound tunnel or relay service that does not need inbound connections. See NAT and private IP ranges.

Troubleshooting

CheckHow
Your current public addressDNS Panopticon's What Is My IP page, opened from the network in question
What the record says at the sourcedig +norecurse +short @ns1.example.com home.example.com A, and the same for AAAA
What resolvers have cacheddig +short home.example.com A and the remaining TTL
The same from Windows PowerShellResolve-DnsName home.example.com -Type A
Whether you are behind CGNATCompare the router's WAN address with your public address. A 100.64.x.x WAN address means CGNAT. A different private address can be double NAT: if an ISP modem or router sits in front of yours, check its WAN address the same way before deciding it is CGNAT.
Whether the port is reachable from outsideTCP Port Check against the name and port
Whether updates are happeningThe update client's log, or the provider's last-update time

If the authoritative answer is right and resolvers are still old, wait for the TTL. If the authoritative answer is wrong, the client is not updating. If both are right and the port check fails, the problem is NAT, a firewall or the ISP, not DNS.

How DNS Panopticon helps

DNS Panopticon does not run a dynamic DNS service or update records. Its tools help check one: What Is My IP shows the address your network presents, the DNS Propagation Checker compares the record on the authoritative servers and public resolvers, and TCP Port Check tests whether a port is reachable from the internet.

FAQ

Is dynamic DNS safe to use for remote access?

The DNS part is, as long as the update credential is limited to one name. Exposing a service to the internet is the larger risk; keep it patched, use strong authentication, and prefer a VPN to opening many ports.

Why does my DDNS name show the right IP but nothing connects?

Usually NAT. Behind carrier-grade NAT the address is shared and inbound connections cannot reach you. Behind double NAT (your router behind your own ISP modem), forward the port on both devices or bridge the modem. Otherwise check port forwarding, the device firewall and whether the ISP blocks the port.

What TTL should a dynamic DNS record have?

Between 60 and 300 seconds. Shorter values mean resolvers pick up a new address sooner, at the cost of more queries.

Should I keep a DDNS name I no longer use?

No. Delete it. The old address will be reassigned to another customer, and your name would then point at their connection.

Sources and further reading