Commit Graph

31 Commits

Author SHA1 Message Date
Tyler 3383c5e4f9 Changes to allow host "Set" to be standard, providers being able to use other query types, cache all responses, etc.
continuous-integration/drone/push Build is passing Details
2020-02-07 22:38:22 -05:00
Tyler f726a5d5ae Redo settings a bit, move a lot of init logic to main.go
continuous-integration/drone/push Build is passing Details
2020-01-25 13:48:26 -05:00
Tyler 3122096982 Initial restructure of server
continuous-integration/drone/push Build is failing Details
2020-01-25 12:43:02 -05:00
Tyler adf6a32039 Redis caching 2018-07-01 11:49:24 -04: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
Dhananjay Balan 8c4b338257 Add intial memcache support.
FIXME: serialization needs work.
2016-02-12 21:38:48 +05:30
kenshinx 21448a51e2 Support multiple A entries refer: #17 2015-10-15 01:08:25 +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 0ee6f08a1d Use wrapped logger type rather than system raw logger lib. 2015-10-13 19:33:51 +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 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
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 f32122d875 Remove needless blank line 2015-02-11 17:11:32 +08:00
bigeagle d0f4170e35 only cache successful lookups 2015-02-05 19:38:42 +08:00
kenshinx 6e45ca722d Append some debug log 2015-02-04 14:37:48 +08:00
bigeagle b3b3939122 only cache successful lookups 2015-02-03 23:20:36 +08:00
bigeagle 624a46fddc dnsmasq style domain specific server supported 2015-02-03 22:53:57 +08:00
bigeagle ce840f4f50 add IPv6 support 2015-02-03 20:33:54 +08:00
Murilo Santana 82294d7f01 locks 2013-12-12 10:31:26 -02:00
kenshin 9ddf8a8939 finally. fix hosts query 2013-07-26 18:54:19 +08:00
kenshin d22885557f read local hosts file 2013-07-26 12:06:16 +08:00
kenshin 84d878c03d cache add expire strategy 2013-07-25 00:09:07 +08:00
kenshin f30e0ba257 add redid cache backend in todo list 2013-07-24 22:40:18 +08:00
kenshin 0dfc4bf100 refactor memory cache into map[string]dns.Msg 2013-07-24 19:01:31 +08:00
kenshin 51be27eee9 memory cache with map[string]string 2013-07-24 18:48:43 +08:00
kenshin 57304bf910 Memory cache implemented 2013-07-24 18:29:38 +08:00
kenshin 2d49200a53 exception handle 2013-07-24 10:52:59 +08:00
kenshin 22a31dcd98 The recursion resolve can work 2013-07-24 00:37:38 +08:00
kenshin 5349b53416 first commit 2013-07-23 19:10:38 +08:00