You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clarify usage of ResolveHostOptions#source with App#configureHostResolver()Â #49055
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Problem Description
I want to use Session to resolve hostnames using DNS-over-HTTPS setup with configureHostResolver():
import{app,session}from'electron';app.whenReady().then(()=>{configureHostResolver({enableBuiltInResolver: false,secureDnsMode: "secure",// Forced use of DNS-over-HTTPS servers onlysecureDnsServers: ["https://8.8.8.8/dns-query",// Google"https://1.1.1.1/dns-query",// CloudFlare"https://9.9.9.9/dns-query"// Quad9]})session.defaultSession.resolveHost("google.com",{source: "???",// What source should be used to ensure that DNS-over-HTTPS is using?queryType: "A"})})
Activity
RareScrap commentedon Nov 25, 2025
@nikwen Can you provide some info regarding this case?
RareScrap commentedon Dec 17, 2025
@nikwen friendly ping
docs: clarify resolveHost source with secure dns
docs: clarify source:dns is required for DNS-over-HTTPS in resolveHost