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

Problem with DNS resolver

General pfSense Questions
7
64
4.6k
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.
  • U
    Unoptanio
    last edited by Unoptanio Jun 4, 2024, 6:50 PM Jun 4, 2024, 6:48 PM

    If I restart pfsense on the physical machine the DNS resolver doesn't work.
    The service appears to be working.
    This always happens every time I reboot the system or turn off the machine.

    I verified that if I stop the service and restart it manually then it works.

    What could it depend on?

    đź”’ Log in to view

    All services are OK

    đź”’ Log in to view

    After manually restarting the "unbound DNS Resolver" service then it works

    đź”’ Log in to view

    pfSensePlus24.03 2U BareMetal Asrock Industrial IMB-X1314MicroATX
    CPU: i7-13700@5.2GHz, RAM:32GB ECC, n°2 Samsung 870EVO SATA 2.5” SSD 1TB (ZFS) Raid1
    n°3 Intel i225-LM 2500/1000/100Mbps, n°1 NIC Intel i350-T4V2 10/100/1000 Mbps 4*GLAN, n°1 Intel X520-DA2

    J G 2 Replies Last reply Jun 4, 2024, 7:09 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @Unoptanio
      last edited by Jun 4, 2024, 7:09 PM

      @Unoptanio could be unbound is starting before something is fully up - like your actual connection, are you routing traffic through a vpn?

      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

      U 1 Reply Last reply Jun 4, 2024, 8:20 PM Reply Quote 0
      • U
        Unoptanio @johnpoz
        last edited by Jun 4, 2024, 8:20 PM

        @johnpoz
        No VPN

        pfSensePlus24.03 2U BareMetal Asrock Industrial IMB-X1314MicroATX
        CPU: i7-13700@5.2GHz, RAM:32GB ECC, n°2 Samsung 870EVO SATA 2.5” SSD 1TB (ZFS) Raid1
        n°3 Intel i225-LM 2500/1000/100Mbps, n°1 NIC Intel i350-T4V2 10/100/1000 Mbps 4*GLAN, n°1 Intel X520-DA2

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Jun 4, 2024, 8:25 PM

          So Unbound is actually stopped after rebooting?

          Whats shown in the DNS or System logs? Is it trying to start and failing?

          1 Reply Last reply Reply Quote 0
          • G
            Gertjan @Unoptanio
            last edited by Gertjan Jun 5, 2024, 8:48 AM Jun 5, 2024, 8:47 AM

            @Unoptanio

            Execute

            cat /var/log/resolver.log | grep 'start'
            

            and take note : unbound can't handle DNS requests when its in the process of stopping and restarting.

            Obvious solutions :
            (very silly) : make less DNS requests.
            or
            make unbound restart less often.

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

            U 2 Replies Last reply Jun 5, 2024, 8:56 AM Reply Quote 1
            • U
              Unoptanio @Gertjan
              last edited by Unoptanio Jun 5, 2024, 8:57 AM Jun 5, 2024, 8:56 AM

              @Gertjan

              Hello,

              i have enabled: "Serve Expired"

              I did a reboot and it works now

              To date, the problem has not recurred

              đź”’ Log in to view

              pfSensePlus24.03 2U BareMetal Asrock Industrial IMB-X1314MicroATX
              CPU: i7-13700@5.2GHz, RAM:32GB ECC, n°2 Samsung 870EVO SATA 2.5” SSD 1TB (ZFS) Raid1
              n°3 Intel i225-LM 2500/1000/100Mbps, n°1 NIC Intel i350-T4V2 10/100/1000 Mbps 4*GLAN, n°1 Intel X520-DA2

              D S 2 Replies Last reply Jun 5, 2024, 9:39 AM Reply Quote 0
              • D
                darcey @Unoptanio
                last edited by Jun 5, 2024, 9:39 AM

                @Unoptanio Another thing, that might interrupt DNS, is having unbound resolve dynamic DHCP client hostnames.
                AIUI this results in unbound restarts in order to reread the leases file. I set mine to only resolve static leases.

                1 Reply Last reply Reply Quote 1
                • S
                  stephenw10 Netgate Administrator @Unoptanio
                  last edited by Jun 5, 2024, 12:53 PM

                  @Unoptanio said in Problem with DNS resolver:

                  i have enabled: "Serve Expired"

                  I did a reboot and it works now

                  Hmm, well that seems odd. Not sure how that setting would have any effect of Unbound starting.

                  J 1 Reply Last reply Jun 5, 2024, 1:32 PM Reply Quote 1
                  • J
                    johnpoz LAYER 8 Global Moderator @stephenw10
                    last edited by johnpoz Jun 5, 2024, 1:32 PM Jun 5, 2024, 1:32 PM

                    @stephenw10 said in Problem with DNS resolver:

                    Not sure how that setting would have any effect of Unbound starting.

                    It wouldn't, and on a restart there wouldn't be anything in the cache to serve up anyway.

                    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
                    • U
                      Unoptanio @Gertjan
                      last edited by Unoptanio Jun 6, 2024, 8:08 AM Jun 6, 2024, 8:02 AM

                      @Gertjan said in Problem with DNS resolver:

                      cat /var/log/resolver.log | grep 'start'

                      Today the problem recurred

                      Shell Output - cat /var/log/resolver.log | grep 'start'

                      đź”’ Log in to view

                      đź”’ Log in to view

                      đź”’ Log in to view

                      đź”’ Log in to view

                      đź”’ Log in to view

                      pfSensePlus24.03 2U BareMetal Asrock Industrial IMB-X1314MicroATX
                      CPU: i7-13700@5.2GHz, RAM:32GB ECC, n°2 Samsung 870EVO SATA 2.5” SSD 1TB (ZFS) Raid1
                      n°3 Intel i225-LM 2500/1000/100Mbps, n°1 NIC Intel i350-T4V2 10/100/1000 Mbps 4*GLAN, n°1 Intel X520-DA2

                      F D P 3 Replies Last reply Jun 6, 2024, 8:10 AM Reply Quote 0
                      • F
                        fireodo @Unoptanio
                        last edited by Jun 6, 2024, 8:10 AM

                        @Unoptanio said in Problem with DNS resolver:

                        @Gertjan said in Problem with DNS resolver:

                        cat /var/log/resolver.log | grep 'start'

                        Today the problem recurred

                        You say in your signature that you use 2.7.2 CE but your unbound is (according your screenshot) 1.18.0 - thats not consistent IMHO

                        Here (also 2.7.2.CE):

                        Jun 6 03:05:11	unbound	62796	[62796:0] info: service stopped (unbound 1.19.1).
                        Jun 5 03:05:17	unbound	62796	[62796:0] info: start of service (unbound 1.19.1).
                        

                        Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                        SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                        pfsense 2.7.2 CE
                        Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                        U 1 Reply Last reply Jun 6, 2024, 8:12 AM Reply Quote 0
                        • U
                          Unoptanio @fireodo
                          last edited by Jun 6, 2024, 8:12 AM

                          @fireodo

                          đź”’ Log in to view

                          pfSensePlus24.03 2U BareMetal Asrock Industrial IMB-X1314MicroATX
                          CPU: i7-13700@5.2GHz, RAM:32GB ECC, n°2 Samsung 870EVO SATA 2.5” SSD 1TB (ZFS) Raid1
                          n°3 Intel i225-LM 2500/1000/100Mbps, n°1 NIC Intel i350-T4V2 10/100/1000 Mbps 4*GLAN, n°1 Intel X520-DA2

                          F 1 Reply Last reply Jun 6, 2024, 8:15 AM Reply Quote 0
                          • F
                            fireodo @Unoptanio
                            last edited by fireodo Jun 6, 2024, 8:16 AM Jun 6, 2024, 8:15 AM

                            @Unoptanio said in Problem with DNS resolver:

                            @fireodo

                            đź”’ Log in to view

                            Do at the CLI:

                            pkg search unbound
                            

                            what do you get?

                            Try:

                            pkg install unbound-1.19.1
                            

                            Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                            SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                            pfsense 2.7.2 CE
                            Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                            U 1 Reply Last reply Jun 6, 2024, 8:17 AM Reply Quote 0
                            • D
                              darcey @Unoptanio
                              last edited by darcey Jun 6, 2024, 8:20 AM Jun 6, 2024, 8:15 AM

                              @Unoptanio Two things to try. Disable resolution of DHCP leases and Openvpn client hostnames. Also, increase the loglevel, which might give you more clues. One other thing, leave listening/outgoing interfaces as 'all'.
                              Obviously not suggesting these as solutions but as a means to getting to the cause/culprit.

                              1 Reply Last reply Reply Quote 0
                              • U
                                Unoptanio @fireodo
                                last edited by Jun 6, 2024, 8:17 AM

                                @fireodo

                                pkg search unbound
                                

                                unbound-1.19.1 Validating, recursive, and caching DNS resolver

                                pfSensePlus24.03 2U BareMetal Asrock Industrial IMB-X1314MicroATX
                                CPU: i7-13700@5.2GHz, RAM:32GB ECC, n°2 Samsung 870EVO SATA 2.5” SSD 1TB (ZFS) Raid1
                                n°3 Intel i225-LM 2500/1000/100Mbps, n°1 NIC Intel i350-T4V2 10/100/1000 Mbps 4*GLAN, n°1 Intel X520-DA2

                                F 1 Reply Last reply Jun 6, 2024, 8:18 AM Reply Quote 0
                                • F
                                  fireodo @Unoptanio
                                  last edited by fireodo Jun 6, 2024, 8:19 AM Jun 6, 2024, 8:18 AM

                                  @Unoptanio said in Problem with DNS resolver:

                                  @fireodo

                                  pkg search unbound
                                  

                                  unbound-1.19.1 Validating, recursive, and caching DNS resolver

                                  Now do:

                                  pkg install unbound-1.19.1
                                  

                                  Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                  SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                  pfsense 2.7.2 CE
                                  Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                                  U 1 Reply Last reply Jun 6, 2024, 8:26 AM Reply Quote 0
                                  • U
                                    Unoptanio @fireodo
                                    last edited by Unoptanio Jun 6, 2024, 8:28 AM Jun 6, 2024, 8:26 AM

                                    @fireodo

                                    [2.7.2-RELEASE][admin@xxxxxxxxxxxx]/root: pkg install unbound-1.19.1
                                    Updating pfSense-core repository catalogue...
                                    Fetching meta.conf: 0%
                                    Fetching packagesite.pkg: 0%
                                    pfSense-core repository is up to date.
                                    Updating pfSense repository catalogue...
                                    Fetching meta.conf: 0%
                                    Fetching packagesite.pkg: 0%
                                    pfSense repository is up to date.
                                    All repositories are up to date.
                                    The following 1 package(s) will be affected (of 0 checked):

                                    Installed packages to be UPGRADED:
                                    unbound: 1.18.0_1 -> 1.19.1 [pfSense]

                                    
                                    [2.7.2-RELEASE][admin@Axxxxxxxxx]/root: pkg search unbound
                                    unbound-1.19.1                 Validating, recursive, and caching DNS resolver
                                    
                                    

                                    pfSensePlus24.03 2U BareMetal Asrock Industrial IMB-X1314MicroATX
                                    CPU: i7-13700@5.2GHz, RAM:32GB ECC, n°2 Samsung 870EVO SATA 2.5” SSD 1TB (ZFS) Raid1
                                    n°3 Intel i225-LM 2500/1000/100Mbps, n°1 NIC Intel i350-T4V2 10/100/1000 Mbps 4*GLAN, n°1 Intel X520-DA2

                                    F 1 Reply Last reply Jun 6, 2024, 8:29 AM Reply Quote 0
                                    • F
                                      fireodo @Unoptanio
                                      last edited by Jun 6, 2024, 8:29 AM

                                      @Unoptanio said in Problem with DNS resolver:

                                      unbound: 1.18.0_1 -> 1.19.1 [pfSense]

                                      Lets see if your trouble is gone 🤞 ✊

                                      Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                      SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                      pfsense 2.7.2 CE
                                      Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                                      U 1 Reply Last reply Jun 6, 2024, 8:30 AM Reply Quote 1
                                      • U
                                        Unoptanio @fireodo
                                        last edited by Unoptanio Jun 6, 2024, 8:33 AM Jun 6, 2024, 8:30 AM

                                        @fireodo

                                        In your opinion, why didn't I have the latest version before? I also have all the patches installed

                                        What version of pfsense is Unbound 1.18.0_1 from?

                                        đź”’ Log in to view

                                        pfSensePlus24.03 2U BareMetal Asrock Industrial IMB-X1314MicroATX
                                        CPU: i7-13700@5.2GHz, RAM:32GB ECC, n°2 Samsung 870EVO SATA 2.5” SSD 1TB (ZFS) Raid1
                                        n°3 Intel i225-LM 2500/1000/100Mbps, n°1 NIC Intel i350-T4V2 10/100/1000 Mbps 4*GLAN, n°1 Intel X520-DA2

                                        F 2 Replies Last reply Jun 6, 2024, 8:35 AM Reply Quote 0
                                        • F
                                          fireodo @Unoptanio
                                          last edited by Jun 6, 2024, 8:35 AM

                                          @Unoptanio said in Problem with DNS resolver:

                                          @fireodo

                                          In your opinion, why didn't I have the latest version before? I also have all the patches installed

                                          There are updates that are not shown on the GUI and not with Patches - they are shown only on the CLI.

                                          Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                          SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                          pfsense 2.7.2 CE
                                          Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                                          D 1 Reply Last reply Jun 6, 2024, 8:41 AM Reply Quote 1
                                          4 out of 64
                                          • First post
                                            4/64
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.