Is it possible to enable DNS-over-HTTPS on CEF? How?

815 Views Asked by At

All major browsers are rolling out support for DNS Over HTTPS (DoH). Firefox recently announced that it is now enabled by default. Chrome has support for a few months now. The Microsoft Edge browser (that now uses Chromium) also has support for it through the flags system.

It is natural to think that CEF (and therefore CEFSharp) will also have some kind of support for it too, since they share basically the same engine. However, this does not seem to be the case.

I am trying to enable this for some days now, without any luck. A quick search on the web yields no useful results - the most relevant being this one.

What I've tried:

settings.CefCommandLineArgs.Add("dns-over-https");

I also tried to enable this directly (the old Chrome way):

settings.CefCommandLineArgs.Add("force-fieldtrials", "DoHTrial/Group1");
settings.CefCommandLineArgs.Add("force-fieldtrial-params", "DoHTrial.Group1:server/https://1.1.1.1/dns-query/method/POST");

I'm using this page to test, and it always returns "NO" on every section. In Google Chrome, this works.

I'm also using the 1.1.1.1 DNS and the latest version of CEF Sharp available in NuGet (79.1.36).

So, is there a way to enable DoH in CEF Sharp?

0

There are 0 best solutions below