Your endpoints
Every profile has its own addresses. The Setup page of the dashboard
shows them for your profile. The API computes them (endpoints on
the profile resource).
Placeholders in these guides
Section titled “Placeholders in these guides”The guides are the same for everyone, so they use two placeholders. The Setup page of the dashboard fills them in for you.
| Placeholder | Means | Example |
|---|---|---|
<profile-id> |
The 6-character id of your profile: lowercase letters and digits | abc123 |
<device> |
A name that you choose for the device | Pixel-8, living-room-tv |
Device names are optional. The resolver changes a device name with these rules:
- It keeps ASCII letters (in lowercase) and digits.
- It changes spaces, dots, underscores and hyphens into a single hyphen.
- It removes all other characters.
- It keeps at most 32 characters.
For example, Anna's iPad becomes annas-ipad. Use the same name on the
same device every time. The logs and analytics group queries by this name.
The addresses
Section titled “The addresses”| Transport | Address | Identifies |
|---|---|---|
| DNS-over-HTTPS (HTTP/2 and HTTP/3) | https://dns.opdns.net/<profile-id>/<device> |
profile and device |
| DNS-over-TLS (port 853) | <device>-<profile-id>.dns.opdns.net |
profile and device |
| DNS-over-QUIC (port 853) | <device>-<profile-id>.dns.opdns.net |
profile and device |
| Plain DNS over IPv6 | the profile’s own IPv6 address in 2602:81f:6000::/48, shown on the Setup page |
profile only |
| Plain DNS over IPv4 | the shared addresses 23.166.164.53 and 23.166.164.35, with the IPv4 address of your network linked |
profile only |
If you do not use a device name, remove the last path segment (https://dns.opdns.net/<profile-id>)
or the <device>- prefix (<profile-id>.dns.opdns.net).
The shared addresses
Section titled “The shared addresses”These addresses are the same for everyone. dns.opdns.net points to the
first address of each family, so encrypted DNS connects to them. Enter them
where a setting asks for a DNS server address:
| First | Second | |
|---|---|---|
| IPv4 | 23.166.164.53 |
23.166.164.35 |
| IPv6 | 2602:81f:6000::53 |
2602:81f:6000::35 |
If a setting asks for two DNS servers, use the second address too. Both addresses reach the same resolver. With encrypted DNS, the host name or the path selects your profile, for both addresses.
For plain DNS (no encryption), the addresses work differently:
- IPv4:
23.166.164.53and23.166.164.35use your profile only from a linked network. - IPv6:
2602:81f:6000::53and2602:81f:6000::35name no profile. opdns answers plain DNS to them without a filter (the public path). Use the IPv6 address of your profile from the Setup page instead.
All of these addresses, and the IPv6 address of every profile, are in the address space that opdns owns. See Our network.
Which one to use
Section titled “Which one to use”Use encrypted DNS when you can:
- DNS-over-HTTPS in browsers and on Windows, iOS and macOS.
- DNS-over-TLS for Private DNS on Android, for Linux and for routers.
Both carry a device name and work on any network.
Use plain DNS only when nothing else is possible. The usual case is the DHCP settings of a router, for devices that you cannot set up one by one. Plain DNS is not encrypted and cannot name devices. See Identification for the full rules.
DNS stamps
Section titled “DNS stamps”Some apps take a DNS stamp
instead of an address. A stamp is one sdns:// string. It holds the address
of the server, its host name, the path for DNS-over-HTTPS and some
properties. The Setup page of the dashboard shows one stamp for each
encrypted transport, next to the addresses above. Each stamp has a copy
button. If you name a device on that page first, the stamps carry the
device name, the same as the device addresses.
| App | Stamps it takes |
|---|---|
| dnscrypt-proxy, Simple DNSCrypt (Windows) | DNS-over-HTTPS (they have no DNS-over-TLS or DNS-over-QUIC) |
| AdGuard apps, AdGuard Home | DNS-over-HTTPS, DNS-over-TLS, DNS-over-QUIC |
| YogaDNS | accepts stamps. Make sure that your version supports the transport that you use. |
With dnscrypt-proxy, put the stamp in a static entry and name it in
server_names:
server_names = ['opdns']
[static.'opdns']stamp = 'sdns://...' # the DNS-over-HTTPS stamp from the Setup pageA stamp holds these values:
- Host name and path: the same values as the addresses above
(
dns.opdns.netwith the path/<profile-id>/<device>for DNS-over-HTTPS,<device>-<profile-id>.dns.opdns.net:853for DNS-over-TLS and DNS-over-QUIC). The stamp always writes out the port 853, because apps do not agree on the default. - Address: the first shared IPv4 address,
23.166.164.53. With it, the app connects without a lookup of the host name over plain DNS first. The app still checks the certificate against the host name. A stamp that you copied before opdns moved to these addresses holds the old address. Copy the stamp again from the Setup page. - Properties: DNSSEC is always set (the resolver validates answers). No logs is set only while the logs of the profile are off in Privacy. No filter is never set, because opdns filters. The stamp takes the properties from the profile when you copy it. An app keeps the stamp that it got. If you turn on logs later, copy the stamp again.
- No certificate hashes: opdns renews the certificates of the resolver regularly. If a stamp pinned a hash, the stamp stops working at the first renewal.
The defaults require_nolog and require_nofilter of dnscrypt-proxy apply
to servers from its public lists, not to a static entry. A stamp from the
Setup page therefore works with the default configuration.
Check the id carefully
Section titled “Check the id carefully”A wrong id does not cause a clear failure. opdns answers these cases on the
unfiltered public path, the same as the
bare dns.opdns.net with no id:
- A well-formed profile id that does not exist.
- A DNS-over-TLS or DNS-over-QUIC server name that does not hold a well-formed id. Examples are an id of five or seven characters, or a device name joined without the hyphen.
The device continues to resolve names, but opdns does not filter or log anything. A DNS-over-HTTPS path that is not a profile id gets HTTP 404 instead. Copy the id from the Setup page. Do not type it. After each setup, make sure that it works.