Giter VIP home page Giter VIP logo

Comments (10)

clowwindy avatar clowwindy commented on June 15, 2024

本来就是这样。

from chinadns.

hieixu avatar hieixu commented on June 15, 2024

从我测试的结果,似乎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.

clowwindy avatar clowwindy commented on June 15, 2024

看一下 chinadns 的 log

from chinadns.

hieixu avatar hieixu commented on June 15, 2024

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.

hieixu avatar hieixu commented on June 15, 2024

增加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.

clowwindy avatar clowwindy commented on June 15, 2024

看不出问题,114 的结果瞬间就返回了
看下 dig 的结果

from chinadns.

clowwindy avatar clowwindy commented on June 15, 2024

跟 chnroute 没关系

from chinadns.

hieixu avatar hieixu commented on June 15, 2024

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.

clowwindy avatar clowwindy commented on June 15, 2024

把 localhost 改成 127.0.0.1

from chinadns.

hieixu avatar hieixu commented on June 15, 2024

正常了
因为最近老是碰到很奇怪的国内域名无法解析问题,也许是dnsmasq的bug

from chinadns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.