我在本地有域“engine02.prod.qc.offercal.com” bind9
。
我不认为这是 DNS 服务器或 TTL 问题,因为基准测试几乎总是这样(我使用每种方法尝试了 2 分钟):
curl -o /dev/null http://engine02.prod.qc.offercal.com:49157/void
time_namelookup: 0.150
time_connect: 0.151
time_starttransfer: 0.152
----------
time_total: 0.152
curl -o /dev/null http://192.168.100.10:49157/void # use IP directly
time_namelookup: 0.000
time_connect: 0.002
time_starttransfer: 0.003
----------
time_total: 0.003
time dig @192.168.100.4 engine02.prod.qc.offercal.com
real 0m0.009s
user 0m0.004s
sys 0m0.004s
time host engine02.prod.qc.offercal.com
engine02.prod.qc.offercal.com has address 192.168.100.10
real 0m0.011s
user 0m0.006s
sys 0m0.004s
Run Code Online (Sandbox Code Playgroud)
我的resolv.conf
文件:
[root@gateway01 ~]# cat /etc/resolv.conf
nameserver 192.168.100.4
Run Code Online (Sandbox Code Playgroud)
我已经被这个问题困扰了一段时间,请帮忙:D