• mesamune@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    4 months ago

    Would pihole work if all the major DNS that gets pulled resolved the same? I would imagine the change would only work for a while.

    • You999@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      15
      ·
      4 months ago

      While others suggested adding the DNS records manually the far more secure and easier in the long term solution is to run pihole with unbound. Going this route completely eliminates third party upstream DNS servers as unbound will query the top level domain for their authoritative name server and direct the IP address from the source. Pihole has a great explanation on their website. I like crosstalk solutions on setting it up as it’s has everything you need just to copy paste your way into it working.

    • valaramech@fedia.io
      link
      fedilink
      arrow-up
      12
      arrow-down
      1
      ·
      4 months ago

      A PiHole functions has a full DNS server. You can configure it to serve any arbitrary records you like - which is basically how it overrides ad domains to prevent them from loading.

      So, if you know the IP address that a particular domain is supposed to route to, you configure the PiHole to respond with that IP address for that domain. So, it doesn’t matter that the major DNS servers return junk because your PiHole never asks them.

        • ayaya@lemdro.id
          link
          fedilink
          English
          arrow-up
          6
          ·
          4 months ago

          $80? I run mine on a Pi Zero that I got for $9 with a $6 wired network adapter for a grand total of $15. No problems for a household of five with one of us (me) being an extremely heavy user.

            • ayaya@lemdro.id
              link
              fedilink
              English
              arrow-up
              1
              ·
              4 months ago

              I used to do that, but it comes with the problem of your DNS going down any time you want to restart or do a hardware swap on your NAS. Or since it was running in docker something as simple as reloading docker would knock out the internet for a few minutes. It’s worth the $15 to have them operate separately.

        • thejml@lemm.ee
          link
          fedilink
          English
          arrow-up
          5
          ·
          4 months ago

          Definitely. Though I’ll add that I ran PiHole + PiVPN on a Zero W ($10) for years. I upgraded it to a Pi Zero W 2 ($15 with extra cores) but I found that it had terrible packet drops, so I had to add a $15 usb wired adapter to it. I can max my upload speeds over vpn and dns is super low latency.