V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
m1911
V2EX  ›  DNS

bind 如何支持 tcp

  •  
  •   m1911 · 2015-08-15 11:15:46 +08:00 · 3667 次点击
    这是一个创建于 3183 天前的主题,其中的信息可能已经有所发展或是发生改变。
    bind如何支持tcp 要咋修改源码
    5 条回复    2015-08-15 23:25:49 +08:00
    nightv2
        1
    nightv2  
       2015-08-15 11:26:49 +08:00
    socket bind不就是支持么
    m1911
        2
    m1911  
    OP
       2015-08-15 13:03:20 +08:00
    @nightv2 socket bind 这个是啥 没玩过
    vvvoid
        3
    vvvoid  
       2015-08-15 18:22:43 +08:00
    bind 支持TCP?
    问题内容有点少不知道真正要问的是什么……
    m1911
        4
    m1911  
    OP
       2015-08-15 19:50:07 +08:00
    @vvvoid 就是强制bind 用tcp去上游查询
    nadoo
        5
    nadoo  
       2015-08-15 23:25:49 +08:00
    http://www.zytrax.com/books/dns/ch7/hkpng.html#tcp-clients

    tcp-clients
    tcp-clients number ;
    tcp-clients 20;

    By default DNS uses UDP port 53 for queries but is defined to allow both TCP and UDP. The tcp-clients allows the user to define the maximum number of TCP connections to be supported. The BIND 9 default is 100. This statement may only be used in a global options clause.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2205 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 05:10 · PVG 13:10 · LAX 22:10 · JFK 01:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.