Page 1 of 1

[Solved] DNS Server / Pi-Hole Config

Posted: Sun Jan 20, 2019 8:17 pm
by big_g_uk
Hi all,

I am using Ubiquiti Unifi equipment with the Unifi Controller and USG, which is also being used as my DHCP server. However, Unifi doesn't do DNS therefore I need just a DNS server.

The only software that I can see within DietPi which may be suitable, would be Pi-Hole. I have installed Pi-Hole and added IP/hostname entries to the etc/hosts file on the same host, and finally set the DNS server IP to the Pi-Hole address on the Unifi Controller for DHCP config and also manually added to windows hosts.

However, DNS resolution seems to still not be working...... any clues?

Re: DNS Server / Pi-Hole Config

Posted: Sun Jan 20, 2019 8:37 pm
by MichaIng
dnsmasq is the usual DNS cache+server package on Debian (and many other distros), that is also used by Pi-hole internally.

It is not included as dedicated install in dietpi-software, since it is very easy to do oneself: apt install dnsmasq
Instead the question is the purpose of doing it based on that it's configuration.

Re: DNS Server / Pi-Hole Config

Posted: Sun Jan 20, 2019 9:26 pm
by baz123
Why not just point to external DNS like CloudFlare? Pi-Hole is for ad blocking or do you want internal name resolution?

You could do a cloudflared install https://developers.cloudflare.com/1.1.1 ... red-proxy/ for some DoH.

I'm running Pi-Hole and Cloudflared DoH (on same machine) and just point the DHCP server to that internal IP. Internal machines hit the Pi-Hole which forwards it to Cloudflared which does DoH to CloudFlare DNS.
I have installed Pi-Hole and added IP/hostname entries to the etc/hosts file on the same host
Not sure what you did here. All I did was install Pi-Hole and point the DHCP server to it by IP. Older installs of Pi-Hole needed some fiddling with hosts but not the most recent versions.

I've just got a Ubiquiti AP and I am sorely tempted to get a USG.

Re: DNS Server / Pi-Hole Config

Posted: Sun Jan 20, 2019 10:01 pm
by big_g_uk
Perfect, got it working thanks