@@ -80,25 +80,28 @@ Usage
80
80
81
81
Test if it works correctly:
82
82
83
- $ dig @192.168.1.1 www.youtube.com
84
- Server: 192.168.1.1
85
- Address: 192.168.1.1#53
86
-
87
- Non-authoritative answer:
88
- www.youtube.com canonical name = youtube-ui.l.google.com.
89
- youtube-ui.l.google.com canonical name = youtube-ui-china.l.google.com.
90
- Name: youtube-ui-china.l.google.com
91
- Address: 173.194.72.102
92
- Name: youtube-ui-china.l.google.com
93
- Address: 173.194.72.101
94
- Name: youtube-ui-china.l.google.com
95
- Address: 173.194.72.113
96
- Name: youtube-ui-china.l.google.com
97
- Address: 173.194.72.100
98
- Name: youtube-ui-china.l.google.com
99
- Address: 173.194.72.139
100
- Name: youtube-ui-china.l.google.com
101
- Address: 173.194.72.138
83
+ $ dig @192.168.1.1 www.youtube.com -p5353
84
+ ; <<>> DiG 9.8.3-P1 <<>> @127.0.0.1 www.google.com -p5353
85
+ ; (1 server found)
86
+ ;; global options: +cmd
87
+ ;; Got answer:
88
+ ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16179
89
+ ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0
90
+
91
+ ;; QUESTION SECTION:
92
+ ;www.google.com. IN A
93
+
94
+ ;; ANSWER SECTION:
95
+ www.google.com. 215 IN A 173.194.127.50
96
+ www.google.com. 215 IN A 173.194.127.49
97
+ www.google.com. 215 IN A 173.194.127.48
98
+ www.google.com. 215 IN A 173.194.127.52
99
+ www.google.com. 215 IN A 173.194.127.51
100
+
101
+ ;; Query time: 197 msec
102
+ ;; SERVER: 127.0.0.1#5353(127.0.0.1)
103
+ ;; WHEN: Thu Jan 1 02:37:16 2015
104
+ ;; MSG SIZE rcvd: 112
102
105
103
106
Currently ChinaDNS-C only supports UDP. Builtin OpenWRT init script works with
104
107
dnsmasq, which handles TCP. If you use it directly without dnsmasq, you need to
@@ -117,6 +120,8 @@ Advanced
117
120
-l IPLIST_FILE path to ip blacklist file
118
121
-c CHNROUTE_FILE path to china route file
119
122
if not specified, CHNRoute will be turned off
123
+ -d enable bi-directional CHNRoute filter
124
+ -y delay time for suspects, default: 0.3
120
125
-b BIND_ADDR address that listens, default: 127.0.0.1
121
126
-p BIND_PORT port that listens, default: 53
122
127
-s DNS DNS servers to use, default:
0 commit comments