[Solved] DNS Server / Pi-Hole Config

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
big_g_uk
Posts: 14
Joined: Sun Mar 18, 2018 4:06 pm

[Solved] DNS Server / Pi-Hole Config

Post by big_g_uk » Sun Jan 20, 2019 7:17 pm

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?

User avatar
MichaIng
Legend
Posts: 1620
Joined: Sat Nov 18, 2017 5:21 pm

Re: DNS Server / Pi-Hole Config

Post by MichaIng » Sun Jan 20, 2019 7:37 pm

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.

baz123
Posts: 119
Joined: Thu Jan 12, 2017 8:23 pm

Re: DNS Server / Pi-Hole Config

Post by baz123 » Sun Jan 20, 2019 8:26 pm

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.

big_g_uk
Posts: 14
Joined: Sun Mar 18, 2018 4:06 pm

Re: DNS Server / Pi-Hole Config

Post by big_g_uk » Sun Jan 20, 2019 9:01 pm

Perfect, got it working thanks

Post Reply