enable DOH/DOT

9 views
Skip to first unread message

Zhang, Yajie (Kathy)

unread,
Jan 16, 2026, 2:13:00 PM (2 days ago) Jan 16
to eric...@chromium.org, net...@chromium.org
Hi, 
I'm an developer. My project runs in a docker.
In my node js script. We use puppeteer to lanch chrome.
I want to enable DOH/DOT.
I have tried 
 /usr/bin/google-chrome --no-sandbox --disable-gpu --headless=new --dns-resolver-type=secure --dns-server-addresses=https://cloudflare-dns.com:443/dns-query --enable-features=DnsOverHttps --disable-dev-shm-usage --user-data-dir=/usr/testlog/chrome-doh-tmp --virtual-time-budget=15000 --dump-dom https://1.1.1.1/help 2>/dev/null | grep -E "Using DNS over HTTPS \(DoH\)"

 But it doesn't take effect.
Can you help me about this issue? How to enable doh/dot ?

Thanks a lot!

PhistucK

unread,
Jan 16, 2026, 2:42:03 PM (2 days ago) Jan 16
to Zhang, Yajie (Kathy), eric...@chromium.org, net...@chromium.org
I thought DNS server addresses are supposed to be IP addresses (otherwise they would need a DNS to resolve them... Right?), whereas you used https://cloudflare-dns.com:443/dns-query - is that intentional?
I was also confused by the page you were trying to load, but I realise it redirects to a non-IP-address URL, so that should be fine.
(Also, Copilot says headless Chrome does not support those flags, but I have not verified...)


PhistucK


--
You received this message because you are subscribed to the Google Groups "net-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to net-dev+u...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/net-dev/DM4PR10MB623099768CE7FD16878D2A50F88DA%40DM4PR10MB6230.namprd10.prod.outlook.com.

Matt Menke

unread,
Jan 16, 2026, 3:40:08 PM (2 days ago) Jan 16
to PhistucK, Zhang, Yajie (Kathy), eric...@chromium.org, net...@chromium.org
DoH servers are actually different - we'll look up their IP using the system DNS resolver, and hostnames let them use certs for hostnames, rather than IPs. I don't know about configuring from the command line, so can't help there, unfortunately.

Reply all
Reply to author
Forward
0 new messages