iobroker-community-adapters / ioBroker.synology

ioBroker SYNOLOGY Adapter
MIT License
11 stars 9 forks source link

Mass DNS Querys #184

Closed nstueber closed 1 year ago

nstueber commented 2 years ago

Hello Developer,

my pihole shows massive DNS Querys from IO-Broker.

It seems that the Synology adapter wants to resolve the IP of the disk station several times per query. Stopping the adapter also stops the DNS querys.

BR Nico

nstueber commented 2 years ago

The Adapter generates over 4000 DNS Queries for the same address (Disk Station) in less than 15 minutes. I changed the settings how often the adapter should rescan the Diskstation this helps of course. Anyway, everytime the adapter refreshes the data more than 5 DNS querys are send for the same host within 1 second.

Apollon77 commented 2 years ago

Then configure the IP instead of the name of your NAS? Then there will be no DNS lookups

mcm1957 commented 2 years ago

Check the poll time. In my oppinion the poll time default (500ms) is too small (to many polls occure) Per design the adapter issues several rest requests each causing a dns query (if I read the code correctly). So if dns queries are a issue, use a IP as Apollon already stated.

mcm1957 commented 1 year ago

The adapter uses the base package htt.ps://github.com/kwent/syno. The datat retrieved from the synology nas is read by multiple rest requests. Those requests cause dns queries if the nas is addressed by name.

It's outside the scope of this adapter to cache dns returns. Please use the IP address instead of the domain name if possible.

Currently no change of behaviour is planned.