Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
ksc010
V2EX  ›  Linux

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

  •  
  •   ksc010 · Jul 12, 2013 · 15355 views
    This topic created in 4734 days ago, the information mentioned may be changed or developed.
    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 replies    1970-01-01 08:00:00 +08:00
    piaoxueblog
        1
    piaoxueblog  
       Jul 12, 2013
    pdnsd可以实现
    ksc010
        2
    ksc010  
    OP
       Jul 12, 2013
    @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  
       Jul 12, 2013
    你可以换个方式问:例如 I want to disable UDP completely

    目测dnsmasq只是把TCP用作UDP的一个fallback
    0xef
        4
    0xef  
       Jul 12, 2013   ❤️ 1
    Or I want to always use TCP for some specific domains.. blahblah
    solos
        5
    solos  
       Jul 13, 2013   ❤️ 1
    unbound请求上游服务器会用tcp,也可以指定单个域名的上游服务器,这里有篇文章可供参考http://www.quakemachinex.com/blog/?p=186
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6169 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 03:15 · PVG 11:15 · LAX 20:15 · JFK 23:15
    ♥ Do have faith in what you're doing.