使用sudo systemd-resolve --statistics我可以看到当前的DNS缓存统计信息,例如:
sudo systemd-resolve --statistics
Cache Current Cache Size: 68 Cache Hits: 412 Cache Misses: 461
我想查看 DNS 缓存的所有条目(此处为 68),可以吗?
dns cache systemd-resolved
cache ×1
dns ×1
systemd-resolved ×1