John Maguire
3aedea8798
Win32/MinGW support.
2013-01-17 16:24:10 +01:00
A Weinlein
3acbda1c5d
Added API and test to add additional RRs (lAAAA RRs i.e.)
2012-12-21 18:02:50 +01:00
Darell Tan
70b254aec8
Bugfix: populate_answers() was not adding records if type is RR_ANY (since rev ea6495c).
2012-10-17 22:59:22 +08:00
Darell Tan
ac1908875b
Check TTL in known-answers list and only reply if it's less than half.
...
This ensures we still update responders that do not remove records that are about to expire (with less than half of the actual TTL).
2012-10-17 21:57:15 +08:00
Darell Tan
c821cdcbe4
Added more debugging statements.
2012-10-17 21:31:36 +08:00
Darell Tan
c4993739f5
Bugfix: when matching RR entries, sometimes the name and type are not sufficiently unique.
...
- Added rr_entry_match() to search for an exact RR entry. For most RRs,
matching its name is sufficient but for PTRs, its target needs to be
matched as well.
- Rewrote populate_answers() logic to make sure all matching RRs (by
name and type) are added.
- When responding, populate our answers first, then check them against
the Known-Answer list.
2012-10-15 22:47:15 +08:00
Darell Tan
0fcbc3fe4b
Bugfix: solved 100% CPU usage due to select() not blocking and forgetting to flush the notify_pipe.
2012-10-13 00:58:50 +08:00
Darell Tan
3148bb394d
Changed licensing terms to the "modified" BSD license.
2012-03-26 23:03:55 +08:00
Darell Tan
0051057605
Initial commit.
2011-04-10 21:51:52 +08:00