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

    (Unbound) Multiple A Records Returned, Wondering how to Suppress Some

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 791 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.
    • G Offline
      geudrik
      last edited by

      Hello Forums!

      I'm running a multi-network setup. For simplicity, lets say LAN and Management. I have firewall rules set up that allow me to access the Management .1 address (router) Web Configurator (good). The issue though, is that on my LAN host, when I dig for the hostname, I get two A records back. This ultimately means that when I try to resolve (and I want the Management IP), my browser chokes on the first IP in the list (the LAN IP).

      I understand why - I have a manual override in place, as well as the option for registering dhcp leases.

      My question is simply: How do I either
      a) Reorder the returned results so that the first A is the management IP (by default, the first record will be for the IP on the network that the host is querying from). OR
      b) Squelch the LAN IP all together?

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

        So you have 2 different networks?  And your registering or have both addresses in play?  Just use 2 different names via you override.  This has come up a few times before.

        Here is one thread for example, you can do this with dnsmasq or bind and views where you can return an address based upon where the query came from.  But I am not aware of a way to do this in unbound without running multiple instances of it and listening on different interfaces with different records, etc.

        https://forum.pfsense.org/index.php?topic=106872.0

        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 25.07.1 | Lab VMs 2.8.1, 25.07.1

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