Commit Graph

105 Commits

Author SHA1 Message Date
kenshinx ea21c87183 Semicolon separate multiple domain list files and update examples 2018-02-01 19:22:45 +08:00
kenshinx dc60b4c9a2 Supplement test case, www.google.com should match /google.com/ 2018-02-01 18:39:40 +08:00
kenshinx 4b1d61a600 more pretty logging and ensure query the specific upstream nameserver in async Lookup() function. 2018-02-01 18:30:41 +08:00
kenshinx 063182e0bd use net.JoinHostPort instead of string join 2018-02-01 17:43:28 +08:00
kenshinx 43d8d65438 Extract public functions into utils 2018-02-01 17:09:02 +08:00
kenshinx 2e97278cb9 Merge https://github.com/bigeagle/godns into domain-specs-name-server
# Conflicts:
#	handler.go
#	hosts.go
#	hosts_test.go
#	resolver.go
#	settings.go
2018-02-01 15:39:47 +08:00
kenshin e742e5dce9 Merge pull request #32 from nutsteam/master
1. Handle multiple domain records in one line
2. Support non-standard domain, e.g. localhost
2017-07-10 19:49:30 +08:00
shuhai fa750269e7 处理一行多个域名,或者不是标准域名的情况 2017-07-10 18:26:48 +08:00
kenshinx 4201a5d5b8 Update documents 2017-05-18 18:28:23 +08:00
kenshinx 3be40025e0 fix: use sld match instead of string suffix match 2017-05-18 18:22:15 +08:00
kenshinx 5f42911d12 File hosts support widlcard #31 2017-05-18 18:10:33 +08:00
kenshinx 829c7af1bc fix: concurrent iteration map need lock. 2017-05-18 17:29:56 +08:00
kenshinx 4d3d475c27 Support for larger UDP DNS responses #30
As [RFC6891](https://tools.ietf.org/html/rfc6891) define, Extension Mechanisms for DNS(EDNS(0)) can make UDP DNS response packets reach max 65535 bytes and breakthrough the early [RFC1035](‘https://tools.ietf.org/html/rfc1035’) 512 limitation.
2017-02-15 01:08:08 +08:00
kenshin 7d1f6af220 Merge pull request #29 from HorayNarea/master
use net.JoinHostPort() instead of string-join directly
2017-02-08 10:20:36 +08:00
Thomas Sänger 4a66022d50 use net.JoinHostPort() 2017-02-07 06:07:58 +01:00
kenshin 9e3c916046 Merge pull request #25 from dbalan/memcached_backend_support
Memcached backend support
2017-01-19 12:06:14 +08:00
Dhananjay Balan 0f184ca72b Revert default config changes. 2017-01-18 16:07:54 +01:00
kenshin eee2400d76 Merge pull request #27 from h4ck3rm1k3/patch-1
Update README.md
2016-09-28 10:06:01 +08:00
James Michael DuPont 0cfd863c01 Update README.md 2016-09-27 07:27:36 -04:00
kenshinx 8492d8c679 Make host records refresh interval be configurable 2016-09-18 12:04:21 +08:00
kenshinx 8e14764aa7 #26
1.Ensure hosts records refresh and get operation is thread safe.
2. Clear redis backend hosts records  during refresh operation.
2016-09-06 12:02:20 +08:00
kenshinx 4275900fb2 Add ToLower to all domain fields #24 2016-02-15 12:34:24 +08:00
Dhananjay Balan 790acb55da Use pack and unpack from dns library. 2016-02-13 15:25:19 +05:30
Dhananjay Balan 8c4b338257 Add intial memcache support.
FIXME: serialization needs work.
2016-02-12 21:38:48 +05:30
Dhananjay Balan b541f6e371 Add memcache config entries 2016-02-12 18:59:25 +05:30
kenshinx fde6624777 Merge from #21, Make difference response between SERVFAIL and NXDOMAIN #20 2015-10-30 12:24:22 +08:00
kenshinx 0c1b4738cd Clear file-backend hosts cache. 2015-10-20 14:01:41 +08:00
kenshinx 48b8c9a58e Default log level: INFO 2015-10-20 13:59:22 +08:00
kenshin 747c20b0fc Update README.md 2015-10-15 19:49:54 +08:00
kenshinx 7b65c176dd Update document 2015-10-15 19:16:05 +08:00
kenshinx 6e2c310fc8 typo 2015-10-15 19:12:59 +08:00
kenshinx bf6cad986a Remove blank line. 2015-10-15 11:00:09 +08:00
kenshinx a78e7fbdf7 Update version & close debug default 2015-10-15 01:11:04 +08:00
kenshinx 21448a51e2 Support multiple A entries refer: #17 2015-10-15 01:08:25 +08:00
kenshinx dcf31e1b22 Only redis-backend hosts support wildcard
I don't break the `/etc/hosts` standard that defined in man pages.
2015-10-15 00:40:34 +08:00
kenshinx 44a3923878 CPU & MEM pprof output #12 2015-10-14 15:21:21 +08:00
kenshinx c37e8c947b typo 2015-10-14 15:19:28 +08:00
kenshinx c5e01db7b5 Host records support wildcard #16 2015-10-14 12:41:08 +08:00
kenshinx a320fe0eb7 Remove useless code 2015-10-14 10:37:12 +08:00
kenshinx cd272bf769 Pretty log output 2015-10-14 01:00:28 +08:00
kenshinx 3f70c993a8 Create Hosts object after the enable option has been checked. 2015-10-13 23:29:28 +08:00
kenshinx d0956e90f5 Add log related configuration. 2015-10-13 19:35:29 +08:00
kenshinx 0ee6f08a1d Use wrapped logger type rather than system raw logger lib. 2015-10-13 19:33:51 +08:00
kenshinx 8152713ad2 Log Module
support file and console handler
2015-10-13 18:44:42 +08:00
kenshinx 88badfcf44 Fix error assert. 2015-10-13 18:12:09 +08:00
kenshinx 61f68d2b27 Reinforced domain regex match 2015-07-07 17:32:45 +08:00
kenshinx 5c651bacf3 Oops. Forgot close file handler. 2015-06-12 12:04:23 +08:00
kenshinx 1b660a33ff godns under the MIT license 2015-05-25 17:18:57 +08:00
kenshinx 85db0379ae Merge branch 'master' of https://github.com/kenshinx/godns 2015-05-07 17:59:22 +08:00
kenshinx cf02889c62 Make upstream query interval configurable match the PR #15 2015-05-07 17:58:31 +08:00