Skip to content
Sign inDashboard

Linked IP and DDNS

Plain DNS over IPv4 goes to the shared addresses 23.166.164.53 and 23.166.164.35. These queries contain nothing that names your profile. opdns recognizes them by their source address. If a query comes from a public IPv4 address that is linked to your profile, the profile applies. All other queries to these addresses use the public path (the path for queries that match no profile). opdns answers them, but does not filter or log them.

Use a linked IP only for devices or routers that cannot use encrypted DNS or IPv6.

  • Only public unicast IPv4 addresses can be linked. opdns refuses private addresses (192.168.x.x, 10.x.x.x), carrier-grade NAT addresses (100.64.0.0/10), and reserved addresses. Carrier-grade NAT (CGNAT) shares one public address between many customers.
  • You can link an address to one profile only. If another profile holds the address, the link fails with a conflict. opdns never moves an address without telling you.
  • Everyone behind that address shares the profile. This includes housemates and guests. On carrier-grade NAT, it can also include strangers. If your ISP puts you behind CGNAT, the WAN address of your router is not your public address. Linking then does not work reliably. Use IPv6 or encrypted DNS instead.
  • There are no device names. All devices on the network appear without a name.
  1. From a device on the network, open the Setup page of the profile in the dashboard. Under Plain DNS over IPv4, the page shows the address that it sees you from.

  2. Click Link this network. The dashboard shows a DDNS URL for the link one time only. If your address can change, copy the URL now.

  3. If you want to link a network that you are not on, type its address in Link an IPv4 address instead.

Home IPv4 addresses change. Each link has a secret DDNS URL. When a device on the network calls this URL, opdns moves the link to the current IPv4 address of the caller.

https://ip.opdns.net/link/<ddns-token>

You can also create an empty slot with Create a DDNS link instead. The first call then fills it. To show or regenerate the URL of a link, use the DDNS URL button. When you regenerate a URL, the old URL stops working at once.

Terminal window
# every 5 minutes; -4 makes sure the call leaves over IPv4
*/5 * * * * curl -4 -fsS https://ip.opdns.net/link/<ddns-token> >/dev/null

The -4 flag is important on dual-stack networks (networks with both IPv4 and IPv6). Over IPv6, opdns refuses the update (badip), because only IPv4 addresses can be linked.

Install ddns-scripts and add a custom service. Set the update URL of the service to the DDNS URL. The router then calls the URL each time its WAN address changes. Force IPv4 (option use_ipv6 '0').

The DDNS host answers in plain text, like other dynamic DNS services:

Answer Meaning
good <ip> The link now points at <ip>.
nochg <ip> The link already points at <ip>. Nothing changed.
badip <ip> The address is not a public IPv4 address. The call came over IPv6, or from a private network.
badauth The token is unknown. Someone regenerated the URL or unlinked the address.
conflict <ip> <ip> is linked to another profile. Nothing changed.
abuse You reached the rate limit. Call less often.
911 A server error occurred at opdns. Try again later.

Keep the URL secret. Anyone who has it can point your link at their own address and use your profile.