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

    simple local DNS entries (unbound "vs" dnsmasq)

    Scheduled Pinned Locked Moved DHCP and DNS
    31 Posts 4 Posters 8.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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      The only issue with registering of dhcp clients in unbound, is it restarts unbound.. So depending on how many clients you have, and how short your lease time is.. There can be some issues with unbound restarting all the time.

      I don't register dhcp clients for this reason.. All clients I want to be able to resolve have reservations - which I do register..

      Most people will not have problem with unbound restarting... Not great for your cache ;) But normally people will not see any issues with it doing that.

      But yeah sure, out of the box you have some dhcp client - called billy, you would be able to resolve billy.yourdomain.tld because of the dhcp lease being registered in unbound, via addition of it in the host file.

      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.8, 24.11

      deemeryD 1 Reply Last reply Reply Quote 0
      • deemeryD
        deemery @johnpoz
        last edited by

        @johnpoz Most of my Macs are both wired and wireless (some Apple services complain if they can't talk to WiFi). For those, I assign a fixed IP and DNS entry for the wired, and let the wireless pick up the DHCP.

        But I do have one laptop I carry around the house that is WiFi only. I suppose I should configure that as "DHCP with fixed IP Address" and the associated DNS A record entry.

        @Gertjan So your /etc/hosts is only on the PFSense box? That would meet my "define things in only 1 place" objective :-)

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

          @deemery said in simple local DNS entries (unbound "vs" dnsmasq):

          (some Apple services complain if they can't talk to WiFi).

          Huh? Just out of curiosity.. Your saying some box running some service, while it has a wired connection it puts up some error or info that wireless is not connected? So set these devices up multihomed? Both wired and wireless? That seems counterproductive to me..

          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.8, 24.11

          deemeryD 1 Reply Last reply Reply Quote 0
          • deemeryD
            deemery @johnpoz
            last edited by

            @johnpoz Not an error, but a complaint. Example the Maps application complains "better location accuracy if WiFi is enabled." (Understandable, because I believe they use 'what WiFi can I see near me' to determine location. Google does the same thing, I believe.)

            1 Reply Last reply Reply Quote 0
            • deemeryD
              deemery
              last edited by deemery

              Well darn! I thought I had this figured out.

              I cabled a machine directly to the LAN port, and set the DNS server to the PFSense box using its LAN IP address. That worked, nslookup returned values.

              So then I unplugged the LAN cable, and set the DNS server to the PFSense box on the IP address of the WAN port. That did NOT work. And I'm not sure why.... nslookup times out.

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

                Well I don't have any apple devices with wired interfaces to test this with, but wouldn't just disable of the wifi interface remove such nonsense popups, etc..

                My iphone pops up such info, when using just cell data.. But don't recall ever seeing my PC doing anything like that.. It has a wifi adapter - its just disabled, guess I can turn it on and not connect it and see if get such popups asking to enable wifi..

                edit: ok just tested this on my windows PC going to google maps and clicking my location. While the browser asks if ok to hand out info (i have it set not to let sites use location info).. Sure mentions nothing about wifi, I have my wifi adapter enabled, just not connected to anything.

                Normally that is just disabled.

                Wouldn't it be easier to just disable the hardware of your wifi, if the device is hardwired? Shoot many a laptop device will auto disable wifi when ethernet is connected.. I sure wouldn't multihome a device to remove some info about some stupid app asking me to enable wifi ;) heheh.. If I couldn't turn that off - I wouldn't use such a shitty app to be honest..

                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.8, 24.11

                NogBadTheBadN 2 Replies Last reply Reply Quote 0
                • NogBadTheBadN
                  NogBadTheBad @johnpoz
                  last edited by NogBadTheBad

                  @johnpoz

                  Wouldn't it be easier to just disable the hardware of your wifi, if the device is hardwired? Shoot many a laptop device will auto disable wifi when ethernet is connected.. I sure wouldn't multihome a device to remove some info about some stupid app asking me to enable wifi ;) heheh.. If I couldn't turn that off - I wouldn't use such a shitty app to be honest..

                  You need to switch on Wi-Fi & Bluetooth if you want to unlock your Mac from an Apple Watch if you have one.

                  Screenshot 2020-09-03 at 17.01.40.png

                  It's a right pain, I have a wired Mac that I have to enable Wi-Fi & Bluetooth on.

                  If I connect to another SSID at home, lets say my GUEST network from my phone and I haven't connected to it before, the SSID is then known on the Mac and it connects automatically, you then have to untick Automatically join this network.

                  Screenshot 2020-09-03 at 17.05.38.png

                  Apples logic on this seems a little braindead.

                  Andy

                  1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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

                    @NogBadTheBad said in simple local DNS entries (unbound "vs" dnsmasq):

                    Apples logic on this seems a little braindead.

                    Yeah that is prob an understatement...

                    If you want to do some proximity unlock thing - wouldn't bluetooth be the better option here? And really the only thing required to be on..

                    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.8, 24.11

                    NogBadTheBadN 1 Reply Last reply Reply Quote 0
                    • NogBadTheBadN
                      NogBadTheBad @johnpoz
                      last edited by

                      @johnpoz said in simple local DNS entries (unbound "vs" dnsmasq):

                      @NogBadTheBad said in simple local DNS entries (unbound "vs" dnsmasq):

                      Apples logic on this seems a little braindead.

                      Yeah that is prob an understatement...

                      If you want to do some proximity unlock thing - wouldn't bluetooth be the better option here? And really the only thing required to be on..

                      I'd have thought so :)

                      Andy

                      1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                      1 Reply Last reply Reply Quote 0
                      • NogBadTheBadN
                        NogBadTheBad @johnpoz
                        last edited by NogBadTheBad

                        @johnpoz

                        edit: ok just tested this on my windows PC going to google maps and clicking my location. While the browser asks if ok to hand out info (i have it set not to let sites use location info).. Sure mentions nothing about wifi, I have my wifi adapter enabled, just not connected to anything.

                        Normally that is just disabled.

                        I wonder if Apple also have a database of known SSIDs to GPS location, Apple Maps without Wi-Fi enabled and with from my desktop Mac:-

                        Screenshot 2020-09-03 at 17.26.59.png

                        Screenshot 2020-09-03 at 17.34.57.png

                        Andy

                        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                        1 Reply Last reply Reply Quote 0
                        • deemeryD
                          deemery
                          last edited by

                          As a quick update: I now have unbound running as expected, with the PFSense sitting (via the LAN port) on my local network.

                          Thanks again for all the help. Now I need to decide whether I tackle VPN configuration, or work on PFSense as firewall. :-)

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