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.

  • MigratingtoLemmy@lemmy.world
    link
    fedilink
    English
    arrow-up
    34
    arrow-down
    3
    ·
    edit-2
    1 year ago

    If you can’t access your server and your router’s web interface, that’s a subnetting/DHCP allocation issue. Nothing to do with Pi-Hole.

    For reference, there’s 2 ways to allocate static addresses to devices:

    1. Define DHCP range, and configure the application to use a static address outside of the allocation pool.
    2. Give out static addresses by MAC.

    “Skill issue bro” /s

      • fuzzy_feeling@programming.dev
        link
        fedilink
        English
        arrow-up
        13
        arrow-down
        1
        ·
        1 year ago

        I vote for 60 day lease time, iirc the clients try to get a new lease when half of the time is over, so they can keep the ip.

        • NaibofTabr@infosec.pub
          link
          fedilink
          English
          arrow-up
          4
          ·
          1 year ago

          Maybe, but I suspect it’s working like this:

          • Pi boots then requests locally configured IP from DHCP server
          • DHCP server grants 30 day lease for requested IP
          • Pihole runs fine for awhile, DNS requests are properly handled
          • IP lease expires, DHCP server returns IP to available address pool but doesn’t reassign it to anything yet
          • time passes
          • Random wireless device connects to router, DHCP server assigns IP to new device
          • DNS requests to Pihole fail because the IP was assigned to the recently connected wireless device

          This would explain why Pihole appears to cause problems every month, sometimes a little longer.

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

      Definitely a skill issue haha. I’m brand new to this stuff so I’m trying to learn as fast as possible. Appreciate the help and the explanations!

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

        It’s alright, most computer geeks (even professional ones) can’t even figure out how IP addressing works. That’s why networking is its own sub group in enterprise environments.

        • Scott@lem.free.as
          link
          fedilink
          English
          arrow-up
          1
          arrow-down
          4
          ·
          1 year ago

          If you’re a computer geek (even a professional one) and struggle with IP addressing, you won’t be having much of a career.

  • eating3645@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    1 year ago

    Give an alternative a go, see if you have better luck. There’s adguard home, blocky, and Technitium DNS for you to consider.

    Alternatively, the window trick should work.

    • Andi@feddit.uk
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I had reliability issues with PiHole and moved to AdGuardHome a couple of years ago. It has never, ever crashed and the updates takes a couple of seconds. It rocks.

  • redcalcium@lemmy.institute
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    How do you set the static IP for the pi? From your router’s DHCP server, or from pi’s network configuration?

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

      I set it directly on the computer hosting Pi since my router doesn’t let me log into it.

      • 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.

          • Osirus@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            3
            ·
            edit-2
            1 year ago

            Plug a pc straight into the router and do an ipconfig /all. It will tell you the router gateway if you don’t have a static ip. Go to the gateway ip and turn off dhcp.

            • Osirus@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              1 year ago

              Then go to your server dhcp and put a dhcp exclusion for the pi hole ip and anything else you have static’ed

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

              This doesn’t work for me unfortunately :/ I suspect my router needs a factory reset since I’m not able to log into it at all

          • merikus@lemmy.world
            link
            fedilink
            English
            arrow-up
            4
            ·
            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
                6
                ·
                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.

          • 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
              2
              ·
              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.

          • Voroxpete@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            3
            ·
            1 year ago

            The fact you’re not able to log into your router is the first problem you need to solve here. If you’re having network issues, the router is always the first thing that needs to be working perfectly. Otherwise whatever else is going on is probably being affected by the router in some way.

            What you’re doing right now is sort of like saying “Hey, does anyone know how to get this bad smell out of my car? Nothing I do seems to work. Oh, BTW, the engine is on fire, it’s been like that for a while, I don’t know how to put it out. Anyway, so the thing with this smell is…”

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

              My take was that there was some corrupted setting that wouldn’t let me access the router as I’m having no other network issues but you’re right in that I wouldn’t have any of these issues if I could just log into the router and actually properly set a static IP.

              Figured I’d ask the void if they recognized the smell since there are people much smarter than me out there

      • Doctor xNo@r.nf
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        I have a 5G CGNAT ISP router, but distanced myself from it by adding my own full access router connected via a LAN cable to my ISP one and using its wifi instead of the ISP’s wifi. This prevents the ISP router from stealing IP addresses (it can literally do whatever it wants to its IP ranges as long as it feeds internet through the LAN cable), and gives me full control over local network IP addresses (as I also am not provided any login to the ISP router).

        Might be an extra NAT, but that kinda becomes moot being behind CGNAT that can’t open external ports anyway.

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

          I used to do something similar by having another router and my main one in bridging mode but this new router from my ISP seems to be idiot proof and won’t let me access the login screen. A factory reset is in my future I think.

      • redcalcium@lemmy.institute
        link
        fedilink
        English
        arrow-up
        9
        ·
        1 year ago

        There is a chance that the dhcp server on your router actually hand out the same ip address to other client, causing the pi to become inaccessible due to ip address conflict. Assigning the static ip address from the router will prevent this issue.

        If your router is from your ISP, maybe you can ask them to give you access to the lan configuration options. ISP routers usually have two accounts, the full admin account which usually aren’t handed out to their subscribers, and a user account that would let their subscriber configure various lan settings.

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

          At one point my router would let me log into it using its IP address but now it does not let me no matter what IP I type.

          This all would have been much simpler had I been able to log in and set a static IP on my home server from there and disabled DHCP 🤪

          • redcalcium@lemmy.institute
            link
            fedilink
            English
            arrow-up
            3
            ·
            1 year ago

            What’s the router’s brand and model? Googling it might give you the answer. The administrative page for the router might be hosted on custom ports instead of port 80.

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

              Yeah I tried doing that initially. It’s a Bell Homehub3000 and all the login addresses suggested online that I tried were no dice. I probably have to factory reset the router but that would mean redoing my entire smarthome and IOT setup which I’m really not looking to do 😅

              • redcalcium@lemmy.institute
                link
                fedilink
                English
                arrow-up
                4
                ·
                1 year ago

                That’s suck. I actually had similar issues where the router’s login page would refuse to log me in, even though I actually can login to the router using SSH. No other fix but to reset the router and start again, but time I export the router’s settings (most router has settings import/export feature) after I got everything setup so I don’t have to do it from scratch when the router crap out again.

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

                  For me it’s as if there is no router login page which is kiiiiiilling me haha. All of my silly issues would be gone if I could just set a hard static IP for my server 😄

  • Dhar@lemmy.ca
    link
    fedilink
    English
    arrow-up
    29
    ·
    1 year ago

    First thought: Is your PiHole’s static IP within the range of addresses your DHCP server hands out?

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

      My Pihole lives on my server computer and so the DNS is the same IP address as that computer

      • whynotzoidberg@lemmy.world
        link
        fedilink
        English
        arrow-up
        29
        ·
        1 year ago

        Irrelevant, unless your pihole is running on your DHCP server. Does the server running pihole have a statically assigned IP that is within the DHCP range being assigned to other devices?

        Static addresses should be outside of your DHCP range, ideally. If you can’t change the range, and assuming sequential handouts of IPs from your router among other things, you can try setting the server’s static IP to a bigger number.

        • ArbiterXero@lemmy.world
          link
          fedilink
          English
          arrow-up
          17
          arrow-down
          2
          ·
          1 year ago

          The static address should be assigned from the dhcp server.

          Assigning a static address on the nic is a recipe for issues.

          Set up a static assignment in your dhcp server.

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

            I’m not able to log into my router in order to edit any of my dhcp settings 😭 little caveat there.

            • ArbiterXero@lemmy.world
              link
              fedilink
              English
              arrow-up
              18
              ·
              1 year ago

              Then that’s likely your issue.

              Your router occasionally gives out the ip of your pihole to someone else, and everything shuts the bed.

              Try picking x.x.x.254 as the pihole address or x.x.x.2

              Often routers won’t use either the top end or low end of the available addresses.

              The machines on your network that are dhcp, do they go below 100? Do they go above 200?

              You’re going to be guessing a little here.

              What is your “net mask”

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

                Ya I’m pretty sure you’re correct here and this is my issue. Since I’m not able to log into my router and define my dhcp range, I’ve picked an IP near the end of the range (254).

                All my other devices are assigned .23, .25, etc.

                Fun learning experience haha

                • ArbiterXero@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  5
                  ·
                  1 year ago

                  Your ip-mask will tell you what IPs are accessible on the network

                  Likely goes nowhere because it’s probably 255.255.255.0 but it’s possible to be something else.

            • Osirus@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              6
              ·
              1 year ago

              Are you on the same subnet as your router or are you on the subnet that your custom dhcp server is handing out? If your router is 192.168.1.1 and your ip is on the 192.168.2.x range, they aren’t going to be able to communicate.

        • Xanthrax@lemmy.world
          link
          fedilink
          English
          arrow-up
          19
          ·
          1 year ago

          Are we getting a repeat of the guy who’s wifi didn’t work because of a smart bulb?

            • moody@lemmings.world
              link
              fedilink
              English
              arrow-up
              6
              ·
              1 year ago

              I assume the issue was the bulb was getting assigned by DHCP the same address that was supposed to be reserved for their PC, thus their wifi appearing not to work for their PC.

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

              Haha not quite. Sounds like an interesting post though. I’ll have to look that one up. From all the help given to me here though it looks like my “static” ip is within dhcp range so my router is giving everyone else my key to the castle and therefore invalidating my key.

              • RajaGila@feddit.nl
                link
                fedilink
                English
                arrow-up
                2
                ·
                1 year ago

                Yea, duplicate IP addresses lead to some funny business. Toss a coin to see if a network packet will arrive basically.

                The solution is to adjust the DHCP range or use static DHCP on the router. The latter just means that the router will assign the same IP to the specified computer every time.

          • whynotzoidberg@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            Oh my, I didn’t catch that one but will be searching for it!

            I love* solving wonky user issues. People do the darndest things.

            *Subject to tolerance and patience levels of both user and self

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

          Hm interesting. Basically my server is a windows computer (ya windows is not a good server OS I know, was lazy and experimenting) and in the windows network settings I assigned it a static IP that was within my DHCP range.

          I wasn’t aware you could set it outside the range but this makes sense that it should be outside of the range so that my router doesn’t give my servers IP address to something else.

          As you can tell I’m not super knowledgeable about networking but your help is making things make more sense. I appreciate it!

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

              Haha yeah a big strong network person would be running proxmox or Ubuntu server or Debian or something and having a better time. I’m my defense, I’m both lazy and stupid so while (almost) everything is working, I’m keeping windows

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

                Nothing wrong with a Windows box as your server. Use what you know. Windows skills are a great asset in the world.

                This issue is OS-independent, meaning you would have the same problem on a Raspberry Pi as you did on your Windows box.

                GLHF

  • seaQueue@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    1 year ago

    I had similar issues when SLAAC wasn’t properly configured for my network. Every however many days my ISP forced a modem reboot and if the delegated prefix happened to change I’d start having pihole problems. I finally tracked that down, made sure SLAAC was working everywhere and assigned my pihole container a SLAAC token so its address relative to everything else on the network didn’t change and I’m good to go. These days the pihole is always …253 and ::253.

  • HamSwagwich@showeq.com
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    2
    ·
    1 year ago

    I have up on Pihole a long time ago because of constant issues. Went with self hosted AdGuard and haven’t had a single issue since.

  • sharpiemarker@feddit.de
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 year ago

    Taking a look at your Pihole logs is going to be helpful. Also knowing what kind of device is running the Pihole software may also help.

    I had Pihole running on a raspberry pi 3 years ago, and I had pretty consistent issues. I’ve run it on other hardware since without a problem.

    It could be an issue with the SD card, if you’re using a raspberry pi. I’ve also read that the log file can grow large enough to cause issues with your Pihole instance.

    So there are a number of possibilities.

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

      I’ll have to take a peak at the logs. I’ve been running the server nearly headless but with this issue I cannot access my server over my lan so I’m going to have to physically plug a screen and keyboard into it later.

      • sharpiemarker@feddit.de
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        1 year ago

        One last piece of advice: Pihole has great support. I’ve gotten a ton of answers and assistance from the Pihole Sub on Reddit. I don’t know if it’s still active since the migration away from Reddit, but you may ask.

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

          I’d rather ask here and start building up the knowledge base off Reddit but you’re right.

          I think I know my problem though (something I’m not able to fix aaaaa)

          • sharpiemarker@feddit.de
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            I agree. Unfortunately I don’t think u/jfb-pihole is on Lemmy and they’re one of the devs (I think) for Pihole. Best of luck with your issue!

      • sharpiemarker@feddit.de
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Yep, not having DNS/DHCP is a pain in the ass. When mine went down it would take my network with it because the Pihole was handling both. Expected but also a pain in the ass.

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    edit-2
    1 year ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    CGNAT Carrier-Grade NAT
    DNS Domain Name Service/System
    HA Home Assistant automation software
    ~ High Availability
    IP Internet Protocol
    NAS Network-Attached Storage
    NAT Network Address Translation
    PiHole Network-wide ad-blocker (DNS sinkhole)
    RPi Raspberry Pi brand of SBC
    SBC Single-Board Computer
    SSD Solid State Drive mass storage
    SSH Secure Shell for remote terminal access

    10 acronyms in this thread; the most compressed thread commented on today has 12 acronyms.

    [Thread #209 for this sub, first seen 11th Oct 2023, 11:55] [FAQ] [Full list] [Contact] [Source code]

  • kadu@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    4
    ·
    1 year ago

    I really don’t understand running PiHole when services like NextDNS exist. They have every feature your PiHole would have (encryption, whitelists, blacklists, tracker blocking, and much more), can be used on any device, and won’t require maintenance or electricity costs.

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

      Well in my case it’s due to me just not knowing that this other stuff exists and primarily wanting to Adblock with a piece of software that’s well known and well documented as I’m very noob at self hosting and networking 😛 I’ll have to take a look at those other services you’ve mentioned.

      Just fyi so you can hate me more, I’m running Pihole on Windows using WSL.

      • kadu@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Oh no hate at all, I actually encourage you to try your hand at exploring your own solutions.

        But if they’re giving you more trouble than the problem they were supposed to fix to begin with, it’s good to be reminded that there’s nothing wrong with using something built by someone else and that commercially relies on not having issues. This community will downvote and reply as if anything not self hosted is the devil reincarnated, but you know what, it’s safe and works.

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

          All good I appreciate all the help and advice from the community here, even if some are politely telling me I’m an idiot lmao. Comes with technical communities so downvotes and the like don’t phase me (considering you can make a post, downvote yourself, then reliably start a downvote train even if there’s nothing wrong with the comment).

    • ShortN0te@lemmy.ml
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      1
      ·
      1 year ago

      Simple: Privacy. The DNS Server of you choosing sees every single domain you are visiting.

      Having a own DNS Server allows you to hide varies queries from big DNS providers.

      Additional you gain shorter latencies for cached request if you have set it up right.

      AND when you have local services you probably have a horizon splitting DNS anyway so setting up a pihole vs something like DNSmasq is not much hassle anyway.

      • kadu@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        1 year ago

        Simple: Privacy

        Which is why NextDNS allows you to decide if DNS requests get logged or not, for how long, on which country, and with encryption.

        Additional you gain shorter latencies for cached request if you have set it up right.

        Hardly relevant nowadays.

        Anyway, I was making a suggestion to an user growing increasingly frustrated with trying to host their own DNS resolver using a tiny ARM board.

        • ShortN0te@lemmy.ml
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          Which is why NextDNS allows you to decide if DNS requests get logged or not, for how long, on which country, and with encryption.

          You have to trust that statement and company since you can’t verify it.

          Hardly relevant nowadays.

          With the hundreds of DNS requests that a modern websites requires, it is more relevant then ever. For browsing DNS latency is for more important then dowload or upload speed.

    • nbafantest@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

      Its literally a single docker compose up command and one time log in to your router and changing the DNS.

      You act like its some crazy complicated thing lol

    • SheeEttin@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      Can I add custom DNS forwarding rules to NextDNS? Because I need that for my internal network.

  • betz24@lemmynsfw.com
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 year ago

    I haven’t done any research on pi-hole (I use firewalla) but is a raspberry Pi even powerful enough to support a small home network?

    What kind of CPU/RAM usage for a your unit normally have?

    • zygo_histo_morpheus@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      It’s not that much of a strain since it only handles DNS traffic.

      When you go to e.g. programming.dev, you computer needs to know the actual IP and not just domain name so it asks a DNS server and recieves an answer like 172.67.137.159 for example. The pihole will just route the traffic to a real DNS server if it’s a normal website or give a unkown ip kind of answer if it’s a blacklisted domain. Actually transmitting the website which is the bulk of trafic is handled without the piholes involvement.

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

      I give my pihole container about 1GB of RAM and one core and it’s good to go (two cores helps with maintenance tasks though.) An entire RPi just to run pihole is such overkill.

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

      Ya from my research raspberry pi is powerful enough to act as a DNS server for a home. I probs wouldn’t put a 4k plex library on it but it should do the job.

      In my case however I’m not running a raspberry pi. I have installed PiOS into Windows using WSL (like a lunatic) in an effort to not reformat my whole server computer and install something more practical (like Ubuntu server).

      • Bizarroland@kbin.social
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I’m running a bare metal esxi server and one of the containers is running my pie hole and it is relatively Rock solid.

        I think the original poster should probably just set a Cron job to reboot the pihole every 3 days or so at like 3:00 in the morning and that would solve the problem.

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

          That’s a decent idea for a workaround but I think I found my issue and have set my static IP address for my server to be outside my DHCP range. Here’s hoping it works. I’ll know in 90 days haha.

  • Chaotic Entropy@feddit.uk
    link
    fedilink
    English
    arrow-up
    12
    ·
    edit-2
    1 year ago

    My first thought on this was immediately “did you also reserve that static IP address on your router to make sure it remains assigned”. From what I’ve read that does seem to be the issue, so that’s a little validating.

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

      I managed to get into my router and my Pihole server shows up as static and I’ve assigned it an address at the higher end of the DHCP range so we’ll see when the lease expire 🤷

      • Chaotic Entropy@feddit.uk
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        As long as the router has the IP explicitly reserved for the device your PiHole is running off of then it won’t be reassigned.

      • deadbeef79000@lemmy.nz
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 year ago

        Don’t set the static IP within the DHCP range (well you can, but it then depends on how smart your dhcp server is, just avoid the situation).

        You run a risk of the same IP being assigned to another device.

    • JustARegularNerd@aussie.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      Oh my gosh. I have been trying to figure this issue out with my docker containers for months. If this is the fix, THANK YOU.