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

Unbound resolver error: Can't assign requested address for 127.0.0.1

DHCP and DNS
dns dns resolver unbound configuration config
5
40
6.4k
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.
  • R
    RonpfS
    last edited by Mar 26, 2019, 6:31 PM

    In a shell or Diagnostics Command prompt, do a

    ls -al /var/unbound /var/db/pfblockerng
    
    T 1 Reply Last reply Mar 26, 2019, 6:38 PM Reply Quote 0
    • T
      themadsalvi @RonpfS
      last edited by themadsalvi Mar 26, 2019, 6:41 PM Mar 26, 2019, 6:38 PM

      @RonpfS @Gertjan
      I have placed the output below

      login-to-view
      login-to-view

      Why are the last 4 so old?

      R 1 Reply Last reply Mar 26, 2019, 6:49 PM Reply Quote 0
      • R
        RonpfS @themadsalvi
        last edited by RonpfS Mar 26, 2019, 6:52 PM Mar 26, 2019, 6:49 PM

        @themadsalvi The 2012 timestamp looks suspicious compared to mine :

        -rw-r-----   1 unbound  unbound       2459 Dec  8 19:42 unbound_control.key
        -rw-r-----   1 unbound  unbound       1330 Dec  8 19:42 unbound_control.pem
        -rw-r-----   1 unbound  unbound       2459 Dec  8 19:42 unbound_server.key
        -rw-r-----   1 unbound  unbound       1318 Dec  8 19:42 unbound_server.pem
        
        

        maybe it time to delete them, restart unbound or reboot pfsense.

        T 1 Reply Last reply Mar 26, 2019, 6:59 PM Reply Quote 0
        • T
          themadsalvi @RonpfS
          last edited by themadsalvi Mar 26, 2019, 7:03 PM Mar 26, 2019, 6:59 PM

          @RonpfS

          what is the syntax for deleting the files in the shell?
          rm -f /var/unbound/unbound_server.key?

          is that the correct syntax?

          Edit:
          It looks like it was able to recreate the files
          login-to-view

          R 1 Reply Last reply Mar 26, 2019, 7:05 PM Reply Quote 0
          • R
            RonpfS @themadsalvi
            last edited by RonpfS Mar 26, 2019, 8:06 PM Mar 26, 2019, 7:05 PM

            @themadsalvi

            Rename them in case :

            mv  /var/unbound/unbound_control.key /var/unbound/backup_unbound_control.key
            mv  /var/unbound/unbound_control.pem /var/unbound/backup_unbound_control.pem
            mv  /var/unbound/unbound_server.key /var/unbound/backup_unbound_server.key
            mv  /var/unbound/unbound_server.pem /var/unbound/backup_unbound_server.pem
            

            restart unbound, it should start, if not ... then move them back.
            to remove them it's :

            rm /var/unbound/unbound_server.pem
            

            Also it's better to access the webgui with the pfsense IP address instead of using it's domain name when stopping and restarting DNS resolver.

            T 1 Reply Last reply Mar 26, 2019, 7:07 PM Reply Quote 0
            • T
              themadsalvi @RonpfS
              last edited by themadsalvi Mar 26, 2019, 7:08 PM Mar 26, 2019, 7:07 PM

              @RonpfS
              unbound restarted ok, without any errors, but the DNSBL was still unable to reload without the error.
              pfblockerng4.txt

              I use the IP of Pfsense whenever I log into the web GUI, not sure why it uses the domain name when logging into shell

              1 Reply Last reply Reply Quote 0
              • G
                Grimson Banned
                last edited by Mar 26, 2019, 7:10 PM

                What other packages are you using? Bind will conflict with unbound and if you use Service Watchdog make sure it does not monitor unbound.

                1 Reply Last reply Reply Quote 0
                • R
                  RonpfS
                  last edited by Mar 26, 2019, 7:16 PM

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • R
                    RonpfS
                    last edited by RonpfS Mar 26, 2019, 7:17 PM Mar 26, 2019, 7:16 PM

                    Well ... I have no more clue why it doesn't reload unbound.
                    Maybe disable all feeds excepts Ads ?

                    What does ls -al /var/unbound look like now ?

                    T 1 Reply Last reply Mar 26, 2019, 7:32 PM Reply Quote 0
                    • T
                      themadsalvi @RonpfS
                      last edited by themadsalvi Mar 26, 2019, 7:37 PM Mar 26, 2019, 7:32 PM

                      @RonpfS I placed the result of the rebuilt key and pem files, as well as how /var/unbound looks in my last post(out on lunch and on mobile, sorry)

                      @Grimson the one thing I find odd is it just started this over the weekend, after a power outage. It has been fine for the last 6 months, without any issue. I do not have bind,and have made sure that unbound is not being monitored by service watchdog. I have the regularly installed packages like pfblockerng-devel, snort, etc.

                      login-to-view
                      login-to-view

                      G 1 Reply Last reply Mar 26, 2019, 7:39 PM Reply Quote 0
                      • G
                        Grimson Banned @themadsalvi
                        last edited by Mar 26, 2019, 7:39 PM

                        @themadsalvi said in Unbound resolver error: Can't assign requested address for 127.0.0.1:

                        @Grimson the one thing I find odd is it just started this over the weekend, after a power outage.

                        So did you run fsck on the filesystem? https://docs.netgate.com/pfsense/en/latest/hardware/troubleshooting-disk-check-errors-fsck.html#manually-run-fsck

                        I have the regularly installed packages like pfblockerng-devel, snort, etc.

                        There are no regularly installed packages, a regular install comes without additional packages. So always mention the packages you are using when asking for help.

                        If following the above to check the filesystem doesn't work grab a config backup and do a fresh install to make sure the installation is in a good state.

                        T 1 Reply Last reply Mar 26, 2019, 7:50 PM Reply Quote 0
                        • T
                          themadsalvi @Grimson
                          last edited by Mar 26, 2019, 7:50 PM

                          @Grimson iplaced some screenshots from my mobile in my previouspost. Fsck says that /dev/zroot/ROOT cannot be opened since there is no file or directory present

                          G 1 Reply Last reply Mar 26, 2019, 7:55 PM Reply Quote 0
                          • G
                            Grimson Banned @themadsalvi
                            last edited by Mar 26, 2019, 7:55 PM

                            @themadsalvi said in Unbound resolver error: Can't assign requested address for 127.0.0.1:

                            @Grimson iplaced some screenshots from my mobile in my previouspost. Fsck says that /dev/zroot/ROOT cannot be opened since there is no file or directory present

                            https://www.freebsd.org/doc/handbook/zfs-zpool.html#zfs-zpool-status
                            https://www.freebsd.org/doc/handbook/zfs-zpool.html#zfs-zpool-scrub

                            T 1 Reply Last reply Mar 26, 2019, 8:04 PM Reply Quote 0
                            • T
                              themadsalvi @Grimson
                              last edited by Mar 26, 2019, 8:04 PM

                              @Grimson
                              login-to-view

                              It looks like it found no errors in the pool. I even ran the scrub with no errors found.

                              1 Reply Last reply Reply Quote 0
                              • G
                                Grimson Banned
                                last edited by Mar 26, 2019, 8:11 PM

                                To be honest, from what I can see your installation is a mess. For example you have both snort and suricata installed. Best suggestion is for you to document what you are currently using (and what not). Then start with a fresh clean install, don't restore the config do the setup bit by bit yourself and watch where it breaks.

                                T 1 Reply Last reply Mar 26, 2019, 8:22 PM Reply Quote 0
                                • T
                                  themadsalvi @Grimson
                                  last edited by Mar 26, 2019, 8:22 PM

                                  @Grimson I will have to do that when I get home. I guess I have been lucky in that it has worked flawlessly for the last 6 months(SInce I installed it). It was bound to break eventually. Strangely, I can still surf the internet fine(I am writing from the network that has Pfsense firewall), and use streaming services like netflix.

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    RonpfS
                                    last edited by Mar 26, 2019, 8:28 PM

                                    You can always try to remove pfblocker lists by unticking pfBlockerNG & Keep Settings :

                                    Note: To clear all downloaded lists, uncheck these two checkboxes and 'Save'. Re-check both boxes and run a 'Force Update|Reload'

                                    T 1 Reply Last reply Mar 26, 2019, 8:50 PM Reply Quote 0
                                    • T
                                      themadsalvi @RonpfS
                                      last edited by Mar 26, 2019, 8:50 PM

                                      @RonpfS Uninstall, and then installed. This happened

                                      login-to-view

                                      R 1 Reply Last reply Mar 26, 2019, 9:31 PM Reply Quote 0
                                      • G
                                        Gertjan
                                        last edited by Mar 26, 2019, 9:18 PM

                                        Saw this :

                                        [ Windows_hosts_block ]		 Downloading update [ 03/26/19 12:04:08 ] .. 404 Not Found
                                        

                                        Possible to remove that feed ?
                                        (or am I to late already ?)

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

                                        R T 2 Replies Last reply Mar 26, 2019, 9:32 PM Reply Quote 0
                                        • R
                                          RonpfS @themadsalvi
                                          last edited by Mar 26, 2019, 9:31 PM

                                          @themadsalvi So that is the output of a Force Update after Disabling pfblockerng and Save settings,
                                          Now when you tick both setttings, do a Force Update, then a Force Reload all.

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