本地dnsmasq里上游dns8888间歇性失效

查看 47|回复 1
作者:小九   
服务器是centos系统,为了突破chatgpt的屏蔽,我在本机开了dnsmasq服务。
/etc/dnsmasq.conf中,上游dns服务器使用的是server=8.8.8.8,单独转发server=/openai.com/xx.xx.xx.xx
这样用了半年多,一直挺稳定。
但是最近连续几天,这个dnsmasq间歇性抽风,频率还蛮高的,大概隔几分钟就抽风。抽风的时候具体表现如下,
# nslookup google.com 8.8.8.8
Server:                8.8.8.8
Address:        8.8.8.8#53
Non-authoritative answer:
Name:        google.com
Address: 142.250.199.110
# nslookup google.com        
;; connection timed out; trying next origin
;; connection timed out; no servers could be reached
你们看,直接使用8.8.8.8进行nslookup是成功的,但通过dnsmasq查询时失败,这似乎指向了dnsmasq本身或其配置作为可能的问题原因。
我一顿排查dnsmasq的配置文件,愣是找不出问题。
目前,我把dnsmasq里的上游dns改为了1.1.1.1之后,问题便不再出现。。。
这踏马到底是啥问题啊?

间歇性, 的是, 服务器

nop   
all-servers
server=1.1.1.1
server=8.8.8.8
同时查询,哪个响应快用哪个
您需要登录后才可以回帖 登录 | 立即注册

返回顶部