PiHole + Unbound: no connection for OS

Hey,

i love Pi-Hole and just read the Blog-Post about the "All-Around DNS Solution" with PiHole so i directly want to check that out.

After a total clean installation of Raspbian Stretch (latest 2018-06-27) and a clean installation of Pi-Hole i followed the guide on GitHub for the "All-Around DNS Solution" with unbound:

The Test

dig sigfail.verteiltesysteme.net @127.0.0.1 -p 5353
dig sigok.verteiltesysteme.net @127.0.0.1 -p 5353

already works fine in commandline and i can browse with and device like without unbound and use Pi-Hole as normal.

The big problem: Raspbian itself can't establish any connection to urls like for "pihole -g", "sudo update" and "sudo upgrade" or "wget".
I think it cant resolve the urls.

I already had a look at "/etc/resolv.conf". The Nameserver/DNS in there is "127.0.0.1" (without an Port, Unbound is normally 5353 in the guide, right? Maybe i have to change that?).

  • How do i change the DNS to match the right one? Or let resolv know to use port 5353?

I already tried to add another nameserver via "/etc/dhcpcd.conf" couse since Stretch, this should be the way to change the DNS (resolv gets overwritten every reboot). After reboot and "resolvconf -u", nothing changed.

I also tried to add another nameserver to the "resolv.conf" via "resolve.tail". It seens to work, now the OS can resolve urls, but also first uses 127.0.0.1 and therefore its very slow to update or use like "wget". I assume it first tries and tries 127.0.0.1 to resolve the url and finally tries my newly added nameserver.

Does anyone know how to fix that? I would appreciate it a lot. :slight_smile:
Does anyone else have the same problem?

@DL6ER Hast du eventuell eine Idee oder einen Tipp?

Thanks, and keep up this awesome work!