stevejenkins / unifi-linux-utils

Helpful Linux / Unix scripts for admins of Ubiquiti (UBNT) UniFi wireless products
https://www.stevejenkins.com/blog/tag/unifi/
MIT License
695 stars 127 forks source link

Pi-hole: Every request is listed with client "USG-Pro-4" #49

Open Brovning opened 3 years ago

Brovning commented 3 years ago

Hello,

first a big thank you for your scripts! It was very easy to make the Pi-hole running as DNS in my network.

Unfortunately every request is listed with the client "USG-Pro-4". How can I change the configuration of my USG or Pi-hole, so that the real client IPs/hostnames are listed in the Pi-hole logs?

Thank you in advance!

Best regards,

Brovning

willhartman commented 3 years ago

Your client DNS is pointing at the USG (eg. 192.168.x.1) instead of pointing at the Pi-Hole (192.168.x.x).

In simple terms the USG is acting as a DNS proxy, so your clients are invisible to Pi-Hole.

Change the client DNS settings to point directly at the Pi-Hole.