Skip to content

Commit

Permalink
happy new year
Browse files Browse the repository at this point in the history
  • Loading branch information
clowwindy committed Dec 31, 2014
1 parent ad284cf commit ee0d088
Show file tree
Hide file tree
Showing 8 changed files with 497 additions and 43 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
1.2.0 2015-01-01
- Happy new year and add a new filter strategy

1.1.9 2014-12-26
- One Chinese DNS and one foreign DNS requirement is only a warning now
- Update iplist
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ChinaDNS-C

Copyright (c) 2014 clowwindy
Copyright (c) 2015 clowwindy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
43 changes: 24 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,25 +80,28 @@ Usage

Test if it works correctly:

$ dig @192.168.1.1 www.youtube.com
Server: 192.168.1.1
Address: 192.168.1.1#53

Non-authoritative answer:
www.youtube.com canonical name = youtube-ui.l.google.com.
youtube-ui.l.google.com canonical name = youtube-ui-china.l.google.com.
Name: youtube-ui-china.l.google.com
Address: 173.194.72.102
Name: youtube-ui-china.l.google.com
Address: 173.194.72.101
Name: youtube-ui-china.l.google.com
Address: 173.194.72.113
Name: youtube-ui-china.l.google.com
Address: 173.194.72.100
Name: youtube-ui-china.l.google.com
Address: 173.194.72.139
Name: youtube-ui-china.l.google.com
Address: 173.194.72.138
$ dig @192.168.1.1 www.youtube.com -p5353
; <<>> DiG 9.8.3-P1 <<>> @127.0.0.1 www.google.com -p5353
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16179
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.google.com. IN A

;; ANSWER SECTION:
www.google.com. 215 IN A 173.194.127.50
www.google.com. 215 IN A 173.194.127.49
www.google.com. 215 IN A 173.194.127.48
www.google.com. 215 IN A 173.194.127.52
www.google.com. 215 IN A 173.194.127.51

;; Query time: 197 msec
;; SERVER: 127.0.0.1#5353(127.0.0.1)
;; WHEN: Thu Jan 1 02:37:16 2015
;; MSG SIZE rcvd: 112

Currently ChinaDNS-C only supports UDP. Builtin OpenWRT init script works with
dnsmasq, which handles TCP. If you use it directly without dnsmasq, you need to
Expand All @@ -117,6 +120,8 @@ Advanced
-l IPLIST_FILE path to ip blacklist file
-c CHNROUTE_FILE path to china route file
if not specified, CHNRoute will be turned off
-d enable bi-directional CHNRoute filter
-y delay time for suspects, default: 0.3
-b BIND_ADDR address that listens, default: 127.0.0.1
-p BIND_PORT port that listens, default: 53
-s DNS DNS servers to use, default:
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.67])
AC_INIT([ChinaDNS-C], [1.1.9], [clowwindy42@gmail.com])
AC_INIT([ChinaDNS-C], [1.2.0], [clowwindy42@gmail.com])
AC_CONFIG_SRCDIR([src/chinadns.c])
AC_CONFIG_HEADERS([config.h])

Expand Down
Loading

0 comments on commit ee0d088

Please sign in to comment.