Skip to content
Sign inDashboard

Any router (DHCP and IPv6)

If your router cannot forward DNS over TLS or HTTPS, set the router to tell every device to send its queries directly to opdns. On IPv6, the profile has its own addresses, so you do not have to link anything. On IPv4, the addresses are shared, so you must link your public IPv4 address to the profile.

The profile’s own IPv6 address is on the Setup page, in 2602:81f:6000::/48. This address contains the profile id. opdns filters each query sent to this address with that profile, from any network. Set the router to advertise the address with these options:

  • Router advertisements (RDNSS, RFC 8106): most devices read this option, Android included. On most routers, this option is “DNS servers” in the IPv6 or RA settings.
  • DHCPv6 option 23: for devices that use stateful or stateless DHCPv6.

If the router has both options, set both.

  1. Link the public IPv4 address of your network to the profile. If the address changes, set up DDNS.

  2. In the DHCP server settings of the router, set the DNS servers for clients (DHCP option 6) to 23.166.164.53 and 23.166.164.35. These addresses are also on the Setup page.

  3. Renew the leases. To do this, reconnect the devices, or wait until the lease time ends.

On a client, make sure that it received the new DNS servers. Use ipconfig /all on Windows, resolvectl status on Linux, or Wi-Fi → (i) on iOS. Then check that it works.

  • Plain DNS is not encrypted and sends no device names. Every device shows without a name.
  • Devices with their own encrypted DNS (Android Private DNS, browsers with DoH) ignore the DNS servers from DHCP. This is not a problem if they also use opdns.
  • If the network has IPv6 but you set only IPv4 (or the reverse), devices can use the DNS servers of your ISP for the other family. Set both.