-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extremely frequent DNS queries from HomeBridge; some incorrectly formed #362
Comments
I was able to suppress the DNS query volume by enabling the advanced configuration setting "Use IP address instead of hostname" in the Keylight plugin for HomeBridge. However this just works around the problem, it doesn't solve it, and I would prefer to use DNS names. |
This is definitely not intentional - can you provide a bit more information where your Homebridge is running? What OS and device are you running Homebridge on and how is DNS resolution handled? Nothing in the plugin itself should trigger regular DNS queries, especially not that many. For now, I cannot reproduce this behaviour on my side. As a test, can you try accessing the web interface of your keylight using the local domain? |
I run pi-hole as a DNS server, running on Raspbian Buster on Raspberry Pi 4B hardware.
Homebridge is running on a Raspberry Pi 4B running the Homebridge image for Raspberry Pi:
The key light is resolvable via DNS from the Homebridge instance:
The key light web UX is directly resolvable via DNS: Let me know how I can help! |
Yesterday I noticed that my key light integration wasn't working. I unplugged and re-plugged in the key light, and it started working again.
As part of troubleshooting I also looked at the HomeBridge logs, which indicated frequent DNS queries for the key light. I then looked at my DNS server (a Pi-Hole) and was surprised to find that almost all of my DNS query traffic was HomeBridge querying for my key light.
It appears that HomeBridge (or the Keylight plugin for HomeBridge) is querying for A and AAAA records for the discovered key light, every second, and is ALSO appending the local domain name (.local) and querying both again, every second.
So the problem is query volume. Querying once per second for multiple records is kind of overkill.
The second problem is that it's also appending the domain name when it already has an FQDN, and making multiple queries per second with names that cannot possibly work.
The text was updated successfully, but these errors were encountered: