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

    Unbound package - enable forwarding still no-op

    Scheduled Pinned Locked Moved pfSense Packages
    18 Posts 2 Posters 3.2k 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.
    • D
      doktornotor Banned
      last edited by

      @wagonza:

      Let me know if it works for you.

      OK, it does not. However, I guess we are getting somewhere, since it turns out now why it did not work in the first place with previous package version, the list of DNS servers turns out to be empty.

      
      $ unbound-control forward
      
      $  unbound-control list_forwards
      . IN forward:
      
      

      Huh… Call me confused. Have you tested this with 2.1.1 prerelease version? I guess something got changed there?

      1 Reply Last reply Reply Quote 0
      • W
        wagonza
        last edited by

        Whats the contents of /etc/resolv.conf?

        I added a safety belt to avoid adding an empty forward configuration.

        Follow me on twitter http://twitter.com/wagonza
        http://www.thepackethub.co.za

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by

          @wagonza:

          Whats the contents of /etc/resolv.conf?

          
          domain testdomain.local
          nameserver 127.0.0.1
          nameserver 217.31.204.130
          nameserver 193.29.206.206
          
          
          1 Reply Last reply Reply Quote 0
          • W
            wagonza
            last edited by

            Ok i think i found the problem. Do you have any /var/etc/nameserver_* files which might have be empty?

            Follow me on twitter http://twitter.com/wagonza
            http://www.thepackethub.co.za

            1 Reply Last reply Reply Quote 0
            • D
              doktornotor Banned
              last edited by

              @wagonza:

              Ok i think i found the problem. Do you have any /var/etc/nameserver_* files which might have be empty?

              Hmmm, afraid no such thing there.

              
              $ ls -la /var/etc/nameserver_*
              ls: No match.
              
              
              1 Reply Last reply Reply Quote 0
              • W
                wagonza
                last edited by

                Weird. The name servers are returned by either of two functions get_dns_servers() or get_nameservers(). The latter is if the DNS servers are overridden by DHCP. So I would assume yours is handled by get_dns_servers() - which reads the contents of resolv.conf and returns the values.

                If you go to 'Diagnostics -> Command prompt' and execute the following PHP code, it should return the name servers you listed.

                
                print_r(get_dns_servers());
                
                

                Follow me on twitter http://twitter.com/wagonza
                http://www.thepackethub.co.za

                1 Reply Last reply Reply Quote 0
                • D
                  doktornotor Banned
                  last edited by

                  @wagonza:

                  If you go to 'Diagnostics -> Command prompt' and execute the following PHP code, it should return the name servers you listed.

                  
                  print_r(get_dns_servers());
                  
                  

                  Yes, that works…

                  
                  Array
                  (
                      [0] => 127.0.0.1
                      [1] => 217.31.204.130
                      [2] => 193.29.206.206
                  )
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • W
                    wagonza
                    last edited by

                    Ok so thats right - i pushed a patch which swopped some logic around so if you can just reinstall the package and let me know if its any better.

                    Follow me on twitter http://twitter.com/wagonza
                    http://www.thepackethub.co.za

                    1 Reply Last reply Reply Quote 0
                    • D
                      doktornotor Banned
                      last edited by

                      @wagonza:

                      i pushed a patch which swopped some logic around so if you can just reinstall the package and let me know if its any better.

                      Excellent… all good now!  8)

                      1 Reply Last reply Reply Quote 0
                      • W
                        wagonza
                        last edited by

                        Brilliant - thanks for the help in trouble shooting.

                        Follow me on twitter http://twitter.com/wagonza
                        http://www.thepackethub.co.za

                        1 Reply Last reply Reply Quote 0
                        • D
                          doktornotor Banned
                          last edited by

                          Thanks a lot for quick fix!

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