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

    Unbound providing LAN nameservice? Please post config!

    Scheduled Pinned Locked Moved DHCP and DNS
    10 Posts 3 Posters 1.7k 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.
    • M
      MMacD
      last edited by

      How many people, if any, have unbound successfully providing nameservice for the boxes on your LAN?  If you do, please post the relevant parts of your config, because I'm obviously missing out something.

      My setup, which doesn't provide anything including forwarding, is

      ___Unbound0.png
      ___Unbound0.png_thumb
      ___Unbound1.png
      ___Unbound1.png_thumb

      1 Reply Last reply Reply Quote 0
      • M
        MMacD
        last edited by

        It's not even doing forwarding.

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

          How would it do anything if all its listening on is localhost??

          If you want it to provide services to LAN, then it would need to listen on lan..  And then most likely you would set it to only query on WAN..  So for example here is that section of my config.

          resolver.png
          resolver.png_thumb

          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
          • M
            MMacD
            last edited by

            @johnpoz:

            If you want it to provide services to LAN, then it would need to listen on lan..  And then most likely you would set it to only query on WAN..  So for example here is that section of my config.

            Exactly what I thought!  But it refused to let me, saying

            _The following input errors were detected:

            This system is configured to use the DNS Resolver as its DNS server, so Localhost or All must be selected in Network Interfaces._

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

              Never seen such error… You can pick and choose what you want... Here change it..

              Yes if your having pfsense use the resolver, then it needs to listen on localhost as well as your lan and or other interfaces..

              hold control to pick multiple interfaces.

              Should prob put in a request to get that error reworded.. You have to run on at min localhost if you have pfsense using the resolver, etc..  I just duplicated it by just trying to use just lan... Bad wording..  Should prob say something like

              This system is configured to use the DNS Resolver as its DNS server, so Localhost must be one of the multiple interfaces selected, or All must be selected.

              onlylanandlocalhost.png
              onlylanandlocalhost.png_thumb

              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
              • M
                MMacD
                last edited by

                Apparently both XP and 7 are broken in some non-obvious way.  Nslookup fails to get anything back from the firewall, and the firewall isn't forwarding any lookups from XP or 7.

                But I started up my toy webserver, a fbsd machine, and everything works as expected:  nslookup gets the correct return from the firewall, I can ping everything on the lan, and non-local requests get forwarded.  And traceroute assures me that yes, it's the firewall that's doing the work.  So I don't know what the @#%! is going on with XP & 7.

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

                  I use windows 7, while maybe there is something up with your install (infected?) windows 7 has no issues doing queries to unbound running on pfsense..  And I can fire up a xp machine and it works just fine too.

                  And you do understand that unbound does not forward out of the box, its default mode is resolver - which doesn't forward anything anywhere, it works its way down from roots to the authoritative server of the domain your wanting to query a record for..

                  windows7xpdns.png
                  windows7xpdns.png_thumb

                  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
                  • M
                    MMacD
                    last edited by

                    @johnpoz:

                    I use windows 7, while maybe there is something up with your install (infected?) windows 7 has no issues doing queries to unbound running on pfsense..  And I can fire up a xp machine and it works just fine too.

                    I can't imagine what it could be – 7 is a fresh install on a new disc on momcat, and XP on slowcat works well otherwise.

                    And you do understand that unbound does not forward out of the box, its default mode is resolver - which doesn't forward anything anywhere, it works its way down from roots to the authoritative server of the domain your wanting to query a record for..

                    I have the "forward" box checked, which presumably causes it to forward my toy webserver's requests, since I don't have any other nameservers declared in /etc/resolv.conf

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

                      dude are you ever going to show some info to actually work with??  Like say a query and what you get back?  From say your windows 7 box..  A sniff on pfsense showing your query from your client??  Something!

                      This is really basic stuff to troubleshoot..  But without something to go off of it all becomes PEBKAC…

                      In your other thread all you show is doing queries to 4.2.2.1...  That has NOTHING to do with pfsense or unbound at all...  So no shit stuff is not going to work if you can not even figure out how to query 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
                      • P
                        pfsensory
                        last edited by

                        @MMacD:

                        @johnpoz:

                        If you want it to provide services to LAN, then it would need to listen on lan..  And then most likely you would set it to only query on WAN..  So for example here is that section of my config.

                        Exactly what I thought!  But it refused to let me, saying

                        _The following input errors were detected:

                        This system is configured to use the DNS Resolver as its DNS server, so Localhost or All must be selected in Network Interfaces._

                        I don't know if you ever sorted this out, but I received the same message when I was making changes to DHCP resolver.  I was able to fix this by choosing localhost for "network interfaces" and de-selcting localhost for "outgoing network interfaces".  Maybe this would help you too?

                        (I originally posted that in this thread: https://forum.pfsense.org/index.php?topic=106305.msg593028#msg593028)

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