Dnsperf DNS 缓存

Dnsperf DNS 缓存

我安装了 dnsperf 和 unbound,我想在我的 centos 服务器上缓存 DNS 记录列表,我使用 dnsperf 来缓存 dns 列表

[root@mail bin]# cat domains.txt
facebook.com. MX
google.com. MX
gmail.com. MX
twitter. MX
dnsperf -s 8.8.8.8 -d domains.txt

Statistics:

  Queries sent:         20
  Queries completed:    20 (100.00%)
  Queries lost:         0 (0.00%)

  Response codes:       NOERROR 20 (100.00%)
  Average packet size:  request 29, response 67
  Run time (s):         1.107204
  Queries per second:   18.063519

  Average Latency (s):  0.166944 (min 0.005329, max 1.096674)
  Latency StdDev (s):   0.235990

然而,执行此命令后,我期望这些记录被缓存,但这并没有发生

查询仍然需要时间,并且查询似乎没有缓存

相关内容