Closed marcusb closed 7 months ago
You need to check the network to know if an actual DNS query was made. The message is misleading, DNS resolved
just means that the DNS lib did return a response, but it doesn't indicate if it was from the cache or from the network. I'm not even sure there is a way to get this information from LwIP.
II would argue that resolution in 0 ms
or 1 ms
are from cache, and 22/38 ms
are from the server, but I may be wrong.
So unless you see actual request on the wire, DNS entries are supposed to be cached. Keep in mind that the cache is small though.
PROBLEM DESCRIPTION
I have a Shelly 1 Plus configured as a Matter bridge for 5 other Tasmota and OpenBK devices. This works but I notice that Tasmota issues a DNS lookup every time it polls the remote devices (each device every 3 seconds). This isn't a big issue but might create quite a bit of DNS traffic if you have a many devices.
Could the DNS lookups be cached within their TTL?
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:TO REPRODUCE
Configuration -> Configure Matter -> "Add Remote Tasmota or OpenBK"
EXPECTED BEHAVIOUR
DNS lookups are cached within TTL, not looked up before every HTTP request to the remotes.
SCREENSHOTS
ADDITIONAL CONTEXT
(Please, remember to close the issue when the problem has been addressed)