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

    Using CARP primary AND backup for DNS?

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    5 Posts 3 Posters 486 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.
    • T
      tobiasm
      last edited by

      The CARP documentation says to use the CARP IP for the DNS server in the DHCP settings: https://docs.netgate.com/pfsense/en/latest/highavailability/configuring-high-availability.html#set-dhcp-server-to-use-carp-lan-ip-address

      I am curious, what is the reason for this (as opposed to listing both of the non-CARP IPs for the primary and failover as DNS servers)? Wouldn't having both servers listed lead to marginally better behavior during a failover event, as well as help keep the cache primed on the backup?

      In any case, is there a reason NOT to list both IPs explicitly?

      1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire
        last edited by

        I've thought about this also. If both are listed then if one router is down, then Linux at least will go in order, so maybe using the CARP IP would prevent that (2s?) delay? In our data center we set the backup router as the primary DNS.

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote ๐Ÿ‘ helpful posts!

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          Timeouts. If both are listed and the primary is down, clients which do not perform parallel queries will be forced to wait 45 seconds for each DNS query to timeout before they ask the second server.

          Just use the CARP VIP, there is nothing but pain and sadness to be gained by using both individually.

          Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • T
            tobiasm
            last edited by

            Understood, thank you for the quick and thoughtful explanation!

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by jimp

              In other words:

              • Using the CARP VIP you get guaranteed failover and consistent behavior across all client platforms.
              • Using both you are completely reliant upon the client to behave in specific ways, which only gets worse on networks with many different types of clients.

              Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

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