-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
老哥,all-servers参数无效 #23
Comments
我改了下配置,把dns放在/etc/resolv.dnsmasq.conf文件里,还是不生效: listen-address=127.0.0.1,192.168.20.35,192.168.21.1 all-servers |
有人在18年4月也反馈过同样的问题: |
可以用dnsmasq2.80版all-servers有效 |
你说的2.8版本是这个大佬优化的版本吗?我看代码都好久没更新了,2.8优化版在哪下载呢? |
我利用作者的代码生成的补丁,只编译了openwrt的发恩山了。 |
我只会编译,不会合并,老哥能发下你合并后的代码吗?或者能说下怎么把2.8版本和这个补丁合并吗?我在armbian上编译下。 |
@505575853 用了您在 https://github.com/505575853/dnsmasq-fastlookup 的代码编译2.80的dnsmasq,配置文件中指定例如 server=/google.com/1.2.3.4 这样的设置无效,还是走默认的dns,是不是还有其他bug啊 |
@dongjuanyong 补丁没打完不想弄了 |
dnsmasq-full_2.80.zip |
我只试了其中x64的版本,server=/xxx/xxx的配置还是无效 |
@dongjuanyong 那不知道到了估计有坑 |
看来作者已经放弃更新了,我已经用回原版了 |
@505575853 这样patch很容易出问题,至少我试过在更新版本的dnsmasq里merge这个分支,结果一团糟。 |
环境:armbian 9+aarch64,用你的源码编译的dnsmasq,用了有2个多月了,非常好没遇到什么BUG,今天巧合用tcpdump抓包发现all-servers参数无效,这个参数的意思是向所有dns都发起请求,接收最先返回的结果。
用tcpdump抓包发现大多时候只向第2个dns发送请求,偶尔向第一个dns发请求,然后我做了些测试:
1.多次重启dnsmasq依然不生效。
2.换用原版的dnsmasq,配置文件不做任何修改,有效了,会同时向2个DNS发送请求。
下面是配置文件,请老哥看看怎么回事:
no-resolv
bogus-priv
cache-size=1024
listen-address=127.0.0.1,192.168.20.35,192.168.21.1
conf-dir=/etc/dnsmasq.d
all-servers
server=114.114.114.114
server=119.29.29.29
The text was updated successfully, but these errors were encountered: