unifi-utilities / unifios-utilities

A collection of enhancements for UnifiOS based devices
GNU General Public License v3.0
3.91k stars 420 forks source link

PiHole DNS response latency #500

Open RomaDomor opened 1 year ago

RomaDomor commented 1 year ago

Describe the bug DNS Requests to PiHole have big response latency, not a problem of PiHole itself but of a Podman container probably as the problem persists when quering using dig in PiHole's container shell. Maybe something to do with CNI Plugins? ping command returns similar ping both on UDM Pro host OS and in Pihole container

To Reproduce Steps to reproduce the behavior:

  1. Make dig queries to a DNS server in UDM Pro home OS and in PiHole Podman Container
  2. Compare results

Expected behavior Difference in response latencies should be minimal, yet it is not.

Screenshots DiG Response on UDM Pro host OS: SCR-20230223-l1e DiG Response in PiHole Podman container: SCR-20230223-l14

UDM Information

boostchicken commented 1 year ago

Are you using the SNAT / DNAT stuff to force alll your br's into a one machine. Morerr IPTables rules == slowerr traffic. It's would explain why DNS is the only protocol impacted. Also, CNI is about to be killed. They jusst added working DHCP to Mavclan in the new library, when I get a minute we can adopt it see if that helps.

ghost commented 1 year ago

Will you provide a script to remove CNI for those who downloaded it via remote shell script? I only needed the on_boot.d directory for custom scripts, but didn't need podman or any extra stuff.