Commit Graph
2 Commits
Author SHA1 Message Date
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
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