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

Frequent DNS timeouts

pfBlockerNG
11
86
35.8k
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.
  • T
    thundergate @johnpoz
    last edited by Mar 26, 2023, 5:23 PM

    @johnpoz said in Frequent DNS timeouts:

    You sure you have dhcp registrations off? That sure looks like what I had posted in this or some other dns related thread where my wifes phone was constantly asking for dhcp, mine doesn't restart unbound because dhcp registrations are off..

    Thx. Yes. See screenshot. Even disabling static DHCP doesn't help.

    Also disabled python mode - and still all the unbound restarts.

    Activated Level 2 Logging and will have a look into it.

    login-to-view

    login-to-view

    1 Reply Last reply Reply Quote 0
    • T
      thundergate @johnpoz
      last edited by Mar 26, 2023, 5:28 PM

      @johnpoz said in Frequent DNS timeouts:

      Do you have dhcp stuff in its log that might match up

      Within DHCP I do have a lot of those messages (see screenshot):

      login-to-view

      J J 2 Replies Last reply Mar 26, 2023, 5:50 PM Reply Quote 0
      • J
        johnpoz LAYER 8 Global Moderator @thundergate
        last edited by Mar 26, 2023, 5:50 PM

        @thundergate do those times match up? I see you have register dhcp off in your settings.. But maybe it didn't take?

        Something is clearly restarting unbound, and a lot.. And the only thing comes to mind that would restart it that often would be dhcp registrations.

        I would guess for whatever reason your setting of not to register dhcp is not actually working.. For whatever reason.

        Quick test of that might be to just turn off all your dhcp services on pfsense.. Do your restarts stop? You don't need dhcp running 24/7 it can be off for a while. if you you have all your dhcp services off on pfsense, and your still seeing unbound restart like crazy like that - then you know its not dhcp registrations doing it. With the amount of restarts your seeing - I would think you should be able to tell in 10 minutes or so if that is the problem..

        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 0
        • J
          JonH @thundergate
          last edited by Mar 26, 2023, 7:24 PM

          @thundergate said in Frequent DNS timeouts:

          And my DNS Resolver log is full of entries.... Don't really know what is causing this issues?!

          Do you use Service Watchdog? Is it possible that these restarts could be from the Watchdog restarting it? I removed unbound from my Watchdog monitoring because it was restarting it too often. It was a month ago and I've forgotten if my problems created a log like you posted.

          Also note that my Resolver was not stopping, it was hanging and would simply 'fix itself' after 3-6 minutes or so. In my case not using Watchdog has been useful for me.

          1 Reply Last reply Reply Quote 0
          • J
            JonH @thundergate
            last edited by Mar 26, 2023, 7:43 PM

            @thundergate said in Frequent DNS timeouts:

            Within DHCP I do have a lot of those messages (see screenshot):

            The other day i had similar entries in DHCP log for one IP. These started after I had removed power from one of my IoT devices that I was also blocking with a firewall rule.

            This particular device is a bed that also monitors sleep patterns. I have rules that block it's access to 'the motherland'. It also uses an iPhone app so there is also this extra chatter. The app is unused so I deleted it. I also found entries in the States table for that IP and deleted the State for the specific IP. I also deleted the arp entry and rebooted pfSense and my wifi AP at the same time prior to repowering the device that was causing this issue.

            That problem has now stopped.

            1 Reply Last reply Reply Quote 0
            • T
              thundergate
              last edited by Mar 29, 2023, 9:52 AM

              Sorry for my late feedback.

              But after disabling and re-enabling some settings the issues are gone.

              Don't know why - but at the moment no unbound restarts.

              1 Reply Last reply Reply Quote 0
              • L
                level4
                last edited by Mar 29, 2023, 10:22 AM

                Be aware that pfBlocker-NG cron/update also restarts Unbound, when (for instance) DNSBL lists are updated.

                1 Reply Last reply Reply Quote 0
                • T
                  thundergate
                  last edited by Mar 29, 2023, 1:15 PM

                  Oh no... The stop/start of unbound started again.

                  What I could figure out is, that is has somehow be related to my Mac going into standby/hybernate mode. Than those unbound stop/start begins.

                  As it's a testing setup and my Mac is the only network device within the pfSense setup I can say, that it has to be something related to the Mac and pfSense / pfBlockerNG?!

                  J G 2 Replies Last reply Mar 29, 2023, 1:28 PM Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator @thundergate
                    last edited by johnpoz Mar 29, 2023, 1:28 PM Mar 29, 2023, 1:28 PM

                    @thundergate said in Frequent DNS timeouts:

                    Mac going into standby/hybernate mode.

                    Or is asking for dhcp all the time like my wife's iphone.. Would seem more like it - what would your mac going into standby have to do with pfblocker ???

                    See above where I posted my wife phone doing this

                    Mar 16 01:38:52 	dhcpd 	93450 	DHCPACK on 192.168.2.203 to 88:b2:91:98:d6:f0 via igb2
                    Mar 16 01:38:52 	dhcpd 	93450 	DHCPREQUEST for 192.168.2.203 from 88:b2:91:98:d6:f0 via igb2
                    Mar 16 01:37:41 	dhcpd 	93450 	DHCPACK on 192.168.2.203 to 88:b2:91:98:d6:f0 via igb2
                    Mar 16 01:37:41 	dhcpd 	93450 	DHCPREQUEST for 192.168.2.203 from 88:b2:91:98:d6:f0 via igb2
                    Mar 16 01:31:44 	dhcpd 	93450 	DHCPACK on 192.168.2.203 to 88:b2:91:98:d6:f0 via igb2
                    Mar 16 01:31:44 	dhcpd 	93450 	DHCPREQUEST for 192.168.2.203 from 88:b2:91:98:d6:f0 via igb2
                    Mar 16 01:30:01 	dhcpd 	93450 	DHCPACK on 192.168.2.203 to 88:b2:91:98:d6:f0 via igb2
                    Mar 16 01:30:01 	dhcpd 	93450 	DHCPREQUEST for 192.168.2.203 from 88:b2:91:98:d6:f0 via igb2
                    Mar 16 01:29:20 	dhcpd 	93450 	DHCPACK on 192.168.2.203 to 88:b2:91:98:d6:f0 via igb2
                    Mar 16 01:29:20 	dhcpd 	93450 	DHCPREQUEST for 192.168.2.203 from 88:b2:91:98:d6:f0 via igb2
                    

                    If your unbound is restarting on dhcp then yeah that is going to be horrible.. That was when my wifes phone is on the charger, it shouldn't of been doing shit, let also be asking for dhcp..

                    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 0
                    • G
                      Gertjan @thundergate
                      last edited by Mar 29, 2023, 2:00 PM

                      @thundergate said in Frequent DNS timeouts:

                      related to my Mac going into standby/hybernate mode. Than those unbound stop/start begins

                      MAC directly connected by wire on the LAN port ?
                      In that case, when mac goes down, LAN port goes down == NIC event == unbound restarts.
                      Solution : use a switch.
                      Or is this not your case ?

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

                      J T 2 Replies Last reply Mar 29, 2023, 2:09 PM Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator @Gertjan
                        last edited by Mar 29, 2023, 2:09 PM

                        @gertjan said in Frequent DNS timeouts:

                        MAC directly connected by wire on the LAN port ?

                        That would be odd, but yeah that could do it ass well ;)

                        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 0
                        • T
                          thundergate @Gertjan
                          last edited by Mar 29, 2023, 5:24 PM

                          @gertjan said in Frequent DNS timeouts:

                          MAC directly connected by wire on the LAN port ?

                          Oh noooo. That's it. Thanks for the hint. I was looking into logs forever, but forget about that simple one.

                          G 1 Reply Last reply Mar 30, 2023, 5:59 AM Reply Quote 0
                          • G
                            Gertjan @thundergate
                            last edited by Gertjan Mar 30, 2023, 6:01 AM Mar 30, 2023, 5:59 AM

                            @thundergate

                            Now you know it, look again at the main system log using the console access while your MAC system is shut down == LAN shut down also.
                            Switch on the MAC.
                            You'll see a NIC (LAN) uplink event in the system log (check also the hardware or dmesg log).
                            That triggers a whole lot activity on the system. Every system process using (listing) to the LAN interface will get restarted = DHCP server, NTP, the WebGUI to name a few, and also unbound.

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

                            1 Reply Last reply Reply Quote 0
                            • P
                              phipac
                              last edited by Apr 3, 2023, 8:54 PM

                              So far the only thing that has worked for me regarding the DNS hanging is to not use DNS over TLS to quad9 or Cloudflare or whatever upstream servers you have set. I did not see anyone else mention that so far (though it's likely I missed it). After going back to plain old DNS on port 53, all pages load much faster and I don't have missing icons and images. No more timeouts seen on the Status/DNS Resolver page either.

                              S J 2 Replies Last reply Apr 3, 2023, 9:06 PM Reply Quote 0
                              • S
                                SteveITS Galactic Empire @phipac
                                last edited by Apr 3, 2023, 9:06 PM

                                @phipac said in Frequent DNS timeouts:

                                not use DNS over TLS

                                I posted it above, referencing a different thread. It didn't seem to be any problem for me at home, but others (in one or more threads, have lost track) have said it definitely made a difference. One theory offered was that a high number of DNS requests could perhaps influence it.

                                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                                Upvote 👍 helpful posts!

                                1 Reply Last reply Reply Quote 1
                                • S SteveITS referenced this topic on Apr 3, 2023, 9:06 PM
                                • J
                                  JonH @phipac
                                  last edited by Apr 4, 2023, 4:57 AM

                                  @phipac I switched from quad9 to cloudflare about a week ago. There was a noticeable improvement in reliability but I still experience hangs. Much fewer and lasting shorter periods. I may try openDNS next.

                                  The theory @SteveITS mentioned seems plausible. Equally plausible is maybe I have a configuration error. I note Apple devices seem very chatty although I haven’t had the opportunity to check other os’s to compare. The hangs I experience usually happen while using iPad/iPhone’s. I haven’t noticed it on a Mac but cannot say for sure.

                                  P 1 Reply Last reply Apr 4, 2023, 6:05 PM Reply Quote 1
                                  • G
                                    Gertjan
                                    last edited by Gertjan Apr 4, 2023, 6:16 AM Apr 4, 2023, 5:57 AM

                                    Clouadflare, quad9, OpenDNS using TLS :
                                    Read the first phrase here : Support TLS de Postfix where Postfix could actually be 'anything'.

                                    It's probably not 'thousands' but tens of thousands of lines, because back then, TLS wasn't even TLS 1.x, but the far more simple SSL. I'm not pointing the exisyte,nce of bug, as a decade or so later, most are ironed out. But the code complexity is huge. For those who doubt : have a look at what OpenSSL is. It's open source, and it's mind boggling.

                                    edit : and keep in mind that all the TLS carefully constructed on your side has to be undone on the other side.
                                    Running on hardware that handles millions identical tasks .... On these guys also just found out that their electricity bill just 3 folded. So, If I was to maintain these (free !!) services, I would start to 'throttle'. What would you do ? ;)

                                    And then there is this. If entropy is missing on a system, TLS goes bad.
                                    My words : entropy is the possibility of the system to generate random numbers. Belief it or not, these are hard to generate. And when the stock goes low, the system ... does what, wait ?
                                    TLS eats entropy for breakfast.

                                    All that said : I've been using 1.1.1.1 and the IPv6 counterpart for several weeks.
                                    The only thing I noticed is that I noticed nothing. I forgot that I switched from DNSSEC Resolving to forwarding over TLS.
                                    I'm not using a big system : a SG 4100 with 23.01.

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

                                    J P 2 Replies Last reply Apr 4, 2023, 3:41 PM Reply Quote 0
                                    • G Gertjan referenced this topic on Apr 4, 2023, 6:27 AM
                                    • G Gertjan referenced this topic on Apr 4, 2023, 12:28 PM
                                    • J
                                      JonH @Gertjan
                                      last edited by Apr 4, 2023, 3:41 PM

                                      @gertjan said in Frequent DNS timeouts:

                                      I'm not using a big system : a SG 4100 with 23.01.

                                      Me neither. SG-5100.

                                      What is not clear to me in many posts is if pfBlocker is part of what folks are seeing. As many others said, I too had no problems with 22.xx and problems started after upgrading to 23.01 and new release of pfBlocker. The one change that comes to mind is using python mode for unbound.

                                      I am now traveling and hope all the smoke settles over the next few weeks.

                                      G 1 Reply Last reply Apr 4, 2023, 4:05 PM Reply Quote 0
                                      • G
                                        Gertjan @JonH
                                        last edited by Apr 4, 2023, 4:05 PM

                                        @jonh said in Frequent DNS timeouts:

                                        that comes to mind is using python mode for unbound

                                        That 'mode' doesn't restart unbound.

                                        @thundergate said in Frequent DNS timeouts:

                                        Also disabled python mode - and still all the unbound restarts.

                                        Later on he discovered that unbound also restart when a LAN interface is take Up/Down.

                                        So, unbound can get restarted for more then one reason.

                                        I admit, my words, and what @thundergate wrote, are not a proof. With some luck, @BBcan177 can certify my words (but he probably won't even bother) as he can read that python script very well, as he wrote it.

                                        pfBlockerng can restart unbound, as that is way to take in account new DNDBL info.
                                        If it was possible to re download all the DNSBL feeds every five minutes, and (condition) one of these feeds had a changed content, then, yeah, unbound would get restarted every 5 minutes.
                                        The golden rule always applies : the admin always rules, even if he doesn't know what he is doing ;)

                                        One of the reason why I refresh my DNSBL feeds ones a week. If a DNSBL feedactually changed, then unbound gets restarted. The cron task has been set at 3 AM sunday, so I never detect an unbound restart = a 3 seconds outage.

                                        Also, don't see this post as a 'your are silly' and 'I am smart'. It's just me pushing you to discover what the real reason is.
                                        The logs will tell you.

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

                                        J 1 Reply Last reply Apr 5, 2023, 5:13 AM Reply Quote 0
                                        • P
                                          phipac @JonH
                                          last edited by Apr 4, 2023, 6:05 PM

                                          @jonh Good information - thank you! I have not noticed a difference based on OS or manufacturer. I was seeing similar rates of hang on Windows, Linux, and Android.

                                          Conducting a few more tests to see if I can narrow anything else down.

                                          1 Reply Last reply Reply Quote 0
                                          68 out of 86
                                          • First post
                                            68/86
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.