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

    DNS Resolver (unbound) / Can't change config

    Scheduled Pinned Locked Moved DHCP and DNS
    61 Posts 29 Posters 69.3k 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.
    • S
      shlazzer
      last edited by

      Just ran into this on 2.3.4-RELEASE (amd64)

      Haven't had a chance to try any of the suggestions earlier in the thread, but this is a relatively new box that hasn't been around long enough to have legacy configs. Has always been on a 2.3.x release.

      A confirmed solution would be really helpful.

      1 Reply Last reply Reply Quote 0
      • Y
        yarick123
        last edited by

        @Veldkornet:

        …
        The below does indeed work once off, so I need to run it every time I change the configuration.

        mkdir /var/unbound/test/
        cp -ax /var/unbound/*.{key,pem} /var/unbound/test/
        

        Is there a bug logged for it already?

        works for me.

        1 Reply Last reply Reply Quote 0
        • C
          compdoc
          last edited by

          This just happened to me, although my error was "/var/unbound/test/root.key" does not exist. I tried creating the test directory and copying the root.key there, but there was no change. I still couldn't save the settings for DNS Resolver.

          However, I seemed to fix it by running the command: unbound-control-setup

          I'd be interested to hear if this helped anyone else.

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan
            last edited by

            This issue is known, as the thread implies.
            But 2.3.5 is old and fading out : 32 hardware is hard to find these days - some devices are kept artificially alive, mostly in museums.
            Consider the issue as closed.

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

            C 1 Reply Last reply Reply Quote 0
            • C
              compdoc @Gertjan
              last edited by

              I am running 64 bit, 2.4.4-RELEASE-p1

              1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan
                last edited by

                In that case, the issue is totally new - not related to what happened as described 2 years ago - with old pfSense versions.

                Maybe some left-overs from an ancient install ?
                Did you install 2.4.4-P1 from scratch, or did you upgrade from an older version ?

                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
                • Z
                  zimt
                  last edited by

                  very same issue here, brand new hardware, latest version 2.4.4 from scratch, no import of former config

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

                    Same issue? From a thread from 2 years ago... Please post your exact error your seeing.. What else your running other than clean out of the box pfsense.

                    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
                    • Z
                      zimt
                      last edited by

                      When I try to change any settings in unbound I get this error message, can't even disable it :

                      The following input errors were detected:
                      The generated config file cannot be parsed by unbound. Please correct the following errors:
                      /var/unbound/test/root.key: No such file or directory
                      [1550262886] unbound-checkconf[60539:0] fatal error: auto-trust-anchor-file: "/var/unbound/test/root.key" does not exist in chrootdir /var/unbound
                      

                      My install worked fine for maybe two weeks, this issue just appeared. Not sure what this is related to.
                      I did disable pfb_dnsbl and pfb_filter but that didn't solve the issue. Also all the other tricks mentioned in this thread didn't work for me. Didn't try to reboot yet, hopefully tonight...

                      Here are all the services running:

                      Service 	Description 	
                      avahi 	Avahi mDNS/DNS-SD daemon 	
                      dhcpd 	DHCP Service 	
                      dpinger 	Gateway Monitoring Daemon 	
                      ntopng 	ntopng Network Traffic Monitor 	
                      ntpd 	NTP clock sync 	
                      openvpn 	OpenVPN server: home 	
                      pfb_dnsbl 	pfBlockerNG DNSBL service 	
                      pfb_filter 	pfBlockerNG firewall filter service 	
                      radvd 	Router Advertisement Daemon 	
                      snort 	Snort IDS/IPS Daemon 	
                      sshd 	Secure Shell Daemon 	
                      syslogd 	System Logger Daemon 	
                      telegraf 	Telegraf daemon 	
                      unbound 	DNS Resolver
                      
                      BBcan177B 1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator
                        last edited by johnpoz

                        @zimt said in DNS Resolver (unbound) / Can't change config:

                        I did disable pfb_dnsbl and pfb_filter

                        So its not a clean install, you have atleast that package installed. What else? I see avahi, ntop, snort --> So clearly its not related to a problem from 2 years ago.

                        I would suggest you open a thread in the pfblocker section and yell for @BBcan177 because more likely then not its related to your unbound 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
                        • RonpfSR
                          RonpfS
                          last edited by RonpfS

                          Well pfblockerNG operate with the assumption that things are in /var/unbound/
                          Disable DNSBL then see if your mod works.

                          2.4.5-RELEASE-p1 (amd64)
                          Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                          Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                          1 Reply Last reply Reply Quote 0
                          • Z
                            zimt
                            last edited by

                            I disabled both, pfb_dnsbl and pfb_filter, that didn't help. I don't think it has anything to do with it.

                            RonpfSR 1 Reply Last reply Reply Quote 0
                            • RonpfSR
                              RonpfS
                              last edited by RonpfS

                              Disabling the pfblockerng services doesn't disable DNSBL.

                              2.4.5-RELEASE-p1 (amd64)
                              Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                              Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                              1 Reply Last reply Reply Quote 0
                              • RonpfSR
                                RonpfS @zimt
                                last edited by

                                @zimt said in DNS Resolver (unbound) / Can't change config:

                                I don't think it has anything to do with it.

                                DNSBL modify unbound.conf.

                                2.4.5-RELEASE-p1 (amd64)
                                Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                                Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                                1 Reply Last reply Reply Quote 0
                                • Z
                                  zimt
                                  last edited by

                                  rebooting resolved the issue, hope it doesn't reappear.

                                  1 Reply Last reply Reply Quote 0
                                  • RonpfSR
                                    RonpfS
                                    last edited by

                                    That's one way to recreate the root.key 😜

                                    2.4.5-RELEASE-p1 (amd64)
                                    Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                                    Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                                    1 Reply Last reply Reply Quote 0
                                    • Z
                                      zimt
                                      last edited by

                                      doing it manually as indicated higher up in this thread didn't solve the problem for me.

                                      A 1 Reply Last reply Reply Quote 0
                                      • BBcan177B
                                        BBcan177 Moderator @zimt
                                        last edited by

                                        @zimt said in DNS Resolver (unbound) / Can't change config:

                                        When I try to change any settings in unbound I get this error message, can't even disable it :
                                        The following input errors were detected:
                                        The generated config file cannot be parsed by unbound. Please correct the following errors:
                                        /var/unbound/test/root.key: No such file or directory
                                        [1550262886] unbound-checkconf[60539:0] fatal error: auto-trust-anchor-file: "/var/unbound/test/root.key" does not exist in chrootdir /var/unbound

                                        Try to run the following command to rebuild the missing root.key file:

                                        unbound-anchor -a /var/unbound/root.key
                                        

                                        "Experience is something you don't get until just after you need it."

                                        Website: http://pfBlockerNG.com
                                        Twitter: @BBcan177  #pfBlockerNG
                                        Reddit: https://www.reddit.com/r/pfBlockerNG/new/

                                        B 1 Reply Last reply Reply Quote 1
                                        • A
                                          apara @zimt
                                          last edited by apara

                                          I am having exactly the same issue on the latest 2.4.4-RELEASE-p3 (amd64). When I go to change the DNS Resolver configuration, just pressing Save without any changes produces:

                                          The following input errors were detected:

                                          The generated config file cannot be parsed by unbound. Please correct the following errors:
                                          /var/unbound/test/root.key: No such file or directory
                                          [1561931530] unbound-checkconf[36495:0] fatal error: auto-trust-anchor-file: "/var/unbound/test/root.key" does not exist in chrootdir /var/unbound

                                          For some reason, it feels that the *.pem and *.key files are not being copied from the parent directory as they definitely exist in the /var/unbound directory.

                                          Does anyone have a solution?

                                          1 Reply Last reply Reply Quote 0
                                          • R
                                            RusG3G
                                            last edited by RusG3G

                                            I am also getting this error in a brand new SG5100;

                                            The following input errors were detected:

                                            The generated config file cannot be parsed by unbound. Please correct the following errors:
                                            /var/unbound/test/root.key: No such file or directory
                                            [1572274588] unbound-checkconf[68733:0] fatal error: auto-trust-anchor-file: "/var/unbound/test/root.key" does not exist in chrootdir /var/unbound

                                            I ran "unbound-anchor -a /var/unbound/root.key" rebooted and the issue is resolved

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