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

DNSSEC and UDP buffer size

Scheduled Pinned Locked Moved DHCP and DNS
21 Posts 6 Posters 16.9k 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.
  • C
    cwadge
    last edited by May 3, 2010, 5:57 PM

    @sullrich:

    DNSMASQ does support EDNS.   See: http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html

    The problem in my case was that dnsmasq is throwing away larger than expected UDP replies. Since the reasonable size of a DNS query prior to [stupid] DNSSec is ~512b, the dnsmasq default max value of 1280 was sane. Now that they can potentially surpass 3k and still be legitimate DNS responses, the limit has been raised to 4096 by default in recent builds of dnsmasq. Still, the binary doesn't need to be updated to apply this change. I've tested and confirmed that it works as expected on dnsmasq 2.45 just by setting the config option 'edns-packet-max=4096' either in its config or as an argument at launch.

    For further reference:

    http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2010q2/003896.html

    1 Reply Last reply Reply Quote 0
    • M
      mhab12
      last edited by May 4, 2010, 6:32 PM

      Where is the DNSMasq conf file located in pfsense?

      1 Reply Last reply Reply Quote 0
      • J
        jimp Rebel Alliance Developer Netgate
        last edited by May 4, 2010, 6:45 PM

        @mhab12:

        Where is the DNSMasq conf file located in pfsense?

        pfSense only uses command line parameters for dnsmasq, not a configuration file.

        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!

        1 Reply Last reply Reply Quote 0
        • M
          mhab12
          last edited by May 4, 2010, 7:32 PM

          Is there any way to pass the larger packet size to dnsmasq via shell or some other conf file at startup?

          1 Reply Last reply Reply Quote 0
          • J
            jimp Rebel Alliance Developer Netgate
            last edited by May 4, 2010, 7:36 PM

            If you really want to change it, you can edit line 639 of /etc/inc/services.inc to read:

            mwexec("/usr/local/sbin/dnsmasq --all-servers --edns-packet-max=4096 {$args}");
            

            Though thus far I haven't seen evidence that it will really break without that setting. If it does break, it should be easy to produce a patch or update for that simple change.

            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!

            1 Reply Last reply Reply Quote 0
            • M
              mhab12
              last edited by May 4, 2010, 7:45 PM

              Exactly what I was looking for - thank you!

              1 Reply Last reply Reply Quote 0
              • C
                cwadge
                last edited by May 5, 2010, 1:07 AM

                @jimp:

                …Though thus far I haven't seen evidence that it will really break without that setting. If it does break, it should be easy to produce a patch or update for that simple change.

                Since EDNS is already supported in dnsmasq some DNSSec queries will work, as they come in at under the 1280b payload size expected by dnsmasq's default EDNS value. Others, for instance some signed zones in the .gov and .org TLD's, use much closer to the 4k ceiling defined in RFC2671.

                1 Reply Last reply Reply Quote 0
                • J
                  jimp Rebel Alliance Developer Netgate
                  last edited by May 5, 2010, 1:25 AM

                  I added a very simple package that just applies a patch that makes the change I mentioned. If you find you need it, just install the "dnsmasq EDNS size increase" package that should show up momentarily in the package repo.

                  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!

                  1 Reply Last reply Reply Quote 0
                  • C
                    cwadge
                    last edited by May 5, 2010, 2:18 AM

                    @jimp:

                    I added a very simple package that just applies a patch that makes the change I mentioned. If you find you need it, just install the "dnsmasq EDNS size increase" package that should show up momentarily in the package repo.

                    Thanks for the quick patch, Jim. I'm sure that will help people out as new and exciting DNS issues begin to arise.

                    1 Reply Last reply Reply Quote 0
                    • E
                      ezat
                      last edited by May 5, 2010, 2:24 AM

                      @jimp:

                      I added a very simple package that just applies a patch that makes the change I mentioned. If you find you need it, just install the "dnsmasq EDNS size increase" package that should show up momentarily in the package repo.

                      Thanks for the patch.  Bit of an issue though.

                      1.2.3

                      Parse error: syntax error, unexpected '-', expecting '(' in /usr/local/pkg/dnsmasq-edns.inc on line 3

                      1 Reply Last reply Reply Quote 0
                      • J
                        jimp Rebel Alliance Developer Netgate
                        last edited by May 5, 2010, 2:41 AM

                        Try again in about 5-10 minutes. I just checked in a fix.

                        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!

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