现在的位置: 首页 > 综合 > 正文

unbound:支持edns-client-subnet配置

2018年10月05日 ⁄ 综合 ⁄ 共 779字 ⁄ 字号 评论关闭

参照《unbound安装与配置》:http://blog.csdn.net/guowenyan001/article/details/39048893

本节只介绍不同点。

一、不同点

1.1 获取源码(不同)

        svn  co  http://unbound.nlnetlabs.nl/svn/branches/edns-subnet/

1.2 编译(不同)

        ./configure  --enable-subnet  (./configure --help)

        make

        make install

1.3 配置文件(增加)

        send-client-subnet: 119.97.137.185/32 (IP为授权DNS的IP,下同)
        send-client-subnet: 31.171.133.45/32
        send-client-subnet: 178.162.201.47/32
        send-client-subnet: 60.210.10.52/32
        send-client-subnet: 111.1.42.216/32
        send-client-subnet: 60.55.32.174/32
        send-client-subnet: 119.81.163.56/32
        send-client-subnet: 221.204.224.122/32

二、测试

2.1 域名配置

110.guowenyan.cn在XNS上配置

        全网默认:202.85.220.123

        联通默认:1.1.1.1

2.1 测试

使用dig 110.guowenyan.cn @202.85.220.122 查看返回加过。(202.85.220.122为部署unbound的机器)

        联通机器上返回结果:

        非联通机器上返回结果:

抱歉!评论已关闭.