domain-name-system – dnsmasq – 域条目的多个转发服务器?

我想知道是否可以配置dnsmasq将“server =”条目发送到多个上游服务器?

像这样:

server=/facebook.com/1.2.3.4
server=/facebook.com/2.3.4.5

并使用resolv.conf选择哪一个基于它是否可用?根据手册页,看起来只允许一个,但我想知道是否有办法让它以这种方式行事.

解决方法

在你的例子中,你只是指出了facebook,但我猜你对你可能访问的每个主机名都有相同的需求

dnsmasq提供选项–all-servers

–all-servers

By default,when dnsmasq has more than one upstream server available,it will send queries to just one server. Setting
this flag forces dnsmasq to send all queries to all available servers.
The reply from the server which answers first will be returned to the original requestor.

设置多个DNS服务器

server=OpenDNS.IP.Addr.ess

server=GoogleDNS.IP.Addr.ess

server=...

并将考虑最快的响应

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


html5中section的用法
span标签和p标签的区别
jsp文件和html文件的区别是什么
span标签和div的区别
html颜色代码表大全
span标签的作用是什么
dhtml的主要组成部分包括什么
html编辑器哪个软件好用
span标签属于什么样式标签
html文件乱码怎么办
html怎么读取json文件
html文件打开乱码怎么恢复原状
html怎么链接外部css
html文件怎么保存到本地
html怎么链接css文件
html和css怎么连接
html和css怎么关联
html文件怎么保存到一个站点
html文件怎么写
html出现乱码怎么解决