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?
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.
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.