dnsmasq如何强制用tcp与上游dns服务器通讯?

2013-07-12 15:43:45 +08:00
 ksc010
On 03/07/13 04:21, ksc wrote:
> http://www.thekelleys.org.uk/dnsmasq/docs/FAQ
>
> Q: Why doesn't dnsmasq support DNS queries over TCP? Don't the RFC's
> specify
> that? A: Update: from version 2.10, it does. There are a few
> limitations:
> data obtained via TCP is not cached, and source-address
> or query-port specifications are ignored for TCP.
>
> but i don't know where the options in the config file
>
>
--------------------------
上面是我在邮件列表的问的
然后如下回复
There are no options, it just works.
14173 次点击
所在节点    Linux
5 条回复
piaoxueblog
2013-07-12 16:07:20 +08:00
pdnsd可以实现
ksc010
2013-07-12 16:12:39 +08:00
@piaoxueblog 嗯这个我知道
我还需要智能解析的功能(就是不通的域名选择不同的上游dns服务器),这个pdnsd貌似没有
pdnsd与dnsmasq结合起来到能实现 ,若dnsmasq自己就能通过tcp的话更好
http://wordpress.youran.me/pdnsd/
https://wido.me/sunteya/use-openwrt-resolve-gfw-dns-spoofing/
0xef
2013-07-12 17:10:57 +08:00
你可以换个方式问:例如 I want to disable UDP completely

目测dnsmasq只是把TCP用作UDP的一个fallback
0xef
2013-07-12 17:12:31 +08:00
Or I want to always use TCP for some specific domains.. blahblah
solos
2013-07-13 09:07:07 +08:00
unbound请求上游服务器会用tcp,也可以指定单个域名的上游服务器,这里有篇文章可供参考http://www.quakemachinex.com/blog/?p=186

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/75568

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX