unbound:支持edns-client-subnet配置_kanguolaikanguolaik的博客-程序员秘密

技术标签: CDN/DNS  

参照《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的机器)

        联通机器上返回结果:


        非联通机器上返回结果:



版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/kanguolaikanguolaik/article/details/39320353

智能推荐

python中图片显示中文的方法和原理_python图像显示中文_小果果学长的博客-程序员秘密

import matplotlib as pltplt.rcParams['font.sans-serif']=['SimHei'] #用来正常显示中文标签plt.rcParams['axes.unicode_minus']=False #用来正常显示负号

JS使用userAgent实现浏览器信息的获取_simplz的博客-程序员秘密

JS使用userAgent实现浏览器信息的获取<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>navigator</title><script type="text/javascript"> function validB(){

SpringBoot-整合JSP入门实例教程_黄大胖子的博客-程序员秘密

一、前言JSP在SpringBoot中虽然变得不再倡导使用,但是也经历了历史的验证,在公司大多数人员都使用jsp的情况下,还是继续使用比较稳妥,操作起来也比较方便,技术没有好与坏,能解决实际需求才是真理二、实践1. 导入pom文件 &amp;lt;dependency&amp;gt; &amp;lt;groupId&amp;gt;javax.servlet&amp;lt;/groupId&amp;g...

PAT(A) - 1038. Recover the Smallest Number (30)_这个好玩吗的博客-程序员秘密

Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given {32, 321, 3214, 0229, 87}, we can recover many numbers such like 32-321-3214-0229-8

小米 前端 面试题_bliss河北小宝的博客-程序员秘密

下列不属于document 对象方法的是:onload ajax属于document对象方法的是querySelectorAll children下列结果不为真的表达式是:[1,2,3].splice(1,1,1)==[2]‘1’ ===true为真的表达式为:null == undefined Object.prototypelet Mi =newFunction();Mi.__proto__.__proto__==Object.prototypeImage 和 i.

随便推点

Xcode 7新的特性:Nullability,__kindof修饰符 _Nonlable, _Nonnull(温故知新,防止遗忘)_implicit conversion from nullable pointer 'nsstrin_zxc110110的博客-程序员秘密

1 关于  使用_Nonlable, _Nonnull  在于调试和编程的时候的快速提示错误。Xcode 7 包含了一个名为 “Apple LLVM 7.0 - Warnings - All languages > Incorrect Uses of Nullable Values” 的项目设置选项,其键为 CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION

Gradle sync failed: Sync failed: reason unknown_慢吞吞的小菜的博客-程序员秘密

Android Studio 2020.3.1版本解决办法:1. 查看log 》本地路径C:\Users\(真实用户名)\AppData\Local\Google\AndroidStudio2020.3\log\idea.log可以看到 platform 'android-26'not found 类似WARN字段,以自己的log提示为准,接下来我们进入android studio中进行对应sdk的安装即可,要是还报Gradle sync failed: Sync failed: rea..

简单的tensorboard学习(pytorch)_tensorboardpytorch_爱听许嵩歌的博客-程序员秘密

tensorboard是一个可视化工具,我在pytorch中使用,首先要先装这个包,利用下面代码:pip install tensorboard在利用测试代码看看效果:from torch.utils.tensorboard import SummaryWriterwriter = SummaryWriter("logs")# writer.add_image()# y = x**2for i in range(100): writer.add_scalar("y = x**2"

C++ 模板类中的static变量和函数 初始化_模板类静态变量初始化_JonesLee3的博客-程序员秘密

关键词: C++ 模板 static 变量 函数  初始化这篇文章主要介绍关于模板类中如果有static变量如何初始化问题。重要:如果不初始化static变量,那么编译可能没有问题,但是程序有问题,可能编译有问题,但是不能确定是初始化问题。#include"iostream"class C{ int ccc;};class A{public: A

URL Rewrite Module Configuration Reference_dengxie4419的博客-程序员秘密

About the URL Rewrite moduleThe Microsoft URL Rewrite Module 2.0 for IIS 7 enables IIS administrators to create powerful customized rules to map request URLs to friendly URLs that are easier fo...

Full_of_Boys训练1总结_p是马甲的博客-程序员秘密

题目来源:2017-2018 ACM-ICPC Northern Eurasia (Northeastern European Regional) Contest (NEERC 17)A. Archery Tournament每次查询,找这个位置前面的15个圆,后边15个圆来更新答案。set维护一下圆就行。为什么对,官方题解:可以证明经过某一条竖线的圆不超过logC个(C=1e9)...

推荐文章

热门文章

相关标签