Due to changes in my living situation, I’ve switched from running Pi-Hole on a headless machine on my network, to running it locally on my main PC; which runs EndeavourOS.

Pi-Hole is working well; with my networking settings set to use 127.0.0.1 and ::1 to point to localhost for DNS, but I can’t boot Waydroid unless I either comment out the dnsmasq lines in /usr/lib/waydroid/data/scripts/waydroid-net.sh, or stop pihole-FTL.service.

Stopping pihole-FTL.service, of course stops Pi-Hole, and commenting out those dnsmasq lines disables networking in Waydroid.

I’d like to be able to get Waydroid running with networking, and preferably get it to use Pi-Hole as its DNS resolver. I understand the reason Waydroid won’t boot normally in my case is because it does some weird stuff with dnsmasq and port 53, which conflicts with Pi-Hole.

I should also mention that I’m also using ufw for a firewall, with default deny incoming and default allow outgoing set.

  • mrbigmouth502@piefed.zipOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 months ago

    I got Pi-Hole working using your compose file, though I had to reference the official example since it was missing “services:” at the top.

    I also referenced this tutorial video and added my user to the docker group, which I’m not sure I’m supposed to do or not: https://youtu.be/0X4mxj-uYsc

    Anyway, right now I have IPv6 disabled. Would I be able to get this working with IPv6, or would it be more trouble than it’s worth?

    I also just realized I haven’t tried to get Waydroid running yet. Will have to see if that works at all.

    EDIT: Waydroid runs, though it doesn’t have internet access. This is still a step in the right direction though, since it boots with the stock /usr/lib/waydroid/data/scripts/waydroid-net.sh file while Pi-Hole is running.

    • Disorder6069@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 months ago

      Totally forgot the services line - I pulled that from my own docker compose that uses another container to tunnel all my DNS traffic to Cloudflare via HTTPS instead of bare DNS (for privacy from ISP snooping, for what it’s worth)… It’s fine to put your own user in the docker group as long as your account is reasonably secure and it fits with your security model. IPv6 resolution should work out-of-the-box with that config - it’ll just use IPv4 to communicate with your PC and upstream DNS (it can still resolve AAAA records over that connection). I don’t personally use Waydroid so I have no idea why it’s still not working but, as you said, it seems like a step in the right direction

      • mrbigmouth502@piefed.zipOP
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 months ago

        Question, if I have IPv6 disabled on my system, do I need to keep my upstream IPv6 DNS providers enabled in Pi-Hole? Every so often I get errors saying that Pi-Hole can’t reach them.

        • Disorder6069@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 months ago

          No, you shouldn’t need to enable the ipv6 resolvers - they’ll just fail anyway… even if you did have ipv6 enabled on your system, you don’t need the ipv6 resolvers - the IPv4 and ipv6 addresses are pointing to the same server regardless