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

    DNS Overrides not working on DHCP?

    Scheduled Pinned Locked Moved DHCP and DNS
    5 Posts 2 Posters 1.0k 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.
    • C Offline
      CaptainElmo
      last edited by

      Hello everyone.

      I am using the DNS Resolver (unbound) in NON-forwarding mode. I have configured the DHCP server in pfSense with a different DNS server to hand out to DHCP clients, but the DHCP server stubbornly hands out its own interface IP instead for the DNS server.

      Screenshots attached showing the DHCP config screen along with the DHCP client results. Based on the descriptions and documentation I've read it would seem that this DHCP config should hand out the alternate DNS server entered, but that's not happening.

      How do I get the DHCP server to hand out a different DNS server than it's own self when the resolver is enabled? I have an internal DNS proxy filter that I want to run all DNS queries through and then have the proxy forward those queries on to the resolver.

      Thanks!
      DHCPConfig.jpg
      DHCPConfig.jpg_thumb
      DHCPResult.jpg
      DHCPResult.jpg_thumb

      1 Reply Last reply Reply Quote 0
      • DerelictD Offline
        Derelict LAYER 8 Netgate
        last edited by

        Are you sure that's not static in the client?

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

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

          Positive it's not static. I'm getting the same result on multiple clients - all confirmed not statically assigned.

          More info: This is happening even with both the forwarder and resolver disabled. It seems the DHCP server is giving itself out as the DNS server even if it's not able to resolve or forward queries at all.

          I've tried manually deleting all DHCP leases and restarting the service multiple times. I can't seem to shake it's insistence on handing itself out as the DNS server.

          1 Reply Last reply Reply Quote 0
          • DerelictD Offline
            Derelict LAYER 8 Netgate
            last edited by

            Don't know.  Always works for me.  Another DHCP Server on the network perhaps?

            /var/dhcpd/etc/dhcpd.conf?  What's in the config for that subnet?

            I don't think it's obvious the DHCP server is handing out the wrong thing at all.  Wireshark it.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

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

              I rebooted the entire router and now it's working as expected. I guess something was just stuck so hard that only a hard reboot knocked it loose.

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