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

    Services/DNS Resolver add host override with multiple ip addresses?

    Scheduled Pinned Locked Moved DHCP and DNS
    7 Posts 4 Posters 5.3k 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
      Rinzwind
      last edited by

      Is it possible to add a host that points to multiple IP's?
      Seems the IP field only accepts one?
      Thanks

      1 Reply Last reply Reply Quote 0
      • M
        muswellhillbilly
        last edited by

        Have a look here:

        https://forum.pfsense.org/index.php?topic=99784.msg558933#msg558933

        You can apparently add custom entries in your dnsmasq config, as mentioned in this previous post.

        1 Reply Last reply Reply Quote 0
        • S
          srs2k
          last edited by

          @muswellhillbilly:

          Have a look here:

          https://forum.pfsense.org/index.php?topic=99784.msg558933#msg558933

          You can apparently add custom entries in your dnsmasq config, as mentioned in this previous post.

          Look on the topic header. This advice is suitable for DNSmasq setup, not for Unbound DNS Resolver.

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

            What is the use case for a fqdn that points to multiple different IPs?  But sure you can kind of cheat and do it in the custom section.

            server:
            local-data: "host.example.com A 10.10.10.1"
            local-data: "host.example.com A 10.10.10.2"
            local-data: "host.example.com A 10.10.10.3"

            singlehostmultipleip.png
            singlehostmultipleip.png_thumb

            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

            1 Reply Last reply Reply Quote 1
            • S
              srs2k
              last edited by

              Thanx for reply, johnpoz.
              About multi-IPs use case: in my multi-wan setup I bound one instance of OpenVPN service to localhost interface and added corresponding records to NAT. So now I want to use one hostname that refers to several external interfaces of my ovpn server.

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

                "I want to use one hostname that refers to several external interfaces of my ovpn server."

                Why would you be using anything that points to external IP of pfsense from inside your network?  If external your public dns should have the records that point to your public wan IPs..

                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

                1 Reply Last reply Reply Quote 0
                • S
                  srs2k
                  last edited by

                  Just trying to simulate real behavior in my test environment. So when time comes to deploy config on real hardware I want to be sure everything is OK and workin as I supposed.

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