Comments (10)
本来就是这样。
from chinadns.
从我测试的结果,似乎chinadns 解析总是需要1秒以上的解析时间
chinadns -l /etc/chinadns/iplist.txt -p 2053 -v
time dig -p 2053 baidu.com @localhost
real 0m1.019s
time dig -p 2053 www.qq.com @localhost
real 0m1.019s
直接通过 114dns来解析
time dig qq.com @114.114.114.114
real 0m0.018s
time dig www.qq.com @114.114.114.114
real 0m0.018s
time dig baidu.com @114.114.114.114
real 0m0.017s
不清楚您那边的chinadns的测试结果如何呢?
from chinadns.
看一下 chinadns 的 log
from chinadns.
root@debian-router:/etc/dnsmasq.d# chinadns -l /etc/chinadns/iplist.txt -p 2053 -v
Mon Oct 27 11:13:16 2014 CHNROUTE_FILE not specified, CHNRoute is disabled
ChinaDNS-C 1.1.7
Mon Oct 27 11:14:56 2014 request baidu.com
Mon Oct 27 11:14:56 2014 response baidu.com from 114.114.114.114:53 - 220.181.111.85, 220.181.111.86, 123.125.114.144, pass
Mon Oct 27 11:14:57 2014 response baidu.com from 208.67.222.222:443 - 123.125.114.144, 220.181.111.85, 220.181.111.86, pass
Mon Oct 27 11:14:57 2014 response baidu.com from 8.8.8.8:53 - 123.125.114.144, 220.181.111.85, 220.181.111.86, pass
Mon Oct 27 11:31:27 2014 request baidu.com
Mon Oct 27 11:31:27 2014 response baidu.com from 114.114.114.114:53 - 220.181.111.86, 220.181.111.85, 123.125.114.144, pass
Mon Oct 27 11:31:28 2014 response baidu.com from 208.67.222.222:443 - 123.125.114.144, 220.181.111.85, 220.181.111.86, pass
Mon Oct 27 11:31:30 2014 request baidu.com
Mon Oct 27 11:31:30 2014 response baidu.com from 114.114.114.114:53 - 220.181.111.86, 220.181.111.85, 123.125.114.144, pass
Mon Oct 27 11:31:31 2014 response baidu.com from 208.67.222.222:443 - 123.125.114.144, 220.181.111.85, 220.181.111.86, pass
Mon Oct 27 11:32:06 2014 request www.qq.com
Mon Oct 27 11:32:06 2014 response www.qq.com from 114.114.114.114:53 - 180.96.86.192, pass
Mon Oct 27 11:32:07 2014 response www.qq.com from 208.67.222.222:443 - 101.226.129.158, 101.226.103.106, pass
Mon Oct 27 11:32:07 2014 response www.qq.com from 208.67.222.222:53 - 101.226.129.158, 101.226.103.106, pass
from chinadns.
增加chnroute 花费的时间也是一样的,需要1秒出头
root@debian-router:/etc/dnsmasq.d# chinadns -l /etc/chinadns/iplist.txt -c /etc/chinadns/chnroute.txt -p 2053 -v
ChinaDNS-C 1.1.7
Mon Oct 27 11:56:07 2014 request www.qq.com
Mon Oct 27 11:56:07 2014 response www.qq.com from 114.114.114.114:53 - 180.96.86.192, pass
Mon Oct 27 11:56:08 2014 response www.qq.com from 208.67.222.222:53 - 101.226.129.158, 101.226.103.106, pass
Mon Oct 27 11:56:15 2014 request www.baidu.com
Mon Oct 27 11:56:15 2014 response www.baidu.com from 114.114.114.114:53 - 180.97.33.107, 180.97.33.108, pass
Mon Oct 27 11:56:15 2014 response www.baidu.com from 8.8.8.8:53 - 115.239.210.27, 115.239.211.110, pass
Mon Oct 27 11:56:15 2014 response www.baidu.com from 208.67.222.222:443 - 115.239.210.27, 115.239.211.110, pass
Mon Oct 27 11:56:15 2014 response www.baidu.com from 208.67.222.222:53 - 115.239.210.27, 115.239.211.110, pass
from chinadns.
看不出问题,114 的结果瞬间就返回了
看下 dig 的结果
from chinadns.
跟 chnroute 没关系
from chinadns.
root@debian-router:~/src/chinadns-c-1.1.7/src# time dig -p 2053 www.baidu.com @localhost
; <<>> DiG 9.9.5-4.2-Debian <<>> -p 2053 www.baidu.com @localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8502
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.baidu.com. IN A
;; ANSWER SECTION:
www.baidu.com. 0 IN CNAME www.a.shifen.com.
www.a.shifen.com. 187 IN A 180.97.33.107
www.a.shifen.com. 187 IN A 180.97.33.108
;; Query time: 13 msec
;; SERVER: 127.0.0.1#2053(127.0.0.1)
;; WHEN: Mon Oct 27 12:01:51 CST 2014
;; MSG SIZE rcvd: 101
real 0m1.020s
user 0m0.000s
sys 0m0.004s
看着很正常
from chinadns.
把 localhost 改成 127.0.0.1
from chinadns.
正常了
因为最近老是碰到很奇怪的国内域名无法解析问题,也许是dnsmasq的bug
from chinadns.
Related Issues (20)
- Use dnscrypt tcp-mode as chinadns upstream is not support? HOT 1
- ChinaDNS会不会泄露访问的敏感域名给大陆第三方DNS服务器 HOT 3
- 直接编译master分支代码的方法
- 这个项目现在还可以用吗?有没有更好的推荐一下? HOT 2
- Nice Work
- 请问网件的3700v4应该装哪个版本啊?试了ar71xx和ramips_24kec都不行 HOT 1
- 请问下自己编译时报下面的错是什么原因啊 HOT 1
- [solved]出不来dig查询结果
- 大内网,通往外网的53端口被封,只能使用所给的dns HOT 2
- chinadns.c:554 bind: No such file or directory
- How to build for Freebsd?
- 不支持最新版的18.06.1版本,请问是否能更新支持?(该项目已经长时间没有维护) HOT 5
- 解析cn域名有bug,导致解析到污染的IP地址 HOT 2
- 请问各位大佬chinadns的单节点负载能力如何
- 有个神奇的域名无法被ChinaDNS解析
- google cloud storage无法被解析
- 关于chinadns一些特性的请求 HOT 7
- pointer compression mutation getting outwitted these days
- ChinaDNS - Not Running HOT 1
- chinaDNS 支持最大多少并发请求?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chinadns.