V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
ksc010
V2EX  ›  Linux

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

  •  
  •   ksc010 · 2013-07-12 15:43:45 +08:00 · 14157 次点击
    这是一个创建于 3932 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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.
    5 条回复    1970-01-01 08:00:00 +08:00
    piaoxueblog
        1
    piaoxueblog  
       2013-07-12 16:07:20 +08:00
    pdnsd可以实现
    ksc010
        2
    ksc010  
    OP
       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
        3
    0xef  
       2013-07-12 17:10:57 +08:00
    你可以换个方式问:例如 I want to disable UDP completely

    目测dnsmasq只是把TCP用作UDP的一个fallback
    0xef
        4
    0xef  
       2013-07-12 17:12:31 +08:00   ❤️ 1
    Or I want to always use TCP for some specific domains.. blahblah
    solos
        5
    solos  
       2013-07-13 09:07:07 +08:00   ❤️ 1
    unbound请求上游服务器会用tcp,也可以指定单个域名的上游服务器,这里有篇文章可供参考http://www.quakemachinex.com/blog/?p=186
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5360 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 07:27 · PVG 15:27 · LAX 00:27 · JFK 03:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.