Dynamic DNS

Also known as: DDNS

On this page 7

Dynamic DNS (DDNS) is a method of automatically updating DNS records whenever the IP address of a host changes, so that a fixed hostname always resolves to the current address. In the Domain Name System, records are traditionally edited by hand and expected to stay stable for long periods; dynamic DNS replaces manual editing with machine-driven updates sent by the host itself, a router or a DHCP server.

The technique solves a practical problem of the Internet: many residential and small-business connections receive dynamic IP addresses from their ISP that can change after a reconnect, a lease expiry or maintenance. Without DDNS, anyone trying to reach a home server, camera or VPN gateway would need to learn each new address. With DDNS, they simply use a name such as office.example.net.

How dynamic DNS updates records

Dynamic DNS works through a client that detects address changes and an update interface on the authoritative DNS side that accepts authenticated changes. The client periodically learns its public address, compares it with the last value it reported and, if the address differs, sends an update request. The provider then rewrites the A record for IPv4 or the AAAA record for IPv6 in the relevant DNS zone.

Two broad mechanisms exist. Standards-based dynamic updates follow RFC 2136, which defines the DNS UPDATE message, usually protected by TSIG shared-key signatures (RFC 2845) or GSS-TSIG in Active Directory environments. Provider-specific HTTP update APIs are common for consumer services: the client sends an HTTPS request containing the hostname, credentials and optionally the new address.

The update cycle can be broken down into the following stages.

StageWhat happensTypical component
Address detectionClient reads the WAN interface or queries an external echo serviceRouter firmware or update agent
Change comparisonNew address is compared with the last reported valueUpdate agent cache
Authenticated requestClient sends hostname, credentials and new addressHTTPS API or RFC 2136 message
Record rewriteProvider updates the A or AAAA record and zone serialAuthoritative DNS server
ResolutionResolvers fetch the new value once cached copies expireRecursive DNS resolvers
Stages of a dynamic DNS update

Key parameters of a dynamic DNS setup

The behavior of dynamic DNS depends mostly on time to live, update frequency and authentication strength. A long TTL lets resolvers cache an outdated address after a change, so DDNS records typically use a short TTL of 60 to 300 seconds. The trade-off is a higher query load on the authoritative servers, which providers accept because individual DDNS hostnames receive modest traffic.

Update intervals must also respect provider limits. Clients that send an update every minute regardless of change can be rate-limited or blocked; well-designed agents update only on change and send an occasional keep-alive, because some free services expire inactive hostnames after roughly 30 days.

ParameterCommon rangeWhat it affects
Record TTL60 to 300 secondsHow quickly resolvers see a new address
Check interval1 to 10 minutesDetection delay after an address change
Forced refreshDaily to monthlyProtection against hostname expiry
AuthenticationToken, password or TSIG keyResistance to hijacking of the record
Record typesA, AAAA, sometimes TXTIPv4, IPv6 and certificate validation support
Parameters that shape dynamic DNS behavior

Dynamic DNS is an update method, not a different kind of DNS. Resolvers, caches and the root name servers treat a DDNS record exactly like any other record. The difference lies in how the record is maintained, which separates DDNS from several neighboring concepts in the DNS topic.

ConceptMain purposeRelationship to DDNS
Static DNS recordsMap names to fixed addressesEdited manually; DDNS automates the same records
DNS propagationSpread of changes through cachesShort TTLs keep DDNS propagation fast
Split-horizon DNSDifferent answers for internal and external clientsOften combined so a name works inside and outside
Reverse DNS lookupMap addresses back to namesPTR records are usually controlled by the ISP, not DDNS
DNSSECAuthenticate DNS answersRequires online signing when records change frequently
How dynamic DNS relates to neighboring concepts

In enterprise networks, the same concept appears inside the organization: DHCP servers register client hostnames in internal zones through RFC 2136 updates, which is how domain-joined computers remain reachable by name as their leased addresses change.

Typical uses and how to choose a dynamic DNS approach

Dynamic DNS is chosen whenever a service must be reachable by name from a changing address. Home labs, remote desktop access, self-hosted cloud storage, security cameras and small-office VPN gateways are classic examples. Many routers include a built-in DDNS client, which is usually the most reliable option because the router sees the WAN address directly.

The right approach depends on who controls the domain and the network. The decision table below compares common situations.

SituationRecommended approachReason
Home user without a domainFree DDNS subdomainNo registration cost, simple router setup
Owner of a custom domainProvider API with a scoped tokenKeeps branding and limits token permissions
Corporate Active DirectorySecure dynamic updates via DHCPKerberos-authenticated internal registration
Connection behind carrier-grade NATTunnel or relay service insteadPublic address is shared, so DDNS alone cannot help
Need for public TLS certificatesDDNS with TXT record supportEnables DNS-based certificate validation
Choosing a dynamic DNS setup

Limitations and security risks of dynamic DNS

Dynamic DNS makes a host findable, not reachable. If the ISP uses carrier-grade NAT (CGNAT), the public address belongs to many customers, and inbound connections never reach the user’s router; updating the record correctly changes nothing. Port forwarding and firewall rules must also be configured separately.

  • Stale addresses: after a change, clients may reach the old address until the TTL and resolver caches expire.
  • Credential leakage: an exposed update token lets an attacker redirect the hostname to a malicious server.
  • Exposure of home services: a stable public name makes devices easier to scan, so strong authentication and patching are essential.
  • Abuse reputation: some free DDNS domains are widely used by malware, and security filters may block them.
  • IPv6 mismatch: updating only the A record leaves a stale AAAA record that dual-stack clients may prefer.

The decisive recommendation is to use per-host, least-privilege update tokens over HTTPS or TSIG, keep TTLs short and update both address families when the connection supports IPv6.

The short version

Imagine a friend who moves to a new apartment every few weeks. Instead of giving everyone each new street address, they keep a forwarding service that always knows where they live. Dynamic DNS is that forwarding service for an internet connection whose address keeps changing.

A small program on the router reports the new address whenever it changes, and the name stays the same. You remember one name, and the system keeps track of the moving address.

Where it makes a difference

An architecture studio with six employees runs a file server and a VPN gateway on a business broadband line whose public IPv4 address changes roughly once a month after ISP maintenance. Before dynamic DNS, staff working from home lost access each time and had to call the office manager for the new address.

The studio configures the router’s built-in DDNS client to update vpn.studio-example.com through the DNS provider’s API with a token limited to that single record, and sets a TTL of 120 seconds. After the next address change, the router reports the new value within two minutes, and remote employees reconnect automatically. The outcome is uninterrupted remote access without paying for a static IP address.