Skip to main content

doh-server

Legacy key

doh-server is kept for compatibility with existing profiles. It only accepts https:// URLs and is equivalent to encrypted-dns-server; the two are merged in memory at parse time, and profile files are not rewritten. Prefer encrypted-dns-server in new profiles.

Specifies the DoH (DNS over HTTPS) servers used by the application to provide encrypted and authenticated DNS resolution.

Example​

# Defines a single DoH server for encrypted DNS queries
doh-server = https://9.9.9.9/dns-query

Format​

doh-server = {doh_server1}[,doh_server2,...]
tip

Currently, DoH query traffic uses the DIRECT proxy by default. Please ensure the DoH server is reachable.

If multiple DoH servers are provided, Surfboard queries them in parallel and uses the fastest response.