Commit Graph

77 Commits

Author SHA1 Message Date
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
kenshin
4cdcc43bc9 Merge pull request #11 from tgulacsi/negcache
Add negative cache
2015-02-25 13:50:09 +08:00
Tamás Gulácsi
6bbefe3f18 Add negative cache
Cache negative results, too, but only with half TTL, as configured.

Plus get rid of "mesg.Id = req.Id" data race (build with -race flag)
at once without locking.

Found another data race: delete must be protected with Lock,
RLock is not enough.
2015-02-13 07:05:12 +01:00
kenshinx
44b4cfa24e Update readme 2015-02-12 19:22:05 +08:00
kenshinx
8e36b0b62a Merge branch 'tgulacsi-parallel-nameservers' 2015-02-12 17:57:54 +08:00
kenshinx
d99d5902a1 Merged pull request kenshinx/godns#10 2015-02-12 17:19:46 +08:00
kenshin
0eb937934a Merge pull request #8 from tgulacsi/ns-ports
Allow non-standard nameserver ports
2015-02-12 16:31:15 +08:00
kenshinx
ef7d8f8fa2 Remove mutex lock during call dns.ResponseWriter.WriteMsg
Write io buffer needn't mutex operation.
Refere to kenshinx/godns#1
2015-02-12 16:06:09 +08:00
kenshinx
8e504da15a Adaptive with IPV6 in hosts records. 2015-02-12 14:54:02 +08:00
Tamás Gulácsi
f2449642b7 Allow non-standard namserver ports
For example Consul uses port 8600.
With this patch, I can add
  nameserver 127.0.0.1#8600
to my godns-specific resolv.conf.
2015-02-12 07:27:12 +01:00
kenshinx
81450a3983 Update hosts records as a regular interval
1. /etc/hosts will be update cycle instead of update once at the progress run
2. Avoid access redis in each requests
2015-02-12 14:09:49 +08:00
kenshinx
a5a8615b32 Keep consistence Host struct api 2015-02-11 18:01:05 +08:00
kenshinx
f32122d875 Remove needless blank line 2015-02-11 17:11:32 +08:00
kenshinx
ed0dd3006c Add link to blog 2015-02-11 11:13:05 +08:00
kenshinx
b24fe9ac4a CodeReviewComments#imports 2015-02-10 17:04:57 +08:00
kenshinx
5cc38b6668 #CodeReviewComments# imports standard library in the first group 2015-02-10 17:00:59 +08:00
kenshin
e145ef8873 Merge pull request #7 from bigeagle/upstream
Redis option and only cache successful lookups
2015-02-05 23:36:13 +08:00
bigeagle
d0f4170e35 only cache successful lookups 2015-02-05 19:38:42 +08:00
bigeagle
ccb72deec7 add option to disable redis 2015-02-05 19:37:57 +08:00
kenshinx
f1687a6040 Merge branch 'bigeagle-ip6' 2015-02-04 14:38:06 +08:00
kenshinx
6e45ca722d Append some debug log 2015-02-04 14:37:48 +08:00
bigeagle
ce840f4f50 add IPv6 support 2015-02-03 20:33:54 +08:00
kenshin
dd25168945 Merge pull request #4 from gabesullice/master
Fix some spelling and grammar in README.md
2014-12-09 09:40:33 +08:00
Gabe Sullice
0c9b557f0a Fix some spelling and grammar in README.md
A few minor spelling and grammatical fixes.
2014-12-08 10:52:59 -07:00