大网数据广告活动
服务器运维问答

dnsmasq gives a correct response then a connection time out

· 52CE 我爱测

When trying to nslookup to my dnsmasq dns server I get the correct IP address and then I get a connection timed out : no servers could be reached message. Any idea what is happening here and if I can still use it or better find o…

问题原文

原帖链接 · kira1kira · CC BY-SA 4.0

When trying to nslookup to my dnsmasq dns server I get the correct IP address and then I get a connection timed out : no servers could be reached message. Any idea what is happening here and if I can still use it or better find out what is wrong?

[diis@master1 preparation]$ nslookup node1
Server:         192.168.0.10
Address:        192.168.0.10#53

Name:   node1.example.com
Address: 192.168.0.20
;; connection timed out; no servers could be reached

已采纳解答

原帖链接 · Stefan Endrullis · CC BY-SA 4.0

I just solved it on my server.

Try adding the following to your dnsmasq config:

local=/node1/

It tells dnsmasq to resolve those domain names only locally using /etc/hosts.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-07-06)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。