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

    Override Hosts not working with DNS Resolver

    Scheduled Pinned Locked Moved General pfSense Questions
    1 Posts 1 Posters 254 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
      capone
      last edited by capone

      Hi all,

      In PFsense, I have several servers that get a static IP through the DHCP server. I have one server in particular that I would like to add a host override for in the DNS resolver...and I would like to have the other servers' hostname registered in the DNS resolver.

      So, I've ticked the box: Register DHCP static mappings in the DNS Resolver.

      It works, I can resolve the hostnames of all the servers as expected.

      Then I add a hostname override.

      Save and apply changes.

      When I run nslookup and use the PFsense IP address as the server.

      NSlookup returns two IP address for the server that I created a hostname override for.

      It returns the DHCP IP 1st, and the override IP 2nd.

      EG: server.mydomain.com returns
      Server: [10.x.x.1]
      Address: 10.x.x.1

      Name: server.mydomain.com
      Addresses: 10.x.x.168 <- DHCP static IP
      10.x.x.1 <- Override IP address

      When I untick, " Register DHCP static mappings in the DNS Resolver." ... Save and Apply.

      The nslookup returns the override IP as expected.

      EG: server.mydomain.com returns
      Server: [10.x.x.1]
      Address: 10.x.x.1

      Name: server.mydomain.com
      Addresses: 10.x.x.1 <- Override IP address

      Is this normal? It is possible to get pfsense to return only the override IP? instead of both IPs?

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