技术解析

dnsmasq如何强制用tcp与上游dns服务器通讯?
0
2021-07-21 11:42:27
idczone
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.
pdnsd可以实现

嗯这个我知道
我还需要智能解析的功能(就是不通的域名选择不同的上游dns服务器),这个pdnsd貌似没有
pdnsd与dnsmasq结合起来到能实现 ,若dnsmasq自己就能通过tcp的话更好
http://wordpress.youran.me/pdnsd/
https://wido.me/sunteya/use-openwrt-resolve-gfw-dns-spoofing/

你可以换个方式问:例如 I want to disable UDP completely
目测dnsmasq只是把TCP用作UDP的一个fallback

Or I want to always use TCP for some specific domains.. blahblah

unbound请求上游服务器会用tcp,也可以指定单个域名的上游服务器,这里有篇文章可供参考http://www.quakemachinex.com/blog/?p=186

数据地带为您的网站提供全球顶级IDC资源
在线咨询
专属客服