Closed ilfat12 closed 2 months ago
Judging by the logs, the cache is used, but it is strange that there is such a delay. For example, dnsmasq, systemd-resolve, xray-core return a response for cached domains in 0-1 ms.
For Exchange
, only "simple DNS requests" (one Question, no NS, no extra RRs) will be cached. dig
uses EDNS0 by default. Try dig +noedns
.
For
Exchange
, only "simple DNS requests" (one Question, no NS, no extra RRs) will be cached.dig
uses EDNS0 by default. Trydig +noedns
.
Yes, indeed, with +nodns, the response from the cache is returned in 0 ms. I think most application programs perform simple DNS queries, even nslookup, judging by the output of the time command, does not use EDNS. So, everything is fine. Thanks a lot for the clarification and for Sing-Box :)
Operating system
Linux
System version
Linux 6.6
Installation type
Original sing-box Command Line
If you are using a graphical client, please provide the version of the client.
No response
Version
Description
It looks like the dns cache is not working. I don't understand does it work or not? Why such a delay, it should be close to 0 ms
dig query time:
Reproduction
Run sing-box with this config:
Logs
Supporter
Integrity requirements