Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
388 views
in Technique[技术] by (71.8m points)

Centos7下nslookup特定域名返回server can't find *: SERVFAIL?

目前在一台CentOS7服务器上跑了一项业务,使用了腾讯云COS服务,认证的时候需要请求api-common.qcloud.com这个地址,业务里使用了curl。
一开始程序正常,运行大概4个月左右后发现请求速度非常慢,平均15秒以上,检查发现curl请求的时候DNS就占用15秒。
然后开始排查,尝试换了114、阿里223、谷歌、还有电信提供的DNS均是同样的效果。
尝试curl其他网址发现请求时间正常,使用nslookup返回:

nslookup api-common.qcloud.com
Server:         223.5.5.5
Address:        223.5.5.5#53

Non-authoritative answer:
Name:   api-common.qcloud.com
Address: 62.234.200.11
** server can't find api-common.qcloud.com: SERVFAIL

但是使用dig测试一切正常:

dig api-common.qcloud.com

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-16.P2.el7_8.6 <<>> api-common.qcloud.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33773
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;api-common.qcloud.com.         IN      A

;; ANSWER SECTION:
api-common.qcloud.com.  120     IN      A       62.234.200.11

;; Query time: 59 msec
;; SERVER: 223.5.5.5#53(223.5.5.5)
;; WHEN: 日 10月 18 19:49:05 CST 2020
;; MSG SIZE  rcvd: 55

系统已经安装了nscd,尝试清理缓存、关闭缓存均同样的效果。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...