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

    Quick question (I hope) about DNSMasq and dhcpd

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 744 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.
    • R Offline
      radad-home
      last edited by

      I think I have guessed the answer to my question, but would appreciate if someone more experienced could confirm it for me.

      I use pfsense at home with one of the cheaper prebuilt micro boxes sold in the pfsense store a couple years ago. It serves as a router, firewall, dhcp server for the couple dozen or so devices inside the house among family members and a home run business.

      Kids are getting to internet age and wanted to see if I could use OpenDNS filtering on their devices only.

      I use DNSMasq (DNS Forwarder service in the gui) with Google's dns servers defined in System –> General Setup.

      I've tried using some of the DNSMasq advanced settings to force lookups at OpenDNS servers for certain MAC addresses. DNSMasq appears to be able to do this according to my Googling.

      So I enter this in the advanced options box for the DNS forwarder:

      dhcp-mac=set:kiddns,XX:XX:XX:XX:XX:XX (actual MAC address here)
      dhcp-option=tag:kiddns,option:dns-server,208.67.222.222,208.67.220.220

      This doesn't work (kid's device does lookups at Google like normal), and I'm guessing that these particular options don't work because DNSMasq isn't actually providing dhcp, as I think it can according to the man pages.  My hope was that dhcpd and dnsmasq sort of worked together, but I'm guessing they don't

      Other advanced options work fine (like I managed to turn on logging with the appropriate command).

      My preference was to use this option instead of static mappings for the kids devices, as I think if I just give them the OpenDNS servers in a static DHCP assignment, the devices won't be aware of local hostnames on our network.

      So if anyone can confirm that this isn't possible w/DNSMasq, I'll give the static mapping a try.

      Thanks.

      1 Reply Last reply Reply Quote 0
      • C Offline
        cmb
        last edited by

        dnsmasq is strictly for DNS, we don't use its DHCP capabilities. Configure that under Services>DHCP server.

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