Commit Graph

694 Commits

Author SHA1 Message Date
wouter
210d64fcb0 - Configure detects libev-4.00.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2322 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-10-29 15:03:20 +00:00
wouter
eabdaa2eb4 - Fix uninit value in dump_infra print.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2320 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-10-29 10:20:40 +00:00
wouter
39e2528d5b Fix compile in alloccheck case.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2317 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-10-27 13:59:17 +00:00
wouter
d71a3cf1ca nicer output from debug commands
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2314 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-10-27 08:09:22 +00:00
wouter
682e6f70c0 - Change of timeout code. No more lost and backoff in blockage.
At 12sec timeout (and at least 2x lost before) one probe per IP
  is allowed only.  At 120sec, the IP is blocked.  After 15min, a
  120sec entry has a single retry packet.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2311 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-10-26 15:02:08 +00:00
wouter
dcd8a97b63 neater API for unbound-control lookup.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2310 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-10-26 13:43:28 +00:00
wouter
ef38180e0e remove lost and backoff values.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2309 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-10-26 13:30:37 +00:00
wouter
786b9481fa dump_infra and flush_infra commands for unbound-control.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2306 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-10-26 09:08:33 +00:00
wouter
c126a3de01 - Fix bug where fallback_tcp causes wrong roundtrip and edns
observation to be noted in cache.  Fix bug where EDNSprobe halted
  exponential backoff if EDNS status unknown.
- new unresponsive host method, exponentially increasing block backoff.
- iana portlist updated.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2303 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-10-21 15:11:39 +00:00
wouter
fb58f612d9 more send_packet defs removed
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2223 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-08-20 13:37:19 +00:00
wouter
911eba0f73 - openbsd-lint fixes: acl_list_get_mem used if debug-alloc enabled.
iterator get_mem includes priv_get_mem.  delegpt nodup removed.
  listen_pushback, query_info_allocqname, write_socket, send_packet,
  comm_point_set_cb_arg and listen_resume removed.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2222 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-08-20 13:30:41 +00:00
wouter
6f7205f522 add and fix doxygen comments for doxygen-1.7.1. (which reports lots of
spurious items as well, by the way).


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2211 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-08-13 08:41:49 +00:00
wouter
9cb5d00f5f More pleasant remote control command name parsing.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2210 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-08-13 08:14:14 +00:00
wouter
ac39fd59a8 more error details on failed remote control connection.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2201 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-07-22 11:50:28 +00:00
wouter
07d7f2243e fix rlimit adjustments.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2199 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-07-15 13:08:45 +00:00
wouter
388c46ddb0 Not enough file descriptors is not fatal, it gets adjusted and warned.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2192 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-07-13 07:29:01 +00:00
wouter
34fef67b47 - Neat function prototypes, unshadowed local declarations.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2188 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-07-07 13:13:36 +00:00
wouter
c89c623b52 Failure to chown pidfile is not fatal any more.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2182 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-07-06 09:10:12 +00:00
wouter
4a64e4916f * Check for setrlimit separate from getrlimit.
* include sys/time.h for struct timeval definition
* cast for printf, on Minix.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2177 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-07-05 14:20:24 +00:00
wouter
c4b4b1ab3b - added feature to print configure date, target and options with -h.
- added feature to print event backend system details with -h.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2175 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-07-05 13:10:49 +00:00
wouter
6bcdb68292 - Fix the max number of reply-address count
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2171 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-06-28 12:50:04 +00:00
wouter
f1d40b0392 Fix for clean SSL exit.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2164 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-06-23 07:46:46 +00:00
wouter
5551c39f5c #if is the right thing
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2163 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-06-23 07:15:43 +00:00
wouter
1304bf3a04 better ifdef
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2162 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-06-22 14:32:08 +00:00
wouter
48fffdadf5 Fix to unload gost dynamic library module for leak test.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2161 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-06-22 12:27:19 +00:00
wouter
42b6a2190c review fixes.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2138 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-06-03 13:38:09 +00:00
wouter
9d31e30c81 Fix various compiler warnings from the clang llvm compiler.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2111 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-05-18 12:37:04 +00:00
wouter
cc89cee01f GOST support.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2065 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-04-06 12:15:19 +00:00
wouter
963cb57146 - Fix EDNS probe for .de DNSSEC testbed failure, where the infra
cache timeout coincided with a server update, the current EDNS 
  backoff is less sensitive, and does not cache the backoff unless 
  the backoff actually works and the domain is not expecting DNSSEC.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2063 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-04-06 08:35:37 +00:00
wouter
05c33f55cc unbound control removed items are not counted again.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2061 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-03-24 14:44:35 +00:00
wouter
c046d1d839 Fixed random numbers for port, interface and server selection.
Removed very small bias.
Also some lint fixes.



git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2049 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-03-18 14:42:22 +00:00
wouter
5fb04b1a9c Move includes to code files.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2035 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-03-12 15:17:48 +00:00
wouter
e5a4a85ead Fix daemonize on Solaris 10.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2026 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-03-11 13:28:53 +00:00
wouter
b56108adb3 list_local_zones and list_local_data.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1996 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-02-26 16:14:00 +00:00
wouter
9d9f0dcfd3 unbound-control list_stubs and list_forwards.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1995 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-02-26 15:40:46 +00:00
wouter
f23cf699bf Better prototype.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1994 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-02-26 11:05:49 +00:00
wouter
fdd0dd17cd get and set option more accessible.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1990 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-02-23 13:53:10 +00:00
wouter
be64e9cc7e reopen and move of get_option to util.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1989 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-02-18 16:40:22 +00:00
wouter
988cdf0808 work on prefetch: store the updated results in the cache.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1954 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-01-08 15:59:36 +00:00
wouter
9bb2c1c259 Stats for prefetch. unbound_munin_ plugin updated.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1952 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-01-07 16:06:26 +00:00
wouter
2a29e7923e Doc fix and work on prefetch feature.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1951 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-01-07 14:38:18 +00:00
wouter
da1df74a83 more verbose output to describe lame addresses.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1949 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-01-06 13:15:21 +00:00
wouter
170bc60cb6 Fix lookup of domains with parent-child zonecut data differences.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1929 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-12-08 13:37:59 +00:00
wouter
a122bc0d8b fixup spinning
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1919 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-11-23 12:12:59 +00:00
wouter
344beb095b review fixes.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1897 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-11-10 16:02:05 +00:00
wouter
4644da1cac please lint on FreeBSD6
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1889 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-11-05 11:12:06 +00:00
wouter
4debdd93e8 lint fixes on FreeBSD 7.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1888 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-11-05 10:39:12 +00:00
wouter
d55ef3d18c do-udp: no fixed.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1882 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-10-29 12:11:38 +00:00
wouter
7acf38ac32 - Made new validator error string available from libunbound for
applications.  It is in result->why_bogus, a zero-terminated string.
	  unbound-host prints it by default if a result is bogus.
	  Also the errinf is public in module_qstate (for other modules).
	Binary API different. bumped library ABI version.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1874 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-10-08 17:05:53 +00:00
wouter
971004b350 Fix autotrust-5011 file used from libunbound (no probing by itself because
it may not have the processor whenever it likes).


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1857 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-10-02 08:08:44 +00:00
wouter
5d07c6ae3c revocation of trust anchors works.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1846 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-09-22 14:04:43 +00:00
wouter
1ad05059ee Memory leak fix.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1832 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-09-16 12:47:56 +00:00
wouter
61f750266d lint fix
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1821 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-09-08 08:24:44 +00:00
wouter
76d6f637e5 Fixups.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1820 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-09-08 07:20:47 +00:00
wouter
7bc0cca2bf active probe
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1802 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-09-01 14:47:57 +00:00
wouter
17d704b1aa do not confuse lint
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1797 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-09-01 09:48:57 +00:00
wouter
e947c5b54f variable processing.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1795 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-08-31 15:58:38 +00:00
wouter
891008778a try again
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1794 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-08-28 10:22:44 +00:00
wouter
416ebfcd74 please lint
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1793 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-08-28 09:49:11 +00:00
wouter
5a7356ca33 Fixup unbound-control for forwards and stubs.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1792 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-08-28 09:43:05 +00:00
wouter
d6a58dba46 autotrust probing and testbound with fake timer support.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1787 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-08-26 13:23:49 +00:00
wouter
310d358c89 clean up on exit because otherwise re-lex may not be possible
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1786 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-08-25 15:37:02 +00:00
wouter
c0b44d0a25 configure detect ssl get_compression_methods and ctime_r fix.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1780 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-08-25 13:05:31 +00:00
wouter
a1811bccb0 revoke point handling
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1777 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-08-25 10:02:17 +00:00
wouter
9043eac04d Cleaner memleak output.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1772 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-08-24 15:30:05 +00:00
wouter
59f0039bba autotrust test routines.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1771 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-08-24 14:40:25 +00:00
wouter
9b56161dd9 Blacklist when 16 queries fail in a row.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1764 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-08-17 12:43:23 +00:00
wouter
98a2d20556 report RTT
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1761 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-08-14 08:35:46 +00:00
wouter
79363fc5ea OpenSSL config() and small memory leak. No more ENGINE_load_gost().
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1750 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-08-07 15:23:35 +00:00
wouter
96c6d3daf3 GOST support with --enable-gost.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1747 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-08-06 13:38:55 +00:00
wouter
26e35cccfc Prettier, comments from Jelte.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1698 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-07-06 09:34:47 +00:00
wouter
6d1db4997a check messages taken from cache, also in iterator.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1662 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-06-16 12:03:41 +00:00
wouter
e666a96c36 mesh callbacks review, call error if deleted unfulfilled, check fptr wlist.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1652 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-06-12 07:53:36 +00:00
wouter
b2ae85bb57 recommit 9 June 2009.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1646 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-06-11 09:43:23 +00:00
wouter
cfc0a74269 Fix IPv6 detection on XP.
Fix loop to service on quit when there are messages waiting.

git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1624 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-05-27 08:24:19 +00:00
wouter
d24b90660c Windows handle leakage fixes: closesocket or else the networkstack leaks handles (for ever, even after closing the application), and use own mutex implementation (whee!).
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1622 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-04-29 15:23:08 +00:00
wouter
7a2521a724 Fix for flush_zone
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1580 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-04-02 11:56:01 +00:00
wouter
7736e091dc Read dev/random before chroot.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1567 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-03-30 12:16:21 +00:00
wouter
3fc7e522d9 nicer -h output
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1562 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-03-27 13:09:00 +00:00
wouter
3f805f0c3d python work
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1561 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-03-26 15:47:45 +00:00
wouter
9bd4eaf514 Neater configure and no double config.h includes.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1545 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-03-24 10:42:57 +00:00
wouter
837878c5cc launchd plist file, and deprecation test for MacOSX use of daemon(3).
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1542 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-03-23 11:22:57 +00:00
wouter
4f8f64499f update anchors on win.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1524 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-03-12 16:31:57 +00:00
wouter
47844cdccd windows work.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1520 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-03-11 16:32:07 +00:00
wouter
bea7f7617f XP tested. winsock event handler fixed for signal events. Neater code integration.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1517 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-03-11 11:02:34 +00:00
wouter
d0c66259bf windows registry settings.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1509 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-03-03 15:55:02 +00:00
wouter
37208ec3d5 mingw work.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1506 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-03-02 16:43:10 +00:00
wouter
23a4a30d63 services api integration.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1501 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-02-27 16:29:40 +00:00
wouter
827f9bfef1 forward command for unbound-control.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1482 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-02-13 15:26:37 +00:00
wouter
5065a634c2 show fwders in use.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1481 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-02-12 16:11:53 +00:00
wouter
5e2773f065 flush_requestlist feature for unbound-control.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1479 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-02-12 13:21:19 +00:00
wouter
ba6e303e45 stats_noreset feature for unbound-control
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1478 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-02-12 11:41:51 +00:00
wouter
ce503cc9e8 flush_stats feature for unbound-control.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1477 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-02-12 10:37:00 +00:00
wouter
9326588875 and include...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1476 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-02-12 09:02:12 +00:00
wouter
affb4534da use setusercontext(3).
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1474 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-02-12 08:06:47 +00:00
wouter
d4801f9030 dump_requestlist feature.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1473 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-02-10 15:11:54 +00:00
wouter
5c9d71f968 neater code
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1467 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-02-06 12:56:45 +00:00
wouter
0009c90ef8 log querier on verbosity 5 or higher.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1461 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-02-06 10:37:20 +00:00
wouter
cdb026c957 use daemon(3).
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1455 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-02-05 14:23:24 +00:00
wouter
bef9645ac6 call initgroups.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1453 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-02-05 11:12:01 +00:00
wouter
ddbd7a47c7 - noted feature requests in doc/TODO.
- printout more detailed errors on ssl certificate loading failures.



git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1445 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-02-03 09:55:35 +00:00
wouter
e84409c12f fixes for suncc warnings
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1438 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-01-15 10:29:17 +00:00
wouter
20f93f79c6 - 1.2.1 feature: negative caching for failed queries.
Queries that failed are cached for 5 seconds (NORR_TTL).
	  If the failure is local, like out of memory, it is not cached.
	- the TTL comparison for the cache used different comparisons,
	  causing many cache responses that used the iterator and validator
	  state machines unnecessarily.



git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1432 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-01-14 09:38:15 +00:00
wouter
fc9b499c0c type fixup
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1416 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-01-07 14:30:43 +00:00
wouter
7bd73ba9ca chrooted include file fix
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1411 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-01-06 15:47:15 +00:00
wouter
bc37d19ce1 Fixup assertion failure for certain malformed packets.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1407 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-01-06 10:00:28 +00:00
wouter
e10e574de4 - added L.ROOT-SERVERS.NET. AAAA 2001:500:3::42 to builtin root hints.
- fixup so it works with libev-3.51 from http://dist.schmorp.de/libev/
- comm_timer_set performs base_set operation after event_add.



git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1406 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-01-05 15:05:33 +00:00
wouter
611bdfc64f fixup getaddrinfo failure handling reported by Matthijs.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1405 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-01-05 08:30:25 +00:00
wouter
1dfe9e6d61 fixup reopen of syslog to avoid dev/log dependency and log missing after HUP.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1403 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-12-18 14:36:58 +00:00
wouter
8490cb235e ipv6 counter in extended statistics.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1397 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-12-17 14:50:03 +00:00
wouter
2da85eb762 unbound-control status command.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1395 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-12-17 14:03:49 +00:00
wouter
e72a2d8eee better #219 fix.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1386 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-12-11 08:14:22 +00:00
wouter
7899ee9c67 fixup remote control so most commands work in nonthreaded environment.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1382 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-12-03 15:20:56 +00:00
wouter
4832d7d4a5 Fix bug reported by Jaco with non-threaded unbound and statistics.
iana portlist updated.



git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1380 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-12-03 13:52:00 +00:00
wouter
ce31d1162b nicer comments
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1366 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-11-20 09:48:36 +00:00
wouter
4a9dc66956 rlimit formula
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1365 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-11-20 09:20:10 +00:00
wouter
cc9dbe3739 fix bug #219.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1363 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-11-19 16:05:23 +00:00
wouter
fc7e61968f review comments.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1350 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-11-13 13:45:27 +00:00
wouter
420bb13b3c neater comments
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1347 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-11-13 10:19:14 +00:00
wouter
8161290629 fixup wrap around for very large mem usage on printout.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1343 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-11-11 13:47:25 +00:00
wouter
c95412e5eb - unit test for negative cache, stress tests the refcounting.
- fix for refcounting error that could cause fptr_wlist fatal exit
	  in the negative cache rbtree (upcoming 1.1 feature). (Thanks to 
	  Attila Nagy for testing).
	- nicer comments in cachedump about failed RR to string conversion.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1342 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-11-11 11:54:06 +00:00
wouter
c3d3bd2aa5 Fix bug #217
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1336 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-11-07 09:24:39 +00:00
wouter
ba1299b375 fixup memleaks.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1331 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-11-05 10:38:22 +00:00
wouter
d0b7ea1e50 write-strings warnings fixed.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1330 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-11-04 14:53:50 +00:00
wouter
04ffe11ee9 unwanted reply threshold like in the draft.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1321 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-10-22 14:36:46 +00:00
wouter
0c7257e644 ported 1.1 to windows.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1316 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-10-21 13:00:07 +00:00
wouter
82587bbd9a Do not query bogus name servers.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1312 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-10-20 13:51:47 +00:00
wouter
ae55c7b123 typefix
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1307 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-10-17 09:10:24 +00:00
wouter
a3f550e8f6 Fixup negative TTLs Attila Nagy has reported.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1306 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-10-16 13:12:32 +00:00
wouter
a2c3b61c68 0x20 fallback code.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1285 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-10-06 14:46:22 +00:00
wouter
a9c74ae17f fixup pidfile unlink.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1278 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-10-02 08:47:21 +00:00
wouter
5ab29cef3b remote control tests.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1270 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-26 13:02:34 +00:00
wouter
3a10f7e4ab flush data from cache.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1268 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-23 14:07:02 +00:00
wouter
c8f39cf0a7 lookup delegation from cache and printout.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1266 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-23 10:55:36 +00:00
wouter
3de2c0e61b load from cache works
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1265 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-23 09:23:38 +00:00
wouter
c6b55e1622 cache dump and load files
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1264 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-22 18:05:22 +00:00
wouter
d1ccb2e4c4 dump and load cache.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1263 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-22 15:20:18 +00:00
wouter
af05e11f7c add remove local data and local zone with remote control
(ldns-testpkts sync with ldns trunk).


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1261 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-19 14:49:29 +00:00
wouter
e8689a3a42 histogram support for stats.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1258 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-18 14:37:20 +00:00
wouter
542a62cde8 nice names for high query types.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1249 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-18 08:38:53 +00:00
wouter
526eed4c74 Fixup error in time calculation.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1247 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-18 07:55:01 +00:00
wouter
d63cf0869e print uptime always.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1246 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-17 16:45:32 +00:00
wouter
e2f0794a92 rcode stat printout fixed.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1244 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-17 11:33:40 +00:00
wouter
f2c643c169 threadsafe rrset counter.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1240 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-17 07:13:31 +00:00
wouter
6791fa38ec extended statistics.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1239 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-16 14:08:38 +00:00
wouter
2c4feef3ba verbosity and stats control.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1237 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-15 14:19:41 +00:00
wouter
08f31399a3 start, stop, reload commands.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1235 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-15 08:35:45 +00:00
wouter
fb5e76e515 remote setup.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1234 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-12 13:01:20 +00:00
wouter
4bf955bd96 neater.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1232 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-11 14:56:46 +00:00
wouter
fd4ceda957 fixup.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1231 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-11 14:55:50 +00:00
wouter
30af8be06a control channel security.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1229 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-11 14:14:12 +00:00
wouter
d0a4ad4331 remote control setup, port binding and service.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1227 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-10 15:23:01 +00:00
wouter
289d02effe refactored code.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1225 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-04 14:29:05 +00:00
wouter
2b0b077fd6 DoS protection.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1221 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-02 13:04:47 +00:00
wouter
edbb692b82 do not allow cache snooping by default.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1220 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-09-01 13:48:24 +00:00
wouter
b3c9d9e1b0 logfile creation fixup.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1214 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-08-28 09:02:48 +00:00
wouter
c3fdf2a59c bug #199.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1212 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-08-27 11:29:46 +00:00
wouter
5e4440c44b Remove daemon(3) usage.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1211 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-08-27 06:17:55 +00:00
wouter
e2f08030e9 use daemon(3) if available.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1210 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-08-26 12:47:26 +00:00
wouter
9eafd36201 Drop privileges more.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1209 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-08-26 12:11:42 +00:00
wouter
b33f56095a more fixup pthreads compile.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1184 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-08-11 14:02:37 +00:00
wouter
7b966b46e5 Fixup compilation without pthreads.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1183 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-08-11 13:58:33 +00:00
wouter
95a6472bea print openssl version.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1168 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-07-25 11:33:31 +00:00
wouter
9d25fafcf4 - moved pipe actions to util/tube.c. easier porting and shared code.
- check _raw() commpoint callbacks with fptr_wlist.
- iana port update.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1163 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-07-23 09:23:03 +00:00
wouter
748f4967c1 please doxygen, fixup fake func prototypes and make typedef more portable.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1160 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-07-18 15:29:33 +00:00
wouter
e1209561f7 tube work for mingw port.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1159 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-07-18 15:06:59 +00:00
wouter
decf4b67e6 fds max test before start.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1156 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-07-17 10:07:40 +00:00
wouter
b5a10b0a5b - lowered log_hex blocksize to fit through BSD syslog linesize.
- no useless initialisation if getpwnam not available.
- iana, ldns snapshot updated.



git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1150 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-07-15 15:05:12 +00:00
wouter
11c5d9d992 iana update.
checklocks.c is not in the compile path for production code anymore.



git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1129 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-06-24 09:24:08 +00:00
wouter
0e29d42fa7 winsock_event handler, working resolution and validation on windows.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1124 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-06-17 14:57:18 +00:00
wouter
b8c7c01713 set USE_WINSOCK if on windows. error string routine. start and clean winsock.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1123 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-06-16 15:02:52 +00:00
wouter
c732e97f8f windows threads. detect gdi32. nicer DISABLED_THREADS define. Compiles on mingw32.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1122 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-06-16 13:39:46 +00:00
wouter
ec5253b25a - mingw32 porting.
- test for sys/wait.h
          - WSAEWOULDBLOCK test after nonblocking TCP connect.
          - write_iov_buffer removed: unused and no struct iov on windows.
          - signed/unsigned warning fixup mini_event.
          - use ioctlsocket to set nonblocking I/O if fnctl is unavailable.
          - skip signals that are not defined
          - detect pwd.h.
          - detect getpwnam, getrlimit, setsid, sbrk, chroot.
          - default config has no chroot if chroot() unavailable.
          - if no kill() then no pidfile is read or written.
          - gmtime_r is replaced by nonthreadsafe alternative if unavail.
            used in rrsig time validation errors.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1097 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-05-23 14:13:07 +00:00
wouter
e57edfcbd3 mingw port.
relabel replaced functions to avoid conflicts with library.

git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1093 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-05-22 13:30:22 +00:00
wouter
4d42e44834 Fix bug #175.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1090 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-05-22 09:00:56 +00:00
wouter
01915f5b6f Fixup.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1070 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-04-24 13:03:59 +00:00
wouter
191762f4c4 chroot more tests and more documentation.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1067 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-04-24 12:37:01 +00:00
wouter
698d35713f SIGPIPE ignore.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1062 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-04-22 10:19:24 +00:00
wouter
53b023a2c2 fixup chroot and kill-HUP reread of config file.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1061 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-04-21 11:34:25 +00:00
wouter
5ed2d6c1a6 porting.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1056 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-04-16 16:09:25 +00:00
wouter
efd453c4cc - removed base_port.
- created 256-port ephemeral space for the OS, 59802 available.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1030 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-04-11 14:10:16 +00:00
wouter
efa3e15e34 - random port selection out of the configged ports.
- fixup threadsafety for libevent-1.4.3+ (event_base_get_method).



git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1029 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-04-11 13:24:49 +00:00
wouter
b0e4db5b70 config available ports, iana assigned ports list.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1025 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-04-09 15:07:37 +00:00
wouter
e9a7e055f1 statistics cumulative option.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1024 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-04-09 12:29:53 +00:00
wouter
3494e93d6b - unbound tries to set the ulimit fds when started as server.
if that does not work, it will scale back its requirements.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1022 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-04-08 15:02:52 +00:00
wouter
a792f387a1 can use DNS-0x20 draft casing.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@994 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-02-27 09:21:31 +00:00
wouter
242711485f Answers use same case as query does.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@993 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-02-26 20:45:20 +00:00
wouter
38c018e539 - setup speec_cache for need-ldns-testns in dotests.
- check number of queued replies on incoming queries to avoid overload
         on that account.
       - fptr whitelist checks are not disabled in optimize mode.



git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@971 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-02-20 07:18:42 +00:00
wouter
cf50a0bcb7 Faster due to time-sharing.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@966 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-02-19 13:12:23 +00:00
wouter
b3cb028f39 start without a config file (all default settings).
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@953 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-02-14 10:37:32 +00:00
wouter
f03952e434 print version.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@950 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-02-13 13:24:41 +00:00
wouter
92c6a825ef stats output text nice.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@943 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-02-11 09:19:32 +00:00
wouter
c827907284 unsigned cast for prints.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@933 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-02-07 14:55:27 +00:00
wouter
e2ce21cf4d move around debug levels.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@929 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-02-07 09:46:49 +00:00
wouter
adbf9c78a5 nicer printout.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@923 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-02-06 10:13:26 +00:00
wouter
d72f75b70f statistics-interval config setting.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@917 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-02-05 10:23:44 +00:00
wouter
cc9383160f Fixup getmem.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@915 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-01-31 15:09:24 +00:00
wouter
86f9eb4fdc fixes for random number badness (lack of entropy and SIGFPE from RAND_cleanup
too early).


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@907 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-01-28 14:34:53 +00:00
wouter
e49c32a5b5 TC bit is formerr.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@866 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-01-16 08:53:56 +00:00
wouter
bdb854787d interface-automatic (IP6mapped, good for anycast service and so on).
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@847 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-01-15 09:45:30 +00:00
wouter
f0e25894d8 more portable libtool linking of included ldns package.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@835 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-01-10 11:47:07 +00:00
wouter
d1d55313d2 library resolution working.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@809 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-12-06 15:11:07 +00:00
wouter
a1ba0ccb3f coverity run fixes.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@803 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-12-04 17:54:14 +00:00
wouter
3e93ce7cd4 makefile nit and modstack.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@801 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-12-04 13:23:41 +00:00
wouter
1043ae82cc log verbosity
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@784 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-11-28 09:34:06 +00:00
wouter
ce61d0dac6 local zone answers.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@775 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-11-22 13:48:58 +00:00
wouter
3c2b5e4327 defaults.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@774 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-11-22 09:30:44 +00:00
wouter
4706faa6c4 localzone and localdata configuration setup.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@771 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-11-20 14:48:33 +00:00
wouter
4b1dc70de7 access-control
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@769 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-11-19 15:32:55 +00:00
wouter
b070c0b1f5 acl list setup. 8 to tab in net_help.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@753 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-11-16 16:25:37 +00:00
wouter
bc31ff0f22 review fixups.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@748 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-11-15 14:27:47 +00:00
wouter
57a562b5fd - bugreports to unbound-bugs@nlnetlabs.nl
- fixup testbound so it exits cleanly.
       - cleanup the caches on a reload, so that rrsetID numbers won't clash.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@740 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-11-12 13:58:34 +00:00
wouter
0d37d88043 Fixup for signal handling. No more dangling unbound processes after
test suite.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@739 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-11-12 11:10:11 +00:00
wouter
ba622ef31a default config file location, example conf installed.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@736 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-11-09 13:52:13 +00:00
wouter
b649c1c530 Fixup chroot (Thanks Jakob).
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@733 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-11-08 10:44:30 +00:00
wouter
f748f45caa alloc id overflow handling.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@729 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-11-01 14:39:50 +00:00
wouter
e26d35a679 touch up clear and verbose.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@728 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-11-01 13:22:12 +00:00
wouter
2a153fc986 chroot fixup.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@727 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-11-01 12:48:37 +00:00
wouter
1c77a4eb14 better chroot support, and also default chroot and userchange.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@723 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-31 10:56:31 +00:00
wouter
9e3c2e34e2 max ttl option.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@721 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-31 07:46:30 +00:00
wouter
a188005eb7 overload mode: too many queries situation is detected and queries are dropped.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@717 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-23 14:44:51 +00:00
wouter
36c9ef2734 nicer error, random() improved.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@707 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-19 12:10:13 +00:00
wouter
b66b29f6da outgoing interfaces setting possible.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@704 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-19 08:32:36 +00:00
wouter
ae66969d39 - lex fix
- unsecure validation neater
- const cast warning removal


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@702 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-19 08:03:08 +00:00
wouter
4bcd6aac94 regional nicer, remove region-allocator.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@697 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-18 20:31:43 +00:00
wouter
9de5de90a6 Tests update.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@693 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-18 09:24:57 +00:00
wouter
28e9a2eb92 fixup insecure glue on referrals.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@688 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-17 15:48:54 +00:00
wouter
0463aa9cb2 buffer overflow code audit.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@680 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-16 13:03:57 +00:00
wouter
8b95e7f068 assertions, zero termination for gethostname, log_hex without malloc.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@679 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-16 12:26:09 +00:00
wouter
28366a0fb5 Fixup compression, and test for byteformat compression results.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@676 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-15 14:19:17 +00:00
wouter
bfe0a67624 no more AD bits, except when DO is set.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@672 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-09 15:33:40 +00:00
wouter
4a16619746 cleaner.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@669 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-09 07:53:35 +00:00
wouter
17df78db8d No early logfile open.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@667 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-09 07:43:32 +00:00
wouter
c71a023df2 logfile first open bad permissions.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@666 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-09 07:11:14 +00:00
wouter
d98d595172 fix warning on solaris.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@664 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-05 13:13:48 +00:00
wouter
a4478ad648 function pointer whitelist for module operations. completing fptr work.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@661 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-05 12:42:25 +00:00
wouter
317be8f466 fptr whitelist network code callbacks.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@659 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-05 08:05:06 +00:00
wouter
eb4d666bf5 security audit changes.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@657 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-10-04 15:10:11 +00:00
wouter
cc6693e876 fixup test.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@645 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-09-26 11:15:42 +00:00
wouter
ace71868bc syslog feature.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@644 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-09-26 10:19:28 +00:00
wouter
87b9693113 no overload mode yet.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@640 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-09-25 12:25:37 +00:00
wouter
87409ee21e overload mode is a TODO.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@632 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-09-21 15:12:31 +00:00
wouter
75868e64e0 remove subscript char warnings.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@630 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-09-21 14:15:05 +00:00
wouter
158402d55a plan and comments.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@621 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-09-19 09:20:24 +00:00
wouter
3630aecdeb configure option for memory allocation debugging.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@598 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-09-05 13:47:23 +00:00
wouter
08d5cf38d1 fixup test
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@574 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-31 12:58:23 +00:00
wouter
2c585d0f14 iterator works better with failing hosts.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@571 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-31 09:38:55 +00:00
wouter
5fbfaf15ab crypto cleanups at exit.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@567 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-30 13:38:52 +00:00
wouter
e97cae4641 Memory cleanup.
- caught bad free of un-alloced data in worker_send error case.
       - memory accounting for key cache (trust anchors and temporary cache).
       - memory accounting fixup for outside network tcp pending waits.
       - memory accounting fixup for outside network tcp callbacks.
       - memory accounting for iterator fixed storage.
       - key cache size and slabs config options.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@566 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-30 12:45:19 +00:00
wouter
21f9812b1a support extremely small memory footprints.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@565 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-30 08:36:41 +00:00
wouter
8a2e0534e0 No double use of buffers.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@552 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-28 08:03:45 +00:00
wouter
ee53b5fef8 do not cache nonRD replies in msg cache, the rrset cache is used for that.
store verification status in rrset cache to enable security for nonRD
replies and also speed up processing.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@550 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-27 13:46:05 +00:00
wouter
53de4306c6 send recursive queries to test cache drop off.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@549 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-27 11:26:03 +00:00
wouter
96eb624da0 answer non-recursive straight from cache, if possible.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@548 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-27 09:53:16 +00:00
wouter
4ee83871c3 Returns and caches validated replies.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@536 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-21 13:12:10 +00:00
wouter
a4f5349d21 crypto verify routines.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@520 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-15 08:39:00 +00:00
wouter
7866ca5398 fixups for memory.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@512 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-14 13:15:36 +00:00
wouter
7d3fc76d0d total allocation tracking.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@507 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-10 09:07:19 +00:00
wouter
a1b7eab9d1 memory indication.
typo fix.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@503 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-09 10:14:32 +00:00
wouter
801bfa406b sigcrypt.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@498 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-07 15:18:25 +00:00
wouter
80ffffebd1 remove done and supers module interface calls.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@474 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-02 08:07:50 +00:00
wouter
f5c4688976 prime flag moved.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@470 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-01 12:59:37 +00:00
wouter
ffae9bc790 module configuration option.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@468 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-08-01 11:17:30 +00:00
wouter
6bc7ffedb6 random number seed pid-tid fixup, todo.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@463 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-07-30 09:27:49 +00:00
wouter
2a78688509 Removed unused -C commandline option (was for debug).
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@459 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-07-27 06:41:42 +00:00
wouter
d7201ed226 cycle detection
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@452 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-07-26 09:29:21 +00:00
wouter
b41deacab1 Memory reporting.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@447 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-07-20 15:51:06 +00:00
wouter
0c94a2932e check of CNAME chain in replies from cache.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@441 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-07-20 06:17:45 +00:00
wouter
d9aac953ba cname chain caching (part).
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@440 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-07-19 15:16:39 +00:00
wouter
9a65e4ba03 please lint
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@439 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-07-19 14:10:09 +00:00
wouter
2acc4cc764 version.server and consorts support.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@438 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-07-19 13:50:00 +00:00
wouter
2a09f09ea8 fixup tests, better stats, nicer api supers_walk().
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@424 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-26 15:24:07 +00:00
wouter
b0d9e6c363 Mesh used now.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@423 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-26 13:06:44 +00:00
wouter
a12abdfeca mesh work, now coded mesh service.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@422 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-25 13:54:03 +00:00
wouter
26a83b8c0b further mesh.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@419 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-22 12:39:08 +00:00
wouter
bcea03a902 Mesh design and preparatory cleanup.
- removed unused _node iterator value from rbtree_t. Takes up space.
      - iterator can handle querytargets state without a delegation point
        set, so that a priming(stub) subquery error can be handled.
      - iterator stores if it is priming or not.
      - log_query_info() neater logging.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@418 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-22 10:09:21 +00:00
wouter
bf1ad1c235 fixup query release.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@413 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-21 10:23:07 +00:00
wouter
b23ac4c8ec Runnables from slumberlist done to clean it up.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@411 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-21 08:05:16 +00:00
wouter
b8da1acd51 Fixup secondary buffer in case of error callback.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@410 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-21 07:52:51 +00:00
wouter
8c167041e8 duplicate query callbacks work.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@408 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-20 14:01:58 +00:00
wouter
678ce4a951 Freeup main module after module states.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@407 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-20 13:17:07 +00:00
wouter
d63fdceec2 Fixups.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@406 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-20 13:01:30 +00:00
wouter
17bc12ed50 logging for num queries.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@404 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-20 09:17:09 +00:00
wouter
069e941a12 coredump feature.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@402 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-20 07:47:56 +00:00
wouter
a971f1d029 options to harden against very small EDNS bufsize or very large query packets.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@400 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-19 14:46:14 +00:00
wouter
b68dad48a7 fix of flags in errors and very short bufsizes from edns.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@397 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-19 13:50:43 +00:00
wouter
7ecbf0b24c AXFR handling and non-recursive handling.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@396 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-19 12:34:54 +00:00
wouter
f9e2375f93 - nicer layout in stats.c, review 0.3 change.
- spelling improvement, review 0.3 change.
       - uncapped timeout for server selection, so that very fast or slow
         servers will stand out from the rest.
       - target-fetch-policy: "3 2 1 0 0" config setting.
	 and docs.



git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@395 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-19 12:06:02 +00:00
wouter
57da6743c9 fixup
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@392 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-18 10:27:54 +00:00
wouter
047c15c7ca Improve error handling.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@391 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-15 12:11:44 +00:00
wouter
dfe3ae0dc1 fixes.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@390 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-15 09:13:54 +00:00
wouter
c3cb973c20 fixup comments for doxygen 1.5
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@383 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-12 14:51:49 +00:00
wouter
bcfe623b93 Nicer encoding. fixes.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@379 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-11 10:12:43 +00:00
wouter
777fb87aa5 Tested serval targets, with CNAME's and indirection for recursion and
slumber list.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@374 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-07 13:21:04 +00:00
wouter
603d3c082c Fixup cname target name readout.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@373 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-07 10:38:02 +00:00
wouter
b3bf83c415 debug work.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@371 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-05 15:04:01 +00:00
wouter
d21083c609 - priming failure returns SERVFAIL.
- priming gives LAME result, returns SERVFAIL.
       - debug routine to print dns_msg as handled by iterator.
       - memleak in config file stubs fixup.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@370 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-05 12:54:43 +00:00
wouter
805d748092 No double release of workrequest.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@369 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-05 10:58:14 +00:00
wouter
f8571f766a - subrequests without parent store in cache and stop.
- worker slumber list for ongoing promiscuous queries.
       - subrequest error handling.



git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@368 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-05 10:51:47 +00:00
wouter
009134dd04 cache lameness, set reply properly.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@363 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-04 11:52:10 +00:00
wouter
2553be9532 Random nameserver selection.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@361 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-04 09:57:02 +00:00
wouter
fddfd9fce9 neater code layout.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@356 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-01 12:25:38 +00:00
wouter
598f4dd79b multiple subrequests at the same time.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@351 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-30 14:55:40 +00:00
wouter
1663aca700 init2 and double free fixup.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@349 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-30 11:45:44 +00:00
wouter
7defbafe09 iterator work.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@348 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-30 11:18:17 +00:00
wouter
ae8d3dbd12 Name change to make naming more uniform.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@345 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-29 12:31:02 +00:00
wouter
b715da9d6e message lookup and copy to region.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@343 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-29 10:32:11 +00:00
wouter
38bdf5271c tests need forwarding mode enabled.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@337 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-24 13:41:30 +00:00
wouter
6969cb7d56 preparatory work for iterator.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@336 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-24 13:24:44 +00:00
wouter
08d08d6d52 precise timers for roundtrip UDP timeouts.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@332 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-23 06:24:01 +00:00
wouter
4bc8319061 outbound queries via serviced outside_network queries.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@327 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-22 12:36:02 +00:00
wouter
c6b4fbb41c Serviced queries in outside network service get full EDNS, UDP retry and
TCP fallback attention.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@326 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-21 15:10:55 +00:00
wouter
f21445bfe2 Config options for infra cache.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@325 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-16 14:29:46 +00:00
wouter
69883b2a21 LRU touch of RRsets. Pretty complicated to do.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@324 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-16 12:48:48 +00:00
wouter
e641ee09fd Fixup tests.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@312 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-11 14:33:38 +00:00
wouter
401583e12b iterator module.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@311 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-11 14:16:42 +00:00
wouter
14ee408f22 Lint fixup. splint gets confused by getrlimit.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@299 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-09 09:04:11 +00:00
wouter
e10db1a79d Checks ulimit open files.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@298 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-09 07:58:57 +00:00
wouter
5f3140deaa TCP fallback if forwarder sends TC bit.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@295 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-09 07:00:10 +00:00
wouter
9799917b79 TCP outgoing services.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@294 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-08 13:25:21 +00:00
wouter
2b2981aeb6 No verbose for packet error. TC detect.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@293 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-07 15:01:27 +00:00
wouter
c48ece2072 lint fixup.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@291 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-07 14:07:34 +00:00
wouter
adcc0a69bb EDNS errors.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@290 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-07 14:05:51 +00:00
wouter
397e4b4736 EDNS for the client.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@288 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-07 13:17:27 +00:00
wouter
ccae57de60 Update rrset.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@285 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-04 13:48:24 +00:00
wouter
e873c96fb5 temp region kept for use during query processing.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@282 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-04 12:35:01 +00:00
wouter
960c7df2fe working on trust of rrsets.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@281 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-04 10:10:52 +00:00
wouter
f3dbfd3a17 Alloc cache per thread gets used for deleted items.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@280 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-04 08:05:56 +00:00
wouter
dc30140970 config settings for rrset cache.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@279 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-04 07:34:10 +00:00
wouter
f504523316 Use packedrrset msgformat in service.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@277 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-03 15:34:03 +00:00
wouter
0572bf8856 some basic stats.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@271 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-01 12:13:29 +00:00
wouter
6f8a76a4fd ids and parsing rrs.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@241 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-04-16 15:21:50 +00:00
wouter
31abdae983 Casts for printf portable.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@219 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-04-03 10:20:59 +00:00
wouter
250f7af515 use constants for bitflags.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@214 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-04-03 09:29:09 +00:00
wouter
a3235abb8e Review of msgreply.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@212 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-04-02 13:58:02 +00:00
wouter
ea4a9f56b7 review of worker.c
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@211 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-04-02 10:16:02 +00:00
wouter
d436c627fd Review changes.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@209 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-29 13:00:36 +00:00
wouter
af50a13f09 No useless byteswapping.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@208 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-29 10:00:10 +00:00
wouter
be1be4785d iov used.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@207 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-29 09:26:54 +00:00
wouter
27afbc52bb query list config option. tpkg test.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@203 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-28 13:43:50 +00:00
wouter
98a88786cb Multiple queries per thread.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@201 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-27 15:21:21 +00:00
wouter
b533d9681b config file settings for message cache.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@196 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-26 10:33:41 +00:00
wouter
cb98199c06 Checks returned queries from forwarder source.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@193 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-23 13:12:49 +00:00
wouter
1db1303312 Answers from the cache work.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@192 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-23 12:41:38 +00:00
wouter
8eba5b12f8 reviewed yesterdays commit.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@191 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-23 08:25:43 +00:00
wouter
21ece5f0f4 caching code.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@190 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-22 16:26:14 +00:00
wouter
075fb149bc cleanup and unit test for alloc, also lock protection statements.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@168 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-09 13:37:57 +00:00
wouter
45222007d3 Simple thread problem detector code.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@165 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-07 16:21:31 +00:00
wouter
0286fa3020 exit on signal, compatible with bad versions of libevent.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@161 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-02 09:48:31 +00:00
wouter
06714ab888 no warnings for thread code (porting), and nicer logging.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@159 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-02 09:03:14 +00:00