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

Enable DNS over TLS via DHCP

Scheduled Pinned Locked Moved General pfSense Questions
12 Posts 5 Posters 4.1k 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.
  • W
    Woodsomeister
    last edited by Aug 10, 2020, 7:54 PM

    Hello,

    how do I set up my pfSense so that DNS over TLS can be used by capable clients (e.g. Android 9+)?

    I have found the following RFC for this:
    https://tools.ietf.org/html/draft-peterson-dot-dhcp-00

    Is it already possible to implement the described DHCP options with the pfSense ISC DHCP server?

    Thanks

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Aug 11, 2020, 12:46 PM

      Seems like it's not ready yet:

      option-code:  TODO (two octets)
      

      Unbound can accept DoT requests if clients are sending them as long as you have enabled it and added a cert.

      Steve

      1 Reply Last reply Reply Quote 0
      • K
        kislwini Banned
        last edited by Aug 17, 2020, 3:45 PM

        I followed this and it worked great, until I restarted my router. Now, unbound doesn't seem to be handling any DNS requests and my router is defaulting to my ISP's DNS servers. The Cloudflare DNS servers are in the config, as well as in /etc/resolv.conf and in the Luci interface config for WAN & WAN6. If I try to use nslookup, I get "Illegal Instruction". Any ideas as to what is going on? I've checked my configs, tried restarting unbound several times, redid all of the configs, and still nothing from unbound.

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Aug 17, 2020, 3:50 PM

          Luci is an OpenWRT component, did you mean to use that term?

          1 Reply Last reply Reply Quote 0
          • K
            kislwini Banned
            last edited by Aug 17, 2020, 3:53 PM

            I followed this and it worked great, until I restarted my router. Now, unbound doesn't seem to be handling any DNS requests and my router is defaulting to my ISP's DNS servers. The Cloudflare DNS servers are in the config, as well as in /etc/resolv.conf and in the Luci interface config for WAN & WAN6. If I try to use nslookup, I get "Illegal Instruction". Any ideas as to what is going on? I've checked my configs, tried restarting unbound several times, redid all of the configs, and still nothing from unbound.

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by Aug 17, 2020, 4:00 PM

              You followed what? You just reposted the exact same thing.....

              1 Reply Last reply Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by stephenw10 Aug 17, 2020, 4:09 PM Aug 17, 2020, 4:04 PM

                Oh I see you just copied it from here: https://blog.cloudflare.com/dns-over-tls-for-openwrt/#comment-3858797960 🙄

                Your spam game is weak, try harder.

                1 Reply Last reply Reply Quote 0
                • R
                  Raffi_
                  last edited by Aug 17, 2020, 9:07 PM

                  DoT is working for me with this option in DNS Resolver and I'm using Cloudflare as the forwarding server.
                  e0b7f030-3b63-4f9f-b048-60afeb521117-image.png

                  However, I'm not using the option below, so my clients are talking to pfSense over standard 53 and pfSense goes out to the web over TLS 853 only when it's not already cached by unbound locally.
                  d989ccb4-27a8-42d3-89df-951046bdff9d-image.png

                  I personally don't care if my DNS query is encrypted between pfSense and my local clients, I'm mostly concerned with what goes out to the world.

                  D 1 Reply Last reply Aug 17, 2020, 9:14 PM Reply Quote 1
                  • D
                    DaddyGo @Raffi_
                    last edited by Aug 17, 2020, 9:14 PM

                    @Raffi_ said in Enable DNS over TLS via DHCP:

                    I personally don't care if my DNS query is encrypted between pfSense and my local clients, I'm mostly concerned with what goes out to the world.

                    That is exactly what I do and I think, it works well...😉

                    Cats bury it so they can't see it!
                    (You know what I mean if you have a cat)

                    1 Reply Last reply Reply Quote 1
                    • S
                      stephenw10 Netgate Administrator
                      last edited by Aug 18, 2020, 3:02 PM

                      Yup, as do I. In fact I'd rather internal clients were not using DoT so I can troubleshoot it.

                      It's interesting to note as an option though.

                      Steve

                      R 1 Reply Last reply Aug 18, 2020, 3:10 PM Reply Quote 1
                      • R
                        Raffi_ @stephenw10
                        last edited by Aug 18, 2020, 3:10 PM

                        @stephenw10 said in Enable DNS over TLS via DHCP:

                        In fact I'd rather internal clients were not using DoT so I can troubleshoot it.

                        Good point, yea could be more difficult to figure out what's going on with DNS if everything was encrypted end-to-end.

                        D 1 Reply Last reply Aug 18, 2020, 8:40 PM Reply Quote 0
                        • D
                          DaddyGo @Raffi_
                          last edited by Aug 18, 2020, 8:40 PM

                          @Raffi_ said in Enable DNS over TLS via DHCP:

                          Good point, yea could be more difficult to figure out what's going on with DNS

                          The point is, don't release the 53 port out of the inner world...😉

                          Cats bury it so they can't see it!
                          (You know what I mean if you have a cat)

                          1 Reply Last reply Reply Quote 0
                          12 out of 12
                          • First post
                            12/12
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                            This community forum collects and processes your personal information.
                            consent.not_received