Hy everyone, I have a PiHole instance running on my home server, and I changed my router (Fritz box) DNS in order to use my PiHole. Everything runs great.

I was wondering if I can put another DNS provider on my “alternative DNS server” in my router, in order to have a fallback alternative in case my server is down, or if I should avoid it.

I’m asking this because I don’t know if the request will be handled in parallel between the two DNS provider (that would make my PiHole useless) or not. Thank you.

  • dorkageEnglish
    arrow-up
    3
    arrow-down
    0
    ·
    9 months ago
    link
    fedilink

    I run multiple pinholes using keepalived. Then I only use one DNS in my DHCP server. Second pihole will seemlessly take over if the first one goes down whilst using the original DNS address.

    Work quite well. I had to learn the hard way that only using a single pihole was just asking for my partner to be mad when it didn’t work / when I was doing server maintenance. Now I have multiple and they can all seemlessly take over if any my server nodes are down

    • Darkassassin07English
      arrow-up
      1
      arrow-down
      0
      ·
      9 months ago
      link
      fedilink

      How do you manage automatically transferring the ip of the main rpi to the backup rpi when the first disappears?

        • Darkassassin07English
          arrow-up
          1
          arrow-down
          0
          ·
          9 months ago
          link
          fedilink

          Don’t you then run into MAC conflicts?

          How do you keep both on the network?

          • HACKthePRISONS
            arrow-up
            0
            arrow-down
            3
            ·
            9 months ago
            link
            fedilink

            I’m just spit balling here: backup pi pings munute-ly main pi. if main pi is down 2 pings, it resets Mac and reboots network interface.

            • Darkassassin07English
              arrow-up
              1
              arrow-down
              0
              ·
              9 months ago
              link
              fedilink

              Then when the main PI returns it creates a conflict

              • HACKthePRISONS
                arrow-up
                0
                arrow-down
                2
                ·
                9 months ago
                link
                fedilink

                oh hm

                hmmm

                ok. both pis know the live IP and the backup IP, and have the same config: cold boot into backup I and ping live ip

    • Lordjohn68English
      arrow-up
      1
      arrow-down
      0
      ·
      9 months ago
      link
      fedilink

      Keepalived is the way. Gravity sync keeps everything in line. Works like a charm. I migrated yesterday from wifi to wired and cannot be happier. As a bonus did not need to reconfigure pivpn.