Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    DNSSEC and SSL/TSL for outgoing DNS queries

    Scheduled Pinned Locked Moved DHCP and DNS
    dns over tlsdnsdns resolverdnsresolver
    13 Posts 4 Posters 1.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @Gertjan
      last edited by

      @gertjan said in DNSSEC and SSL/TSL for outgoing DNS queries:

      If not, 8.8.8.8 and 8.8.4.4 (by memory) are hard coded in pfSense (!) and used.

      Huh - no that can not be true..

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

      GertjanG 1 Reply Last reply Reply Quote 1
      • GertjanG
        Gertjan @johnpoz
        last edited by

        @johnpoz
        I know.

        It's part of a chicken and egg issue.
        'Time' can not work before 'DNS'. And if DNS uses DNSSEC, it needs the exact time.

        https://github.com/pfsense/pfsense/blob/f11e2f7485079aa6a3b3bd866526dea11482e7a8/src/etc/inc/system.inc#L2767

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        johnpozJ 1 Reply Last reply Reply Quote 1
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @Gertjan
          last edited by johnpoz

          @gertjan I agree dnssec needs correct time - but I don't buy that pfsense hardcoded 8.8.8.8 to be used for dns??

          Is that just checking that dns query can be made? Its not actually used to look up something?

          edit:
          If dns fails it fails, if do too wrong time and using dnssec so be it.. Please don't tell me that pfsense will at some point use 8.8.8.8 to query something it needs or a client asks for - unless specifically set to do so by the admin of that pfsense box..

          I would much rather just see a complete failure of dns then to fallback to something like googledns - unless I the admin of pfsense specifically set it to use those.

          Running a resolver - in what scenario would I want my box to ask googledns for anything - even a test if can talk outbound on 53.. Not a fan of such a thing at all - query one of the root servers for something if you want to know if you can talk outbound on 53..

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

          1 Reply Last reply Reply Quote 1
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            Most likely explanation is that the clock is off, though on 2.6.0 / 22.01 and later we do quite a lot at boot to ensure the clock is accurate:

            https://redmine.pfsense.org/issues/12769

            Read the linked commits for info on how to manually override the upstream NTP servers as well, it might help if your location has issues reaching the hardcoded ones.

            Or if you're on an older release, upgrade.

            All that said, as others have mentioned, if you are in forwarding mode, DNSSEC is pretty much useless anyhow, so you may as well shut that off.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            T 1 Reply Last reply Reply Quote 1
            • T
              Tikiyetti @johnpoz
              last edited by

              @johnpoz I forward to CloudFlare's DNS 1.1.1.1 which, from what I've read, does DNSSEC.

              Thanks,
              ~Klaus

              johnpozJ 1 Reply Last reply Reply Quote 0
              • T
                Tikiyetti @Gertjan
                last edited by

                @gertjan Thanks for the input, hadn't considered that.I forward to 1.1.1.1. When you say the pfsense time needs to be correct does that mean it needs to be in-sync with a specific timezone? Or in-sync with the DNS server I forward to?

                I've disabled the two settings for now and since had two more power outages and everything has restored without issue so fortunately I'm not racing to fix anything but I would like to ensure I have all the right configurations to make DNSSEC work.

                Thanks,
                ~Klaus

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @Tikiyetti
                  last edited by johnpoz

                  @tikiyetti yeah cloudflare already does dnssec - so having your unbound trying to do it again is just going to cause possible problems. Cause extra queries, and more than likely just slow down time when client asks for something and gets a response.

                  If what your looking for fails dnssec, which cloudflare is doing at their resolvers - then it won't give you an answer..

                  fail.jpg

                  Here is query to a quad9 IP that specifically does not do dnssec

                  nondnssec.jpg

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    Tikiyetti @jimp
                    last edited by

                    @jimp Thank you. I'm on 2.4.5-RELEASE-p1. So if I want DNSSEC then it only makes sense to put my pfsense into resolver mode, right? And if I do that then I need to specify an NTP server?

                    Thanks,
                    ~Klaus

                    johnpozJ 1 Reply Last reply Reply Quote 0
                    • T
                      Tikiyetti @johnpoz
                      last edited by

                      @johnpoz gotchya. ok makes much more sense now. Thank you. I'll just leave it disabled then. Didn't realize it was redundant to have that enabled when using the appropriate DNS server.

                      Thanks,
                      ~Klaus

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator @Tikiyetti
                        last edited by johnpoz

                        @tikiyetti for starters you should really update pfsense, that version is quite dated.

                        If you want to do your own dnssec, then yes you should just resolve which is what unbound does out of the box. Or if your wanting to forward then just pick a dns that does it already and uncheck dnssec in unbound.

                        I am not aware of any of the major dns providers that do not do dnssec out of the box - some of them have special IPs you can point to that don't do it - like the 9.9.9.10 IP for quad9, etc.. But pretty much any of the major players are doing it out of the box. So there is little point to having unbound try and do it if your forwarding - more likely than not just going to cause you possible issues at some point or another. Its just extra work for something that is already being done.

                        If you order a cheeseburger, do you scrape off the cheese when you get it an put your own cheese on?

                        If you want to control putting cheese on your burger, just order it plain (resolve) and then do your own thing for the cheese ;)

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.