Multiple IPs for one DNS entry in unbound resolver override



  • We use the unbound resoler overrides as internal DNS.

    I would want to configure a pool of hosts as one DNS entry, with several IPs as result, so the internal client would connect to any of the pool servers. Yet the host override does not allow multiple IPs.

    I saw the topic "Services/DNS Resolver add host override with multiple ip addresses?" from 2016 which basically asks for the same thing, but with no solution.

    My issue could be resolved setting up a loadbalancer on the pfsense, but it seems like overkill for such a simple topic.

    Is it possible to enter multiple IPs per DNS name somehow?

    Cheers,
    Tobias



  • I "solved" the issue by enableling custom options on "Services > DNS Resolver > General Settings" and entering the IPs in the following way:

    server:
    local-data: "host.my.domain. A 192.168.1.1"
    local-data: "host.my.domain. A 192.168.1.2"
    local-data: "host.my.domain. A 192.168.1.3"
    

    It's not nice, but it works.


Log in to reply