号称比bind9强悍的
首先得到源,方法两种:
git clone https://github.com/DNSPod/dnspod-sr.git
cd dnspod-sr
或者下载压缩包
https://github.com/DNSPod/dnspod-sr/zipball/master
解压进入目录
make
修改文件author.h
找到此行
#define SRV_ADDR ("127.0.0.1")
将127.0.0.1改为0.0.0.0
运行
./dnspod-sr
出现如下内容
[DBG:] max_ele_size is 1000000 - 1808
[DBG:] server may contain 332730 useful records
[DBG:] hash_table_size is 65536
[DBG:] we have 10 hash tables
[DBG:] we have 2 fetchers,2 quizzers
但是到这里就停住了,不喜欢的可以crlt+c关闭,后台运行 nohup ./dnspod-sr.
dig baidu.com @localhost
可以得到正确的解析
[root@localhost dnspod-sr]# dig baidu.com @localhost ; <<>> DiG 9.7.3-P3-RedHat-9.7.3-8.P3.el6_2.3 <<>> baidu.com @localhost ;; QUESTION SECTION: ;; ANSWER SECTION: ;; Query time: 1 msec |
总体分析看来,除了个forwarding功能,啥都没有,比bind9强多少实在看不出来
目前国产开源基本就这样子,不过鉴于你开源我就创新而言,出现这个情况确实该然