Every month or so all my devices lose internet and the only way to connect them all back is to disconnect them from the DNS server that Pihole is running.

I set my Pihole to have a static IP but for some reason after around a month or maybe longer, it just fails. This has happened 4 times over the last while and the only fix is to essentially uninstall everything on my Pihole, disable it, and then reconfigure it from scratch again.

I’m not sure what’s going on so any help would be appreciated.

  • merikus@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    1 year ago

    Do you know if your router is acting as a DHCP server? Most do, and if you’ve set up the Pi as one without logging in and turning off your router’s, you’ve set up two conflicting DHCP servers, and that would explain your issues.

    • PerogiBoi@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      I’m assuming my router is acting like a DHCP server as it’s all on default settings and my other devices are handed an IP address something like 192.168.5.xx

      I’m not able to log into my router anymore (tried all the ways: 192.168.2.1, 1.2, 5.1, etc) so you’re probably correct that with both dhcp servers up and running they’re probably conflicting.

      • hitmyspot@aussie.zone
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        With Pihole off, look for your gateway address. That will be your router address. Are you using windows on your usual pc? Ipconfig command should show you your gateway, easily.

        Then tap that into your browser to log in to your router and deactivate dhcp from it.

        • PerogiBoi@lemmy.caOP
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          Ya that was something I tried initially, looking up the default gateway using ipconfig and then trying that address.

          It didn’t work before but maybe this time I’ll try again, ensuring that piholes not running.

      • merikus@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        I just want to reiterate what others have said: do some googling about your router make and model. Look for the instructions for “hard reset” or “factory reset”. Follow those instructions. Once you do, you should be able to find the default login online.

        Once you’re able to log into your router, I’d suggest keeping it as your DHCP server and simply following the instructions to set up a pihole with it. Everything seems to work more smoothly without the pihole as DHCP server.

        • PerogiBoi@lemmy.caOP
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          Ya a factory resets pretty much the only thing I haven’t tried yet and it’s simply because I don’t want to have to reset up all my lights and smart devices but I fear that might need to happen.

          I don’t think I have my Pihole set up to by my dhcp server, just my dns

          • merikus@lemmy.world
            link
            fedilink
            English
            arrow-up
            7
            ·
            1 year ago

            You can avoid that by using the same Wi-Fi network name and password that your current network uses. Your devices won’t know the difference.

              • merikus@lemmy.world
                link
                fedilink
                English
                arrow-up
                3
                ·
                1 year ago

                Good luck. I literally went through something similar a few weeks ago. It took a little time but my entire network runs better now. You got this!

                • PerogiBoi@lemmy.caOP
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  1 year ago

                  Thank ya! Networking is very confusing for me and I’ve been tinkering on windows and Linux machines for decades 🤪 always something to learn