Insights

Cloudflare dynamic DNS for a home-hosted service

Cloudflare dynamic DNS keeps your hostname pointed at a changing home IP address. Verify the stored address and test service access separately.

Illustration of house-shaped signpost with a swiveling arrow.
On this page

Cloudflare can host the Domain Name System (DNS) record for a hostname that follows your changing home internet address. For dynamic DNS (DDNS), an updater watches for address changes and uses Cloudflare's application programming interface (API) to update the record. Your hostname stays the same, but DDNS doesn't make an unreachable service reachable.

In short:

  • Keep your hostname. An updater sends address changes to Cloudflare.
  • Check the stored address. A proxied lookup shows a Cloudflare address instead of your server's address.
  • Test access separately. Try the service from outside your home network.

What changes when your home address changes

Say you host a public blog at blog.example.com. When your home internet address changes, the updater detects the new address and sends it to Cloudflare. Cloudflare changes the address stored on the existing record, so you don't have to rename the blog.

What to look for in an updater

Start with the hostname and the address type you want to publish. Use an A record for an Internet Protocol version 4 (IPv4) address and an AAAA record for a version 6 (IPv6) address. Pick an updater that supports your DNS provider and can detect and update each address type you publish. Run it on a device that's online when it needs to catch an address change.

For Cloudflare, use an API token with DNS Write access instead of a Global API key. Limit the token to the intended zone, the group of DNS records Cloudflare manages for your domain. Check whether your updater needs extra permission to find the zone or the record it should change.

When a current record isn't enough

Updating the stored address and routing web traffic through Cloudflare are separate jobs. Have your hostname, its stored record value and proxy status, and the current internet address that should lead to your server.

1. Compare the stored address. In Cloudflare, check whether the stored A or AAAA value matches the current address for that record type. A match shows the record is current. If it doesn't match, check which address the updater detected and which hostname and record type it tried to update.

2. Read the lookup according to proxy status. A DNS-only record returns your server's address, though a DNS resolver can still have an older answer cached. A Proxied record returns a Cloudflare address because supported web traffic goes through Cloudflare. If blog.example.com is proxied, that answer is normal even after an update. It doesn't confirm that the stored address changed.

3. Test the service from outside your home network. Use the hostname and the client you expect visitors to use, such as a browser for the public blog. If the blog loads, it's reachable from that connection. If both DNS checks pass but the connection fails, check the service and its network path before changing the record again. The failed test alone doesn't tell you where the connection broke.

If your authorized devices already reach the service by a private name, that path doesn't need a public DDNS record. Don't expose a private service or remote administration just to test it.

Where doxx.net fits. doxx.net connects your devices on a private network with its own hardware, address space and DNS root for name lookups. To connect a device privately, create an account and download the doxx.net app.

Ask an AI assistant

Share this article

Private Everywhere

Stop giving the internet everything

Keep your browsing, messages, files, and agents private.