jstrausd / homebridge-simple-wled

Homebridge Plugin to control WLED LED-Strips
ISC License
63 stars 17 forks source link

"A millions" of DNS queries when not using static IP addresses #37

Open MichlW opened 2 years ago

MichlW commented 2 years ago

At first I want to thank you for your work on that plugin. It is working well for me (except of the known bugs here).

I've configured my WLED instances through domain names in configuration like that:

{
    "wleds": [
        {
            "name": "Studio",
            "host": "wled-studio.fritz.box",
            "effects": [
                "...."
            ],
            "log": false
        }
    ],
    "platform": "WLED"
}

The problem is, that I get a lot of dns queries for every 5 seconds and these are flooding my logs (Pi-Hole). Is this something where your plugin could get a fix or is it some kind of internal domain handling of the homebridge instance?

Thanks in advance.

jstrausd commented 2 years ago

Thanks for reporting the bug. Maybe its a problem caused by Homebridge or the request module I am using. It seems like the plugin doesn't cache the dns request and queries it everytime it is fetching data from it. I will have a closer look to it, when I have enough freetime to check this.