Insights

DNS over HTTPS template: what to enter in Windows

Enter your resolver's full published HTTPS template in Windows, then check the adapter's DNS server and whether plain-text fallback is allowed.

Illustration of parcel with full-length routing label.
On this page

A Domain Name System (DNS) over HTTPS template is the secure web address your DNS client uses to send encrypted lookups. In a manual template field, enter the full HTTPS address your resolver provider publishes for the service you chose, not the resolver's Internet Protocol (IP) address.

In short:

  • Copy the full template. Use the address published for your exact resolver service or filter.
  • Check the adapter. Saving a template doesn't assign that resolver to your connection.
  • Check fallback. With fallback enabled, Windows can send lookups in plain text.

Match the URL to your resolver

Windows keeps the resolver IP and its template as separate values. Copy the template as published, including https://, the hostname and any path. A bare IP, a hostname on its own or a guessed path isn't a substitute.

For example, CleanBrowsing's Family Filter lists 185.228.168.168 as its preferred DNS server. Its template is https://doh.cleanbrowsing.org/doh/family-filter. The /doh/family-filter path is part of the value you'd put in the template field.

Check which resolver the adapter uses

Windows keeps a list of known DNS over HTTPS (DoH) servers separate from the DNS assignment on each network adapter. If your Wi-Fi adapter uses a different resolver IP, saving the Family Filter pair won't change which resolver that adapter uses.

Automatic template selection uses a known match for the assigned resolver IP. Manual template selection lets you supply the provider's published address. Neither is the same as automatic DNS assignment, which gets resolver IPs from the network. Check the preferred and alternate addresses separately on the adapter you're using.

On a managed or private network, policy can direct lookups for internal names to a designated resolver. Keep that policy intact because a public replacement may not resolve those names.

See whether Windows allows plain text

Use these read-only checks on Windows 11 or on Windows Server with DoH client support, which starts with Windows Server 2022.

1. Show the stored encryption settings.

netsh dnsclient show encryption

For each resolver IP assigned to the adapter, compare the displayed template with the provider's published value. Note whether the stored entry allows fallback. If an entry is missing or differs, recheck the IP and service profile before editing anything.

2. Read the adapter's encryption choice separately.

If the adapter allows fallback, Windows can switch to plain-text lookups without notifying you. If you require encryption, lookups can fail when DoH is unavailable. If names stop resolving in encrypted-only mode, recheck the mapping and network policy before relaxing the setting.

3. Check machine-wide settings if they're relevant.

netsh dnsclient show global

This shows global DNS client settings, not the transport used for a particular lookup. Neither a displayed template nor a successful lookup proves that the query used DoH. A browser such as Microsoft Edge can also use its own DoH template policy, so these checks don't cover every app.

Save a way back before you change anything

Change Windows DNS settings only on a device you own or administer. Use an administrator shell for the deletion command below.

1. Save the adapter and mapping settings separately.

Record the adapter name, whether DNS is automatic or manual, and its current preferred and alternate addresses. Save each address's encryption choice and fallback setting, and note any policy that controls the adapter. For each IP you might edit, record its existing DoH entry or note that it has none.

2. Save a Windows configuration snapshot if you want a reference.

netsh dnsclient dump

Keep the output with your notes so you can compare the settings you changed.

3. Restore the adapter first if names stop resolving.

Return the adapter to automatic DNS if that was its original setting. If it used manual DNS, restore the saved addresses and encryption choices. If you edited a pre-existing DoH mapping, restore its saved template and options instead of deleting it.

4. Delete a DoH mapping only if your saved settings show it's new.

netsh dnsclient delete encryption server=RESOLVER_IP protocol=doh

Replace RESOLVER_IP with the exact address whose DoH mapping you added. The protocol=doh option limits the deletion to that protocol for that address, so you don't need a broad DNS reset.

5. Recheck the settings and look up a name you use.

After a change, you should be able to point to the published IP and template, tell whether the adapter uses that IP and say what happens if DoH fails. After a rollback, the relevant adapter and mapping settings should match your saved record. Check that expected names resolve again, including an internal name if you rely on one.

Ask an AI assistant

Share this article

Private Everywhere

Stop giving the internet everything

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