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

    Multiple IPs for DNS Server

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 277 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.
    • N
      nirmalts
      last edited by nirmalts

      I am using Unbound in the Resolver mode and it works as expected. I have a problem that my OnePlus6T phone automatically adds a 8.8.8.8 as the secondary DNS, if only a single DNS server is specified. To workaround this, I added a new Virtual IP for my LAN interface (192.168.179.2), added it additionally to the DNS Resolver Incoming Interface (that is 192.168.179.1 and 192.168.179.2) and added both of them to the DHCP Server, so that the hosts have both a primary and secondary DNS. With this the phone does not add the Google DNS anymore.

      Is there a more elegant way for solving this? Will this unnecessarily slow down the DNS resolution as it is the same Unbound behind both the DNS IPs?

      EDIT:
      Additionally, I block DNS Queries to External Resolvers (https://docs.netgate.com/pfsense/en/latest/dns/blocking-dns-queries-to-external-resolvers.html) and redirect all DNS Requests to pfSense (https://docs.netgate.com/pfsense/en/latest/dns/redirecting-all-dns-requests-to-pfsense.html). This, I guess, makes the additional Virtual IP for DNS server superfluous. What do you think is a neat approach?

      1 Reply Last reply Reply Quote 0
      • kiokomanK
        kiokoman LAYER 8
        last edited by

        i have some google home stuff with embedded 8.8.8.8 on it, I only use NAT, Port Forward to redirect all query to my dns server 🤷

        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
        Please do not use chat/PM to ask for help
        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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