号称比bind9强悍的
首先得到源,方法两种:
git clone dnspod-sr
或者下载压缩包
解压进入目录
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 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13575 ;; flags: qr ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0;; QUESTION SECTION: ;baidu.com. IN A;; ANSWER SECTION: baidu.com. 166 IN A 220.181.111.86 baidu.com. 166 IN A 123.125.114.144 baidu.com. 166 IN A 220.181.111.85;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Sun Jun 10 15:28:19 2012 ;; MSG SIZE rcvd: 75 |
总体分析看来,除了个forwarding功能,啥都没有,比bind9强多少实在看不出来
目前国产开源基本就这样子,不过鉴于你开源我就创新而言,出现这个情况确实该然