技术标签: 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的机器)
联通机器上返回结果:
非联通机器上返回结果:
import matplotlib as pltplt.rcParams['font.sans-serif']=['SimHei'] #用来正常显示中文标签plt.rcParams['axes.unicode_minus']=False #用来正常显示负号
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(){
一、前言JSP在SpringBoot中虽然变得不再倡导使用,但是也经历了历史的验证,在公司大多数人员都使用jsp的情况下,还是继续使用比较稳妥,操作起来也比较方便,技术没有好与坏,能解决实际需求才是真理二、实践1. 导入pom文件 &lt;dependency&gt; &lt;groupId&gt;javax.servlet&lt;/groupId&g...
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
下列不属于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.
WireShark抓取QQ邮箱
1 关于 使用_Nonlable, _Nonnull 在于调试和编程的时候的快速提示错误。Xcode 7 包含了一个名为 “Apple LLVM 7.0 - Warnings - All languages > Incorrect Uses of Nullable Values” 的项目设置选项,其键为 CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION
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中使用,首先要先装这个包,利用下面代码: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 变量 函数 初始化这篇文章主要介绍关于模板类中如果有static变量如何初始化问题。重要:如果不初始化static变量,那么编译可能没有问题,但是程序有问题,可能编译有问题,但是不能确定是初始化问题。#include"iostream"class C{ int ccc;};class A{public: A
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...
题目来源:2017-2018 ACM-ICPC Northern Eurasia (Northeastern European Regional) Contest (NEERC 17)A. Archery Tournament每次查询,找这个位置前面的15个圆,后边15个圆来更新答案。set维护一下圆就行。为什么对,官方题解:可以证明经过某一条竖线的圆不超过logC个(C=1e9)...