Check if your browser uses Secure DNS, DNSSEC, TLS 1.3, and Encrypted SNI

Martin Brinkmann
Apr 29, 2019
Updated • Nov 25, 2022
Added Encrypted Client Hello ECH information, which replaced ESNI.
Internet
|
65

Cloudflare's Browsing Experience Security Check online tool tests the capabilities of the web browser in regards to certain privacy and security related features.

For a subset of Internet users, privacy is of uttermost importance. While the majority seems indifferent, some try their best to implement protective mechanisms to eliminate or at least reduce what companies and maybe even State actors may find out about them when they use the Internet.

Whether that is successful or not depends on the program used to connect to Internet sites, e.g. a browser or media client, and also the system configuration.

The push to using HTTPS on the Internet ensured that much of the data that is transferred between a user's browser or program and Internet sites is encrypted. New technologies, such as Secure DNS or Cloudflare's own encrypted Server Name Indication (SNI) are designed to address leaks caused by DNS queries.

Browsing Experience Security Check

Browsing Experience Security Check tests a web browser's capabilities in regards to security and privacy features.

Note: The test is maintained by Cloudflare; the company designed Encrypted SNI which the test checks for among other things.

The test is straightforward: connect to the test page using your browser and hit the run button on the page to run the test.

It tests whether Secure DNS, DNSSEC, TLS 1.3, and Encrypted SNI are enabled. Here is a short description of each of the features:

  • Secure DNS -- A technology that encrypts DNS queries, e.g. looking up ghacks.net to retrieve the IP address. Two standards, DNS-over-TLS or DNS-over-HTTPS fall under the category.
  • DNSSEC -- Designed to verify the authenticity of DNS queries.
  • TLS 1.3 -- The latest version of the TLS protocol that features plenty of improvements when compared to previous versions.
  • Encrypted SNI -- Server Name Indication, short SNI, reveals the hostname during TLS connections. Anyone listening to network traffic, e.g. ISPs or organizations, may record sites visited even if TLS and Secure DNS is used. Encrypted SNI encrypts the bits so that only the IP address may still be leaked.
  • Encrypted Client Hello -- Replaced ESNI. Designed to address the shortcomings of ESNI.

The only browser that supports all four of the features at the time is Firefox. Two of the features are still in development and testing though:

You may check out our Secure DNS setup guide for Firefox here. Here is a short list of instructions on setting up Secure DNS and Encrypted SNI in Firefox:

  1. Load about:config in the Firefox address bar.
  2. Confirm that you will be careful.
  3. ECH: Search for network.dns.echconfig.enabled and toggle the value to True
  4. Secure DNS: Search for network.trr.mode and set it to 2.  Search for network.trr.uri and set it to https://mozilla.cloudflare-dns.com/dns-query

Note that Secure DNS supports other servers if you don't want to use Cloudflare for that.

Now You: Which privacy and security extensions or settings do you use in your browser?

Summary
Article Name
Check if your browser uses Secure DNS, DNSSEC, TLS 1.3, and Encrypted SNI
Description
Cloudflare's Browsing Experience Security Check online tool tests the capabilities of the web browser in regards to certain privacy and security related features.
Author
Publisher
Ghacks Technology News
Logo
Advertisement

Tutorials & Tips


Previous Post: «
Next Post: «

Comments

  1. hal said on January 4, 2022 at 8:36 pm
    Reply

    ESNI is no longer supported

  2. ncln said on August 19, 2020 at 3:34 pm
    Reply

    WOW cloudflare-dns shows a lot of ads, this is not acceptable!
    /etc/hosts ignore

  3. RO said on February 19, 2020 at 6:49 pm
    Reply

    Rather surprised after using FF with the CloudFlare DNS setting for several months, and finding my Linux /etc/hosts “black hole” settings (0.0.0.0 IP assigned to host name) were ignored for Facebook (among a few thousand others in my host file I presume; not checked yet). Then I reviewed the network.trr.mode, and it was set to 2 for automatic HTTPS CloudFlare lookup, but setting it to 1 for faster of either “native” DNS or TRR now seems to check my /etc/hosts first.

    Glad I finally plugged that “leak”. Now I need to review if my PiHole is also being bypassed, although it should also be faster as being on my internal home network.

  4. Sophie said on October 15, 2019 at 9:13 am
    Reply

    Agreed, Jonas. I use trr mode 3, a big hosts file, and I too…..like the idea that DoH through the browser “ignores” the hosts file, therefore resolving lookups, while other software “behind my back” cannot do so. It seems a really good combination, though I have read many that complain that they don’t like this. I do indeed, pass all the tests on Cloudflare’s test page. Not sure why for some, this is not the case, if they’ve ticked all the right boxes, etc.

  5. Jonas said on September 30, 2019 at 12:12 am
    Reply

    I’m a lot more web-nerdy than most people (for example, I’m a fairly good JavaScript and PHP coder, and can configure Apache somewhat), yet 95% of this stuff is over my head. Way too complicated. I skimmed through this discussion and my reaction was “Huh? Whoa, I have too many things to do, can’t spend a week learning this stuff.” I’m glad that so many of you do understand it, since security and privacy are important. But if I can’t, how many ordinary users are ever going to do anything about any of this?

    I did go to the linked Cloudflare test page — and, despite using the latest standard version of Firefox (69.0.1) and having my Mac’s system-level DNS set to prefer Cloudflare (1.1.1.1)… I still failed three of the four tests. (The only one that passed was TLS 1.3).

    I have one comment and one question…

    I’m not sure it’s a bad thing that Firefox ignores my carefully customized hosts file. The hosts file successfully prevents some of my software from phoning home behind my back… but I still want Firefox to be able to go to that company’s website. In some cases, the sneaky “phone home” uses exactly the same domain as their website does, so my hosts file blacklists the whole domain — but Firefox still resolves it, which I think is good.

    Question: This conversation seems to be all on the web-client-side. What about the server side? Is there anything I need to do on my Apache web servers so they will still work with all this added security stuff when it becomes standardized in the browsers real people are using?

  6. Stupid said on May 27, 2019 at 12:04 pm
    Reply

    I reloaded the test website (but I haven’t restarted firefox yet) and now it won’t connect to the page because it says it might not be secure. lol

  7. Saadi said on May 2, 2019 at 11:23 am
    Reply

    i use up-to-date Firefox Nightly. i have many extensions. HTTPS Everywhere, uMatrix, Chameleon, …

  8. Saadi said on May 2, 2019 at 7:27 am
    Reply

    Hello. i has enabled all and has restarted. but i can’t open below link:
    https://www.cloudflare.com/ssl/encrypted-sni/

    shows this error:
    Secure Connection Failed

    An error occurred during a connection to http://www.cloudflare.com. SSL_ERROR_MISSING_ESNI_EXTENSION

    why?

    1. Martin Brinkmann said on May 2, 2019 at 10:55 am
      Reply

      Which version of Firefox have you enabled this on? Do you run extensions that may interfere?

      1. Saadi said on May 2, 2019 at 11:32 am
        Reply

        when i disabled the Kaspersky TS 2020 ‘Web Anti-Virus’ , and now problem has fixed.

    2. Saadi said on May 2, 2019 at 10:37 am
      Reply

      what is the reason? what i should do?

  9. Shiva said on May 1, 2019 at 6:50 pm
    Reply

    @Tom
    “I thought you might have the answer.”
    No. As I wrote you I made the script by adapting online examples and I never studied Python or AutoHotkey rules. Luckily coding has its logic and I didn’t curse so much. Feel free to post it at AutoHotkey community if you have another questions or whatever you want. You can be sure that probably some user of the community will be improve it and could be a good thing due to the fact I don’t know another method on Windows to easily perform the update of Acrylic HOSTS file.

    However seem that testing the presence or not of the ‘comma’ gives the same result, but simply follow the official examples if you are not sure: https://autohotkey.com/docs/commands/Sleep.htm
    (MsgBox, Ciao! Sleep, 10000 MsgBox, Hello!)
    (MsgBox, Ciao! Sleep 10000 MsgBox, Hello!)

  10. Shiva said on May 1, 2019 at 1:51 pm
    Reply

    @Tom
    “I was wondering how the 10 second delay actually works given there is no comma”

    Boh! :-)

    Three hypothesis:
    a) the ‘comma’ is not so strictly necessary
    b) restart a service requires that you stopped it first and 10 second is not a big delay. So without comma the command doesn’t work but you don’t realize it due to normal system stop\start time.
    c) neither a) or b) —> Ask to AutoHokey community :-)

    Simply you can create two new script (with and without ‘comma’) only with the service start/stop command and set a big delay to test the hypothesis.

    1. Tom Hawack said on May 1, 2019 at 4:26 pm
      Reply

      @Shiva, I think hypothesis (a) is the best. I’d have to test but given I’m zen (“lazy” so to say) I thought you might have the answer. As I had written, AutoHotkey’s documentation for ‘sleep’ doesn’t mention the comma (which doesn’t mean as you say that it’d be strictly necessary.

      This is relevant of what has always bothered me with code, where the syntax is sometimes so strict that it’ll require/differentiate lowercase/uppercase and sometimes won’t require strict obedience. As a matter of fact this is true for languages as well when grammar is comprehensible and admitted but when spelling is sometimes beyond any logic rule : why one ‘l’ and two ‘t’ for instance? Avoiding those mistakes, because they are tied to no rule, requires reading, and not only comics. Same I guess with code : before coding read others’ code :=) …

  11. TelV said on May 1, 2019 at 1:10 pm
    Reply

    Waterfox will support DNS over HTTPS with the release of v68 according to this Reddit thread: https://www.reddit.com/r/waterfox/comments/bioat5/does_waterfox_support_dns_over_https/em3a289/

  12. TelV said on April 30, 2019 at 9:37 am
    Reply

    Interestingly Pale Moon supports TLS1.3 https://imgbox.com/a8CnIkzh

    As far as Waterfox is concerned there’s an ongoing discussion over on Github which may be of interest to folks: https://github.com/MrAlex94/Waterfox/issues/783

  13. Vítor I said on April 29, 2019 at 11:48 pm
    Reply

    Well, I like browsers related stuff, but this is getting too complex…

    1. Richard Allen said on April 29, 2019 at 11:55 pm
      Reply

      LoL
      Right you are sir. Personally I just fake it while blowing smoke. ;)

  14. Shiva said on April 29, 2019 at 8:57 pm
    Reply

    @Tom
    “Your script works perfectly. Of course I modified the sources. Result is 100% that of HostsMan.”

    Glad to see that it works with another user. 101%, if I remember well HostsMan doesn’t sort alphabetically the merged domains (good for Acrylic). But I kept HostsMan for the HOSTS file, it is the best manager of its category.
    Next time will be your turn to teach me how use your future modify script with only
    DNSCrypt-Proxy. :-)
    But wich lists did you add? Honestly StevenBlockHost or hBlock are enough.

    1. Tom Hawack said on April 30, 2019 at 8:40 pm
      Reply

      @Shiva, I see on your script the use of ‘sleep’ always followed by a comma, i.e. ‘sleep, 2000’ … except at the end when stopping/starting AcrylicDNSProxySvc : sleep 10000 (no comma).

      I’ve searched for the sleep reference on AotoHotkey’s documentation but found no occurrence of sleep n (no comma).

      AcrylicDNSProxySvc is correctly stopped and restarted but I was wondering how the 10 second delay actually works given there is no comma.

      Thanks!

    2. Tom Hawack said on April 29, 2019 at 10:33 pm
      Reply

      @Shiva,

      DNSCrypt-proxy as you know has no installer, you just download the release you need from https://github.com/jedisct1/dnscrypt-proxy/releases, unzip it and place it where you want.

      All settings are done within the dnscrypt-proxy.toml file. That’s all.
      Of course those settings have to be carefully chosen. All is explained in the Wiki at https://github.com/jedisct1/dnscrypt-proxy/wiki

      I can’t detail everything here but users of Acrylic who have coupled it with DNSCrypt-Proxy must be aware that DNSCrypt-Proxy’s blacklist, whitelist, cloaking and forwarding rules won’t apply considering Acrylic takes the relay as soon as the dns request has been handled by DNSCrypt-Proxy.

      If you, Shiva, or anyone wished any help/advice on a particular point, of course feel free to ask. Though I’m as a tech pro as light in hell, if i know the answer I’ll provide it.

      > “But wich lists did you add? Honestly StevenBlockHost or hBlock are enough.”

      With Acrylic, I have two categories:

      1- The hosts files I used to install with Hostsman, now downloaded/merged with your script :

      AcrylicHostsGroup1.txt (1.8 MB) :
      https://zeustracker.abuse.ch/blocklist.php?download=hostfile
      https://zerodot1.gitlab.io/CoinBlockerLists/hosts
      https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt
      https://raw.githubusercontent.com/lightswitch05/hosts/master/tracking-aggressive-extended.txt

      2- The filters I’ve built myself using the Acrylic’s wildcards, mainly the >
      All those are contained in AcrylicHostsGroup2.txt (172 KB) :
      Because of the power of wildcards 1 filter can handle what is handled within sometimes dozens of lines in typical hosts files. That is really powerful.

      That’s about it. I also use the PeerBlock application which presently takes care of 128,034,695 IPs
      Power as well!

      Do it to them before they do it to you (smiles as fists when you think about it!)

  15. John Fenderson said on April 29, 2019 at 8:20 pm
    Reply

    @Richard Allen: “a hosts file will Never work with DoH because it is an in browser solution and does not use the system DNS resolver.”

    There is no technical reason why DoH cannot be made to respect the hosts file. The DoH code could read the hosts file directly and respect its contents, after all.

    1. Richard Allen said on April 29, 2019 at 11:52 pm
      Reply

      @John Fenderson

      I wouldn’t be surprised if you are right! :)

      I’m thinking I was paraphrasing what I read on a mozilla blog, just a guess. Would be nice if they gave it the ability to read the hosts file but I’m not holding my breath.

  16. VioletMoon said on April 29, 2019 at 8:17 pm
    Reply

    All interesting; sister site BetaNews provides a decent website checker. The results for Ghacks:

    https://www.immuniweb.com/websec/?id=OTU6wJxq

    1. Richard Allen said on April 29, 2019 at 11:43 pm
      Reply

      And when visiting immuniweb CanvasBlocker shows: “Faked DOMRect readout on http://www.immuniweb.com (3)”

      LOL Just can’t win cause the odds are against us. ;)
      Regardless, I’ve bookmarked the site. TY

  17. Haakon said on April 29, 2019 at 8:07 pm
    Reply

    network.trr.mode set to 2 allows for fallback to system DNS in the event of a Cloudflare lookup fail.

    Once you confirm things work OK with mode 2 change the mode to 3 and edit network.trr.bootstrapAddress to 1.1.1.1. Don’t change network.trr.uri.

    As Richard Allen noted above, mode 3 locks Firefox to Cloudflare’s DoH.

    In an appropriate network monitor, you’ll find a persistent port 443 connection to 1.1.1.1 (host name, one.one.one.one) and no port 53 activity while surfing with Firefox.

    • Setting network.trr.request-timeout to 10000 has been suggested in forums here and there.

    I’ve been running with this setup for several months. (And mode 2 for many more before 3.)

    For the adventurous, AdGuard has a good section for other DoH providers in their Known DNS knowledge base:
    https://kb.adguard.com/en/general/dns-providers

    One can bypass Mozilla’s Cloudflare scheme by using https://cloudflare-dns.com/dns-query

    I’ve found so far either of the two to be the most efficient and the only ones to pass all four of Cloudflare’s Security Check. Obviously.

  18. NoName said on April 29, 2019 at 7:27 pm
    Reply

    … But after restart Firefox couldn’t access any page – reverted to network.trr.mode=2 (‘Secure DNS’ and ‘Encrypted SNI’ tests fails with that setting).

  19. NoName said on April 29, 2019 at 6:59 pm
    Reply

    All test passed in Firefox 66.0.3 only after setting network.trr.mode=3 and then toggling network.security.esni.enabled=true again.

  20. Shiva said on April 29, 2019 at 6:48 pm
    Reply

    @Tom
    “I’ve got the ingredients and the recipe, I’ll see how I can cook”.
    Bon appétit. If you need help simply ask. AutoHotkey is terrific, you will see how quickly it process all the lists to one file.

    1. Tom Hawack said on April 29, 2019 at 8:02 pm
      Reply

      @Shiva, the result is gastronomic :=)
      Your script works perfectly. Of course I modified the sources. Result is 100% that of HostsMan.
      Hostsman will be now removed, no further needed.
      I guess I can warmly thank you : thanks!

  21. John Fenderson said on April 29, 2019 at 6:17 pm
    Reply

    “Which privacy and security extensions or settings do you use in your browser?”

    The only security extension I use in my browser is NoScript. I do also use a firewall on my mobile devices.

    But I use my browser in an unusual way — all of my internet activity (including mobile, by using my own VPN server) gets funneled through my servers at home. There, I can engage in much more robust defenses than is possible from the browser.

    This is particularly true since I set up a MITM HTTPS proxy. While I did this originally in order to mitigate the security problems that DoH brings, I have since found it very useful in order to engage in more comprehensive security scans than are otherwise possible.

    I am very happy with my current approach, but readily confess that it is not one that most people can realistically use.

  22. clake said on April 29, 2019 at 5:43 pm
    Reply

    ff 60.6.1esr also supports doH, but not esni, and may not be as robust as the later versions 64-66. If you set it up on esr, you can check its performance under: about:networking#dns.
    I have been using it for quite some time now on both ff release channels for desktop, and on android fenec-fdroid.

  23. Richard Allen said on April 29, 2019 at 3:14 pm
    Reply

    I started using DoH in Nightly about a year ago along with ESNI when it was offered. My main FF profile has been using DoH and ESNI since it was available in the FF release. That said, I’m not using DoH or ESNI in my FF Test profile only so that I will have something to compare to and I also have chromium browsers installed that I can use for comparison.

    I’ve been using the default “network.trr.uri” which is cloudflare, I have seen but not used other uri options from Google. I use a little different setup in that I’m using the bootstrapAddress 104.16.112.25 with TRR mode 3 which forces “TRR Only” to be used. Based on my experience DoH and ESNI have been extremely reliable, I haven’t experienced a single DNS resolve failure in the last year and my ping has always been as fast as my system DNS which I check every month or so using DNS Benchmark. Current ping of 11 milliseconds in FF.
    Screenshot: https://i.postimg.cc/52Str2bG/DoH-ESNI.png

    The privacy and security extensions I’m using are:
    FF Content Blocking: blocking all trackers with a small handful of whitelisted sites, blocking all 3rd-party cookies, very light resource usage.
    CanvasBlocker: very light resource usage.
    No-Script Suite Lite: used only as a javascript whitelist, will auto disable js on all new sites, very light resource usage.
    Privacy Possum: blocks etags and tracking headers.
    Tampermonkey userscripts: conceal history length, general url cleaner, redirect away.
    uBlock Origin: globally blocking 3rd-party iframes and using noop rules for embedded video, blocking 3rd-party js on a few dozen sites.

    Way too many security, privacy and network settings in about:config to list.

    1. Tom Hawack said on April 29, 2019 at 3:36 pm
      Reply

      @ Richard Allen, I guess you’re aware that ‘uBlock Origin’ may be set to block javascript by default and allow a site specifically (whitelist) or the other way around (blacklist scheme), yet you use the ‘ No-Script Suite Lite’ extension which performs the same. So I’m wondering why. Are there any advantages to use ‘No-Script Suite Lite’ rather than uBO’s built-in javascipt management?

      That’s all :=)

      1. Richard Allen said on April 29, 2019 at 7:36 pm
        Reply

        @Tom Hawack

        Yes sir, you’re right in that what I do does kind of sound bass-ackwards. :)

        First, because of all the feeds I see in Feedly I might end up visiting a couple dozen new sites some days, I get 300-500 feeds on weekdays, not that I read them all. When visiting new sites I want ALL inline, 1st-party and 3rd-party js disabled. If a site is working with all js disabled I generally leave it like that, depends on how much interaction with the site I need. If a new site requires me to whitelist it in No-Script to be able to view Any content, that will almost always be my last visit. Of course I could disable 3rd-party and/or 1st-party js with uBO before whitelisting the site but I’m all about ease of use and speed to visual gratification. I want to see something Before I decide to enable Any js. Also, in the extremely rare occurance of an unwanted redirect that tab will absolutely have all js disabled. In No Way do I want to start all websites with all js disabled in uBO and I will refer back to “ease of use and speed to visual gratification”.

        Second, I almost always Only disable 3rd-party js on sites that connect to more than 10 domains. Very few websites have a legitimate reason, in my opinion, to connect to more than 10 domains. Right now, I have 40 websites with 3p js disabled and I’m guessing 5-15% of all websites have js disabled completely because they work well enough for my purposes. I will agree that it is safer to globally block 3rd-party js but I’m willing to accept the risk because of the totality of my configuration.

        Third, performance. If I control js exclusively with uBO what will that do to the size of the uBO database? Right now I have 109 personal filters and 180 rules. I’m guessing that if I was to only use uBO to control js that My Rules would double or triple in size. How many rules are you using Mr. Tom???? Would really like to know. And we all know that uBO and anything comparable is not exactly light on resource usage, not that I’m complaining. And I have no idea how the new storage api whatever blah blah will improve db resource usage. But I do know that No-Script Suite Lite uses a very small fraction of what uBO uses. Right now uBO is using 13.1 MB of memory, No-Script Suite Lite is using 446KB and I have 9 tabs open.

        Fourth, ease of use. Way back when I first started to use uBO I tried living with 3p iframes and 3p js disabled and it got to where I wanted to physically assault someone. ;) I personally think that my current system is much easier and faster to use and I’m extremely skeptical about my combination of uBO and No-Script using more resources than doing the same thing with only uBO. I’ve said it before, my main priorities are speed and ease of use. And I’m willing to bet that my browser config is safer and faster than 99% of all browsers out there. I can live with the level I’m at now.

        That’s all folks!
        I know, TL;DR sorry. Meant to get back to you earlier but I’ve been swamped over here.
        Peace brother! ;)

  24. Steve#99 said on April 29, 2019 at 3:01 pm
    Reply

    +1 with @Shiva & @Tom, dnscrypt-proxy is superb and one of the best tools to restore control of your machine back to you and away from corporations and other assorted miscreants. Also, thank you for this article Martin, though a few advanced users will never use browser based dns, it is a really good article. I’ve been waiting for sni masking for quite a while.

    https://github.com/jedisct1/dnscrypt-proxy/releases

  25. Yuliya said on April 29, 2019 at 10:55 am
    Reply

    imgur.com/d8J7frW
    “Contact your DNS provider or try using 1.1.1.1 for fast & secure DNS.”
    They might as well just rephrase it to: please use our DNS service. Please!!!
    Hmm, No.

    1. TelV said on April 29, 2019 at 3:55 pm
      Reply

      @Yuliya,

      The interesting thing about that is that I was using Cloudflare’s 1.1.1.1 configuration when I first ran the test without logging into a VPN. The message I got that time was that the test was able to detect that I was using their DNS server, but not over a secure connection.

      When I logged into Tunsafe’s Wireguard client, the results were disappointingly the same as those using just my ISP’s connection. I shall have to go take that up with them.

      Even logging into AzireVPN and using their own encrypted DNS server the results were still disappointing since both TLS 3 and SNI resulted in a red X with just a question mark in an orange circle for the other two even though Waterfox 56.2.9 supports TLS 3. The actual setting in prefs is: security.tls.version.max;3. The setting “network.security.esni.enabled” isn’t present at all in Waterfox even though an update to the current version only took place a couple of days ago.

      Food for thought……..

  26. Sunny said on April 29, 2019 at 10:38 am
    Reply

    I just tested Secure DNS in Firefox (v66.03) again. Firefox still does not use the host file to block sites when using Secure DNS. So they closes some holes and opens others.
    Why do people who say privacy and security is a main priority make such obvious mistakes?

    1. Richard Allen said on April 29, 2019 at 4:12 pm
      Reply

      The hosts file not working with DoH has been known for over a year and a hosts file will Never work with DoH because it is an in browser solution and does not use the system DNS resolver.

      I’ve been using a hosts file for maybe 12 years now and didn’t like that DoH was not using the hosts file at first but the reality is, does anyone using a hosts file not use in browser content blocking? I’ve personally never met anyone that Only uses a hosts file, just saying. Also, a hosts file will always have slower page load times than when using in browser content blocking like uBO. In my case, even when not using DoH my hosts file really isn’t used 99.9999% of the time unless I disable uBO but then FF Content/Tracker Blocking catches most everything. I’ve personally never seen an ad when only using the built-in FF Content Blocking. Not saying it’s impossible, I’ve just never seen an ad. Most of the time I only use a small malware only hosts file instead of my big one because I’m often testing in browser content blocking, and to see what kind of non-sense publishers are pushing to their visitors.

      Personally, I’ve gotten over DoH not using my hosts file in FF. Normally, when not using DoH, my hosts file, is like the second or third line of defense, depends on which browser I’m using. With FF I might disable uBO to access a website but I never also disable FF Content Blocking, I’ll just move on. Anyway, you should absolutely use which ever setup that you are comfortable with, I’m fine with using DoH. And, just so you know, I haven’t so much as seen a single malware object, trojan or virus in about 12 years. ;)

  27. Tom Hawack said on April 29, 2019 at 10:29 am
    Reply

    The article states regarding Secure DNS, “[…]Two standards, DNS-over-TLS or DNS-over-HTTPS fall under the category.”. In fact there is a third one, DNSCrypt .

    jedisct1, the developer of DNSCrypt, wrote ( https://www.reddit.com/r/privacytoolsIO/comments/7wakeh/dnscrypt_v2_vs_dnsoverhttp2/ ) :

    “DNSCrypt is faster (over UDP, which other options don’t support) and slightly safer than DoH. It was explicitly designed for DNS, doesn’t allow insecure parameters, is way simpler (= reduced attack surface), and has proper padding.

    DNS-over-HTTP/2 is easier to deploy, as it can be served as a web page. But certificate management can be tricky.

    dnscrypt-proxy supports both protocols. Unless one of them gives you systematic issues due to your ISP blocking it, you should just leave them both enabled. dnscrypt-proxy will try all the configured resolvers, and use the fastest ones no matter what the protocol is.

    DNS-over-TLS is useless. It has zero benefits over these, so it is not implemented.”

    To what extent is this true, I have no idea. If DNSCrypt code supports indeed DNSCrypt and DoH but not DoT, some Secure DNS resolvers will support all or not. CloudFlare does not support DNSCrypt while Quad9 supports all three, for instance.

    At this time I use DNSCrypt-Proxy with Quad9-dnscrypt servers, mainly. I do happen to use CloudFlare’s DoH servers though.

    I couple DNSCrypt-proxy with ‘Acrylic DNS Proxy’ via port 40,
    DNSCrypt-proxy : listen_addresses = [‘127.0.0.1:40’]
    Acrylic : PrimaryServerAddress=127.0.0.1 AND PrimaryServerPort=40

    Acrylic because I find it easier to handle my blocking lists. DNSCrypt-Proxy fandles blocklists as well but requires a python script to concatenate several sources; also, more complicated for handling HOSTS sources.

    I’ve returned to the use of DNSCrypt-proxy recently after having been an Acrylic only user for some time.

    1. Shiva said on April 29, 2019 at 11:19 am
      Reply

      @Tom
      “Acrylic because I find it easier to handle my blocking lists. DNSCrypt-Proxy fandles blocklists as well but requires a python script to concatenate several sources; also, more complicated for handling HOSTS sources.”

      Now I use an Autohotkey script. No Phyton or Autohotkey required (use compiler).
      https://file.town/download/cd96za63k0ha0scjsob98vwc1

      1. Tom Hawack said on April 29, 2019 at 12:30 pm
        Reply

        @Shiva, my wondering was about using only DNSCrypt-proxy without Acrylic for the blocklists.
        Your script means using Acrylic and appears to me pertinent if the HostsManager application is not installed, because your script will perform what HostsManager does (concatenate, remove duplicates, set 127.0.0.1 to 0.0.0.0)

        Using Acrylic together with HostsManager (to manage hosts various sources) together with my very own list(s) with Acrylic’s very INCLUDE EXTERNAL HOSTS FILES section makes it as simple as it can be… but requires the Hostsman application, indeed. Your method/script has the advantage of avoiding a third-party application such as Hostsmanager.

      2. Shiva said on April 29, 2019 at 1:37 pm
        Reply

        @Tom
        “My wondering was about using only DNSCrypt-proxy without Acrylic for the blocklists”

        This is the first thing I tried to do after I installed SympleDNSCrypt, but with my limited knowledge I found more simple coupled DNSCrypt-proxy with Acrylic and its HOSTS file. And yes, without Acrylic you have to use a python script to build a big list.
        https://github.com/jedisct1/dnscrypt-proxy/wiki/Public-blacklists

        But I don’t understand your needs about the HostsManager. If I remember you disabled your HOSTS file to use HostsMan (.ehm backup) for update your Acrylic HOSTS file. The AutoHotkey script do the same operation of HostsMan. If you need a specific list simply open with Notepad++ the script and add your list with this block (change the link to the list and the name of the file):

        UrlDownloadToFile, https://raw.githubusercontent.com/anudeepND/blacklist/master/CoinMiner.txt, C:\Program Files (x86)\Acrylic DNS Proxy\Temp Lists\Hosts List AnudeepND (CoinMiner).txt
        FileRead, var, C:\Program Files (x86)\Acrylic DNS Proxy\Temp Lists\Hosts List AnudeepND (CoinMiner).txt
        IfInString, var, 404: Not Found
        {
        MsgBox, Hosts List AnudeepND (CoinMiner) download failed!
        return
        }

        If you want to disable a list or a command (like restard the service) you have to put “;” on each line of the command.
        There’are some list only available with HostMan (which list?) of do you want merge Win HOSTS file to Acrylic target big list, simply add this command before download the list (line 3) to the script:

        FileCopy, C:\Windows\System32\drivers\etc HOSTS, C:\Program Files (x86)\Acrylic DNS Proxy\Temp Lists\Hosts List My HOSTS file.txt\, 1
        (no tested I believe it is the right command)

        Surely using UrlDownloadToFile you don’t encounter in any error to download lists (do you remember issues with HostMan or Seqdownload regards some lists?). I use it as I wrote in the. docx file and I forget to update every day the AcrylicHostsGroup1.txt.

      3. Tom Hawack said on April 29, 2019 at 2:51 pm
        Reply

        @Shiva,

        “But I don’t understand your needs about the HostsManager.”
        “The AutoHotkey script do the same operation of HostsMan.”

        Yes, I understand that. I’ve read the UpdateHostsLists.docx included in the your script’s ‘Temp Lists’ folder, but the point is I don’t understand how to start your script.

        In UpdateHostsLists.docx I read,
        “Programs installed: Python + Requests Library (.pyw) or AutoHotkey (.ahk) or nothing (.exe with PyInstaller\AutoHotkey compiler)”

        OK. I have neither Pyton nor AutoHotkey installed, so I rely on “nothing (.exe with PyInstaller\AutoHotkey compiler)” … what .exe? How do I start/run the script?

        Sorry for not understanding immediately what a more technically inclined user could, but the point is I don’t understand, even after having read the docx explanations, how to deply your script. I have to download the various hosts files myself, in a given folder, right? The your script will merge them, right? But how do I start your script? Lol, that’s what i’m missing!

        @Martin, ghacks’ big boss : sorry for squatting the blog with our close to live dialogs :=)

      4. Shiva said on April 29, 2019 at 4:21 pm
        Reply

        I believed you use AutoHotkey. Sorry
        Download it without install (https://www.autohotkey.com/download/ahk.zip) and use the Ahk2Exe.exe to complile .ahk script to exe (this is why I put an icon file in Temp List).
        Obviously, don’t throw away the .ahk file, maybe you will have to make changes (es. new link of a list).
        But probably it is more simple install AutoHotkey and test .ahk file until you will finish with your changes. Be sure that Internet Security doesn’t block the download of the list.

        “I have to download the various hosts files myself, in a given folder, right?”
        No, you have to set like I wrote you above the links of the list and the names of the saved file. The script is set with the lists I use, but you simply add or remove them. Forgot HostMan and SeqDownload.

        Tom, I really haven’t any knowledge about coding. I simply searched on DuckDuckGo the commands I need to perform each operation and I merged all into one non ‘elegant’ script. And this is why a non-technical user (like me) can simply modify it, especially you that you are more informed than me. You only have to take your time with the script opened in Notepad++. and you will see that it is not difficult.

      5. Tom Hawack said on April 29, 2019 at 4:48 pm
        Reply

        @Shiva, now I understand! From there on I understand your reasoning and the script’s deployment. OK. I’ve got the ingredients and the recipe, I’ll see how I can cook. Thanks!

      6. Tom Hawack said on April 29, 2019 at 11:56 am
        Reply

        @Shiva, many thanks but how does script work, what does it perform exactly?

        You see, with Acrylic I have the option to include whatever blocklists provided they have the 0.0.0.0 (or 127.0.0.1) preceding the hostname, so I can consider my very HOSTS file (though disabled because handled by Acrylic) together with my own entries, i.e. in AcrylicHosts.txt :

        # INCLUDE EXTERNAL HOSTS FILES
        @ d:\My Data\BLOCKERS\Acrylic\AcrylicHostsGroup.txt
        @ c:\Windows\System32\drivers\etc\HOSTS.ehm

        where HOSTS.ehm is my disabled HOSTS file. Acrylic will concatenate both and remove redundancies.

        So what I’d need for DNSCrypt-proxy alone, without Acrylic, is a way to concatenate several sources, then have the 0.0.0.0 removed should the sources have the hosts file format because DNSCrypt-proxy does not handle that format (maybe SimpleSNScrypt does that job, no idea).

        All this is simplified with Acrylic. Your script may perform all this but if you could adding a description to this ‘Temp Lists’ would be welcomed.

      7. Shiva said on April 29, 2019 at 2:03 pm
        Reply

        @Tom
        “So what I’d need for DNSCrypt-proxy alone, without Acrylic, is a way to concatenate several sources, then have the 0.0.0.0 removed should the sources have the hosts file format because DNSCrypt-proxy does not handle that format (maybe SimpleSNScrypt does that job, no idea).”

        If I understand well, you only need to remove 0.0.0.0 from the big list made with HostMan to use it with DNSCrypt-proxy?
        You can use the Autohotkey script and add a simple search and replace command to delete 0.0.0.0 form each line and then change the command “filemove” to move the result to the DNSCrypt-proxy target file. Also change the service restart command from AcrylicService.exe to dnscrypt-proxy.exe

      8. Tom Hawack said on April 29, 2019 at 12:04 pm
        Reply

        @Shiva, my fault, I just found the included UpdateHostsLists.docx in your ‘Temp Lists’.
        I’ll check all that out.

    2. Tom Hawack said on April 29, 2019 at 10:50 am
      Reply

      I just realized the article focuses on browsers’ Secure DNS whilst my comment regards a system-wide DNS encryption. I wouldn’t use browser specific, application specific DNS protocols. Same as VPN: system-wide, always and only.

  28. Hy said on April 29, 2019 at 9:07 am
    Reply

    Hi Martin,
    I made the about:config change to enable encrypted SNI but the Cloudflare test page still shows “Your browser did not encrypt the SNI…” Any ideas why it didn’t work?

    1. Shiva said on April 29, 2019 at 10:46 am
      Reply

      Same here and I restart Firefox. Because I use SimpleDNSCrypt with Cloudflare resolver I tried both with network.trr.mode 0 and 2 settings (maybe it is a SNI connected parameter into Firefox), but doesn’t change red icon.

      However there many orange “?” if set another (doH) or (DNSCrypt) resolvers… I can’t make heads or tails of it, but it seems more a Cloudflare usage test than a DNS security test.

      1. Tom Hawack said on April 29, 2019 at 11:19 am
        Reply

        @Shiva, you’re using SimpleDNSCrypt,the front-end DNSCrypt application, hence system-wide, no need to parasite this with Firefox’s TRR, consequently be sure to disable Firefox’s TRR by setting (about:config or user.js),

        (“network.trr.mode”, 5);
        (“network.trr.bootstrapAddress”, “”);
        (“network.trr.uri”, “”);
        (“network.trr.custom_uri”, “”);

        Cloudflare’s test page shows me similar results to those you mention, it’s not made for testing system-wide DNS encryption, obviously.

      2. Shiva said on April 29, 2019 at 12:21 pm
        Reply

        @Tom
        Thanks for the clarification. Except for network.trr.mode (it was set to =0) I already have the other parameters ” “. We use the same programs via port 40 (and also PeerBlock for IP in addiction of Acrylic HOSTS file).

      3. Tom Hawack said on April 29, 2019 at 12:50 pm
        Reply

        @Shiva, OK, a bit of misunderstanding on my part.

        – You were testing Firefox’s TRR to meet Cloudflare’s very test page, but you are aware TRR is useless (to be disabled) provided a system-wide DNS encrytion;

        – You and I use Acrylic together with DNSCrypt,
        — You use your ‘Temp Lists’ to concatenate various hosts sources, I use the Hostsman application
        — You use DNSCrypt’s SimpleDNSCrypt front-end, I use DNSCrypt-Proxy.

        Fine!

      4. Shiva said on April 29, 2019 at 2:33 pm
        Reply

        “Firefox’s TRR to meet Cloudflare’s very test page”
        Honestly, I was testing “Check if your browser uses Secure DNS, DNSSEC, TLS 1.3, and Encrypted SNI” and this why I also made the test with network.trr.mode=2 and network.trr.uri=https://mozilla.cloudflare-dns.com/dns-query

        Ok, we use the same “services” about DNS and different list… :-) And probably we use a different approach and lists also with PerBlock if we really need to be picky… :-)

    2. Martin Brinkmann said on April 29, 2019 at 9:26 am
      Reply

      Did you restart Firefox? It seems necessary to do so.

      1. Hy said on April 29, 2019 at 12:06 pm
        Reply

        @Martin Brinkmann: Yes, restarting Firefox was the first thing I did when I noticed that it hadn’t worked the first time.

        I notice your screenshot indicates Firefox Nightly–perhaps this is the reason it’s working for you and not for some of us? Perhaps it works in Nightly but it’s not possible to enable encrypted SNI in Firefox 66.0.3 stable?

      2. Martin Brinkmann said on April 29, 2019 at 12:10 pm
        Reply

        that is certainly another possibility. The preference exists but if Mozilla is still working on the feature, it may not be implemented fully in the stable version.

      3. Squuiid said on April 30, 2019 at 9:40 pm
        Reply

        ESNI not working on Firefox 66.03 stable on a Mac for me.
        The rest work fine, just not ESNI.
        I thought this feature was now indeed on the stable channel?

  29. Thiago said on April 29, 2019 at 7:57 am
    Reply

    Google Chrome not offering option Encrypted SNI?

    1. Martin Brinkmann said on April 29, 2019 at 8:29 am
      Reply

      I could not find the option in the latest Chrome Canary or Stable. It does not seem to be on the chrome://flags page.

      1. Noob said on April 29, 2019 at 10:15 am
        Reply
      2. Martin Brinkmann said on April 29, 2019 at 10:39 am
        Reply

        Thank you, that is good news!

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.