]> granicus.if.org Git - pdns/log
pdns
19 years agooops, need to limit top-remotes
Bert Hubert [Tue, 18 Apr 2006 22:51:24 +0000 (22:51 +0000)]
oops, need to limit top-remotes

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@733 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoplacate valgrind + protect powerdns against non-IN queries, we don't deal well with...
Bert Hubert [Tue, 18 Apr 2006 22:24:14 +0000 (22:24 +0000)]
placate valgrind + protect powerdns against non-IN queries, we don't deal well with them, hand out SERVFAIL immediately

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@732 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoimplement id.server, version.bind ("version-string" and "server-id" in config)
Bert Hubert [Tue, 18 Apr 2006 21:59:41 +0000 (21:59 +0000)]
implement id.server, version.bind ("version-string" and "server-id" in config)
implement remote-ringbuffer, rec_control top-remotes to see who is querying you
implement max-negative-ttl
remove socklen

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@731 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agomake advanced multiplexers and --fork play nicely
Bert Hubert [Tue, 18 Apr 2006 17:31:52 +0000 (17:31 +0000)]
make advanced multiplexers and --fork play nicely

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@730 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agospiff up ipv6 output a bit, work around odd linker things with static constructors
Bert Hubert [Tue, 18 Apr 2006 17:01:32 +0000 (17:01 +0000)]
spiff up ipv6 output a bit, work around odd linker things with static constructors

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@729 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agotyop
Bert Hubert [Tue, 18 Apr 2006 16:46:29 +0000 (16:46 +0000)]
tyop

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@728 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agokeep track of duplicate counts, they show up as unmatched answers
Bert Hubert [Tue, 18 Apr 2006 16:46:14 +0000 (16:46 +0000)]
keep track of duplicate counts, they show up as unmatched answers

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@727 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agomake clientside ipv4/ip6 agnostic, including allow-from
Bert Hubert [Tue, 18 Apr 2006 16:44:10 +0000 (16:44 +0000)]
make clientside ipv4/ip6 agnostic, including allow-from
fix address printing
fix tcp client limiting when listening on multiple addresses

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@726 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agobuild fixes
Bert Hubert [Tue, 18 Apr 2006 13:33:24 +0000 (13:33 +0000)]
build fixes

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@725 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoremove sample code from kqueuemplexer, fix huge fd leak in pdns_recursor,
Bert Hubert [Tue, 18 Apr 2006 13:07:17 +0000 (13:07 +0000)]
remove sample code from kqueuemplexer, fix huge fd leak in pdns_recursor,
remove debugging output

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@724 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agofix duplicate return of sockets to the pool, improve tcp timeout message
Bert Hubert [Tue, 18 Apr 2006 12:49:46 +0000 (12:49 +0000)]
fix duplicate return of sockets to the pool, improve tcp timeout message

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@723 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agofix timeouts of running TCP client queries - we shouldn't time them out while we...
Bert Hubert [Tue, 18 Apr 2006 12:18:02 +0000 (12:18 +0000)]
fix timeouts of running TCP client queries - we shouldn't time them out while we are still working!

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@722 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agofix 'removing unlisted fd from multiplexer'
Bert Hubert [Tue, 18 Apr 2006 11:52:55 +0000 (11:52 +0000)]
fix 'removing unlisted fd from multiplexer'
remove --single-socket support (and --query-local-port with it)
make powerdns deal with resource limit errors (specifically EMFILE)
make reporting ICMP errors faster by passing around PacketID

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@721 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoabstract out part of the common logic
Bert Hubert [Tue, 18 Apr 2006 11:43:09 +0000 (11:43 +0000)]
abstract out part of the common logic

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@720 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoupdate version
Bert Hubert [Tue, 18 Apr 2006 11:42:43 +0000 (11:42 +0000)]
update version

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@719 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoenable logging to syslog (oops)
Bert Hubert [Mon, 17 Apr 2006 00:07:50 +0000 (00:07 +0000)]
enable logging to syslog (oops)

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@718 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agosave some memory, s/kqueue/epoll/
Bert Hubert [Sun, 16 Apr 2006 23:23:46 +0000 (23:23 +0000)]
save some memory, s/kqueue/epoll/

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@717 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agohook up tcp timeout var again
Bert Hubert [Sun, 16 Apr 2006 23:17:45 +0000 (23:17 +0000)]
hook up tcp timeout var again

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@716 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoremove debugging chatter
Bert Hubert [Sun, 16 Apr 2006 23:15:23 +0000 (23:15 +0000)]
remove debugging chatter
add time to die support

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@715 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoimplement OS specific sysdeps + compiletime selection of working multiplexers
Bert Hubert [Sun, 16 Apr 2006 22:18:14 +0000 (22:18 +0000)]
implement OS specific sysdeps + compiletime selection of working multiplexers
add max-tcp-clients back

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@714 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoadd automatic mplexer selection at runtime, still need to do compile time
Bert Hubert [Sun, 16 Apr 2006 20:10:21 +0000 (20:10 +0000)]
add automatic mplexer selection at runtime, still need to do compile time

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@713 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agomake kqueue mplexer actually work
Bert Hubert [Sun, 16 Apr 2006 19:36:23 +0000 (19:36 +0000)]
make kqueue mplexer actually work

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@712 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agofirst shot, wrote it under linux hehe
Bert Hubert [Sun, 16 Apr 2006 19:26:37 +0000 (19:26 +0000)]
first shot, wrote it under linux hehe

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@711 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agomove to mplexer
Bert Hubert [Sun, 16 Apr 2006 19:14:33 +0000 (19:14 +0000)]
move to mplexer

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@710 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoadd epoll mplexer, update selectmplexer
Bert Hubert [Sun, 16 Apr 2006 19:11:57 +0000 (19:11 +0000)]
add epoll mplexer, update selectmplexer

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@709 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agovalgrind spotted some undefined variables
Bert Hubert [Sun, 16 Apr 2006 19:11:31 +0000 (19:11 +0000)]
valgrind spotted some undefined variables

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@708 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agostart of mother of all multiplexors :-)
Bert Hubert [Sun, 16 Apr 2006 14:31:00 +0000 (14:31 +0000)]
start of mother of all multiplexors :-)

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@707 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agofix TCP outgoing error handling, fixing possible crashes under high load
Bert Hubert [Sun, 16 Apr 2006 11:29:34 +0000 (11:29 +0000)]
fix TCP outgoing error handling, fixing possible crashes under high load
improve TCP error message reporting, differentiating errors, timeouts

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@706 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agowork around gcc 4.0 bug, prepare move to boost::function based select/epoll/kqueue...
Bert Hubert [Sat, 15 Apr 2006 22:19:33 +0000 (22:19 +0000)]
work around gcc 4.0 bug, prepare move to boost::function based select/epoll/kqueue loop

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@705 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agomake nearMisses only account for the proper fd
Bert Hubert [Fri, 14 Apr 2006 22:50:31 +0000 (22:50 +0000)]
make nearMisses only account for the proper fd

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@704 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agofix djbdns-mode
Bert Hubert [Fri, 14 Apr 2006 20:38:22 +0000 (20:38 +0000)]
fix djbdns-mode

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@703 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agomove full-blown djbdns-style socket-per-query support
Bert Hubert [Fri, 14 Apr 2006 18:00:12 +0000 (18:00 +0000)]
move full-blown djbdns-style socket-per-query support
add --single-socket to fall back to old behaviour
make --query-local-port set that feature

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@702 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agomake it work
Bert Hubert [Fri, 14 Apr 2006 15:43:31 +0000 (15:43 +0000)]
make it work

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@701 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agomake anti-spoofing measures question and not ip address specific, make them tunable
Bert Hubert [Fri, 14 Apr 2006 12:35:19 +0000 (12:35 +0000)]
make anti-spoofing measures question and not ip address specific, make them tunable

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@700 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoimplement stunningly cool spoofing protection, plus spoofer in dnspbench
Bert Hubert [Fri, 14 Apr 2006 11:26:50 +0000 (11:26 +0000)]
implement stunningly cool spoofing protection, plus spoofer in dnspbench

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@699 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoadd query-local-port, and make us move around if unset
Bert Hubert [Fri, 14 Apr 2006 10:13:13 +0000 (10:13 +0000)]
add query-local-port, and make us move around if unset
log netmasks allowed a bit prettier
add nasty warning

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@698 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoWARNING WARNING: We now listen on 127.0.0.1 by default *AND* only reply to RFC 1918...
Bert Hubert [Fri, 14 Apr 2006 08:39:16 +0000 (08:39 +0000)]
WARNING WARNING: We now listen on 127.0.0.1 by default *AND* only reply to RFC 1918 addresses by default
Ignore answers w/o a question
s/spoof/unexpected/

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@697 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoactually check output of sendEvent and log
Bert Hubert [Fri, 14 Apr 2006 08:28:27 +0000 (08:28 +0000)]
actually check output of sendEvent and log

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@696 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agomtasked did 3 or 4 walks of waiter-list for each call to sendEvent, reduced to 1
Bert Hubert [Fri, 14 Apr 2006 08:27:59 +0000 (08:27 +0000)]
mtasked did 3 or 4 walks of waiter-list for each call to sendEvent, reduced to 1

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@695 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agopassed around strings to asynresolve as a char*, causing heaps of malloc/new
Bert Hubert [Fri, 14 Apr 2006 08:27:31 +0000 (08:27 +0000)]
passed around strings to asynresolve as a char*, causing heaps of malloc/new
traffic

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@694 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agosigh.. some queries have embedded nulls in them, which we log noisily
Bert Hubert [Thu, 13 Apr 2006 21:37:26 +0000 (21:37 +0000)]
sigh.. some queries have embedded nulls in them, which we log noisily

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@693 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoimprove MX-record parsing for additional processing, we used to be confused by numeri...
Bert Hubert [Thu, 13 Apr 2006 20:29:42 +0000 (20:29 +0000)]
improve MX-record parsing for additional processing, we used to be confused by numerical server names
make answer checking case insensitive

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@692 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoadd tool dnsscan (mostly for internal use)
Bert Hubert [Thu, 13 Apr 2006 19:49:56 +0000 (19:49 +0000)]
add tool dnsscan (mostly for internal use)
make dist-recursor package a version number
improve stats, add some logging

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@691 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoprevent possible crashes (score one for valgrind)
Bert Hubert [Thu, 13 Apr 2006 14:20:19 +0000 (14:20 +0000)]
prevent possible crashes (score one for valgrind)

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@690 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agosmall compile cleanup
Bert Hubert [Thu, 13 Apr 2006 07:04:30 +0000 (07:04 +0000)]
small compile cleanup

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@689 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agosilence warning
Bert Hubert [Thu, 13 Apr 2006 06:47:05 +0000 (06:47 +0000)]
silence warning

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@688 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoalso compress the first answer against the question - might fix problems with e-tech...
Bert Hubert [Thu, 13 Apr 2006 06:21:56 +0000 (06:21 +0000)]
also compress the first answer against the question - might fix problems with e-tech routers

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@687 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agodon't packet cache notifications! Thanks again to Dan Bilik <dan@mail.neosystem.cz>
Bert Hubert [Wed, 12 Apr 2006 15:44:13 +0000 (15:44 +0000)]
don't packet cache notifications! Thanks again to Dan Bilik <dan@mail.neosystem.cz>

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@686 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agofix crashes in tcp receiver (thanks Dan Bilik <dan@mail.neosystem.cz>)
Bert Hubert [Wed, 12 Apr 2006 15:39:47 +0000 (15:39 +0000)]
fix crashes in tcp receiver (thanks Dan Bilik <dan@mail.neosystem.cz>)

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@685 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agofix memory leak (Dan Bilik <dan@mail.neosystem.cz>) - thanks!
Bert Hubert [Wed, 12 Apr 2006 15:36:26 +0000 (15:36 +0000)]
fix memory leak (Dan Bilik <dan@mail.neosystem.cz>) - thanks!

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@684 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agofix handling of truncated packets with partial records (like emitted by powerdns...
Bert Hubert [Wed, 12 Apr 2006 11:32:53 +0000 (11:32 +0000)]
fix handling of truncated packets with partial records (like emitted by powerdns hehe)
fix empty PTR, CNAME and NS records (generally a bad idea anyhow)
fix up error reporting a lot

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@683 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoslightly improve error messages and reporting, attempting to zoom in on broken packets
Bert Hubert [Wed, 12 Apr 2006 08:52:51 +0000 (08:52 +0000)]
slightly improve error messages and reporting, attempting to zoom in on broken packets

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@682 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoconsolidate license change previously announced here:
Bert Hubert [Wed, 12 Apr 2006 07:38:45 +0000 (07:38 +0000)]
consolidate license change previously announced here:
http://mailman.powerdns.com/pipermail/pdns-announce/2005-February/000022.html

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@681 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agothe FSF has moved!
Bert Hubert [Wed, 12 Apr 2006 07:28:34 +0000 (07:28 +0000)]
the FSF has moved!

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@680 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoforgot to commit - need to update server parser errors in lwres now
Bert Hubert [Wed, 12 Apr 2006 07:23:34 +0000 (07:23 +0000)]
forgot to commit - need to update server parser errors in lwres now

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@679 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoadd counts for broken packets
Bert Hubert [Tue, 11 Apr 2006 16:09:50 +0000 (16:09 +0000)]
add counts for broken packets
add switch to prevent logging rather common errors
removed duplicate answer parsing (!!)
improved TCP timeout code, previously we could time out a running TCP query, which was wrong
improve error message consistency slightly

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@678 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agogenerally spiff up appearance, nothing real
Bert Hubert [Tue, 11 Apr 2006 15:23:51 +0000 (15:23 +0000)]
generally spiff up appearance, nothing real

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@677 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoadd unauthorized-udp, unauthorized-tcp, client-parse-errors, server-parse-errors...
Bert Hubert [Tue, 11 Apr 2006 15:01:11 +0000 (15:01 +0000)]
add unauthorized-udp, unauthorized-tcp, client-parse-errors, server-parse-errors to graphs,
improve graph explanation a bit

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@676 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoadd hardcoded support for 127.0.0.1 and 1.0.0.127.in-addr.arpa, bound to make some...
Bert Hubert [Tue, 11 Apr 2006 11:11:21 +0000 (11:11 +0000)]
add hardcoded support for 127.0.0.1 and 1.0.0.127.in-addr.arpa, bound to make some clients happy

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@675 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoadd support for CERT record (RFC 2538) to MOADNSParser
Bert Hubert [Tue, 11 Apr 2006 10:23:47 +0000 (10:23 +0000)]
add support for CERT record (RFC 2538) to MOADNSParser

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@674 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoTry to prevent the 'Oops, sent partial answer' error, and made it more informative...
Bert Hubert [Mon, 10 Apr 2006 15:53:19 +0000 (15:53 +0000)]
Try to prevent the 'Oops, sent partial answer' error, and made it more informative in case it does happen

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@673 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoimplement very simple SMP support
Bert Hubert [Mon, 10 Apr 2006 10:19:35 +0000 (10:19 +0000)]
implement very simple SMP support

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@672 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoinline "strcasecmp" (stolen from glibc), short-circuit a lot of dnsencoding/decoding...
Bert Hubert [Sun, 9 Apr 2006 21:18:10 +0000 (21:18 +0000)]
inline "strcasecmp" (stolen from glibc), short-circuit a lot of dnsencoding/decoding logic

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@671 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years ago1) make everyting intrinsically case-insensitive
Bert Hubert [Sun, 9 Apr 2006 17:09:34 +0000 (17:09 +0000)]
1) make everyting intrinsically case-insensitive
2) clear up . oddness, removing all calls to toLowerCanonic

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@670 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoadd max-tcp-per-client to limit number of TCP connections per client
Bert Hubert [Sat, 8 Apr 2006 20:23:38 +0000 (20:23 +0000)]
add max-tcp-per-client to limit number of TCP connections per client

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@669 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agodocumentation, retuned cache pruning - should take less time now
Bert Hubert [Fri, 7 Apr 2006 19:52:10 +0000 (19:52 +0000)]
documentation, retuned cache pruning - should take less time now

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@668 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoadd allow-from option to limit who can recurse. enable 'defer-accept' for TCP if...
Bert Hubert [Fri, 7 Apr 2006 19:22:14 +0000 (19:22 +0000)]
add allow-from option to limit who can recurse. enable 'defer-accept' for TCP if available. fix controlsocket so it doesn't try to delete an empty file on error

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@667 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agomake .deps find boost!
Bert Hubert [Thu, 6 Apr 2006 10:25:29 +0000 (10:25 +0000)]
make .deps find boost!

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@666 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agorecursor separate distribution fixes
Bert Hubert [Thu, 6 Apr 2006 10:04:12 +0000 (10:04 +0000)]
recursor separate distribution fixes

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@665 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agolower case diff for hints-zone
Bert Hubert [Thu, 6 Apr 2006 10:03:39 +0000 (10:03 +0000)]
lower case diff for hints-zone

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@664 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoadd peak cpu use line
Bert Hubert [Wed, 5 Apr 2006 17:13:40 +0000 (17:13 +0000)]
add peak cpu use line

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@663 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoremove vestiges of 'opaque record' support we now deal with in MOADNSParser, lowercas...
Bert Hubert [Wed, 5 Apr 2006 15:37:32 +0000 (15:37 +0000)]
remove vestiges of 'opaque record' support we now deal with in MOADNSParser, lowercase all NS records we store to prevent duplicates

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@662 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agook - this is a scary commit. It fixes TCP packets with >16384 size offsets, which...
Bert Hubert [Wed, 5 Apr 2006 15:34:32 +0000 (15:34 +0000)]
ok - this is a scary commit. It fixes TCP packets with >16384 size offsets, which is nice, but it also removes some logic
that looks remarkably well thought out but also appeared to serve no purpose. But perhaps it was magic..

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@661 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoand now make it work (well) on linux again
Bert Hubert [Wed, 5 Apr 2006 15:32:10 +0000 (15:32 +0000)]
and now make it work (well) on linux again

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@660 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agofix compilation on freebsd, reduce warning
Bert Hubert [Wed, 5 Apr 2006 12:10:36 +0000 (12:10 +0000)]
fix compilation on freebsd, reduce warning

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@659 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agofix interesting bug whereby powerdns would sometimes claim to be unable to resolve...
Bert Hubert [Wed, 5 Apr 2006 11:11:35 +0000 (11:11 +0000)]
fix interesting bug whereby powerdns would sometimes claim to be unable to resolve its rootservers. Found by valgrind. Halve number of s_negcache lookups.

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@658 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agosigh - people change their SOA serials a lot these days. PowerDNS tries to store...
Bert Hubert [Wed, 5 Apr 2006 08:17:28 +0000 (08:17 +0000)]
sigh - people change their SOA serials a lot these days. PowerDNS tries to store all different SOA records of a domain.
After a few hours you might have as much as 2000 .COM SOA records in your cache, and we try to output them all..

Also, scrounge the cache a bit more for stale entries.

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@657 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agomove cache to being pruned 'CLOCK' fashion
Bert Hubert [Tue, 4 Apr 2006 15:26:07 +0000 (15:26 +0000)]
move cache to being pruned 'CLOCK' fashion

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@656 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agomove negcache to tuple based keys instead of crappy string concatenations
Bert Hubert [Tue, 4 Apr 2006 15:24:33 +0000 (15:24 +0000)]
move negcache to tuple based keys instead of crappy string concatenations

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@655 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agooptimized toLower and toLowerCanonic that they never touch the string unless needed...
Bert Hubert [Tue, 4 Apr 2006 15:21:51 +0000 (15:21 +0000)]
optimized toLower and toLowerCanonic that they never touch the string unless needed - keeping the reference counting chain intact

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@654 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoOops.. Fix bug where records we transmit transparently were not cached properly,...
Bert Hubert [Tue, 4 Apr 2006 12:15:20 +0000 (12:15 +0000)]
Oops.. Fix bug where records we transmit transparently were not cached properly, leading to new out-queries for each question. Fixed by moving away from crappy string based keys in temporary cache.
remove check for --do-ipv6-additional-processing for each packet

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@653 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoremove unused 'title' facility from MTasker - saving a lot of string copies
Bert Hubert [Tue, 4 Apr 2006 12:13:37 +0000 (12:13 +0000)]
remove unused 'title' facility from MTasker - saving a lot of string copies

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@652 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agooops, DS uses hex (just like SSHFP). Thanks to Jakob Schlyter for pointing this out.
Bert Hubert [Tue, 4 Apr 2006 12:12:19 +0000 (12:12 +0000)]
oops, DS uses hex (just like SSHFP). Thanks to Jakob Schlyter for pointing this out.

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@651 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agook, I lied - rfc 4255 has chosen In All Its Wisdom to implement SSHFP as base-16...
Bert Hubert [Mon, 3 Apr 2006 20:29:20 +0000 (20:29 +0000)]
ok, I lied - rfc 4255 has chosen In All Its Wisdom to implement SSHFP as base-16 instead of base-64, like all the other crypto records. This is probably to make cutting & pasting from .ssh/known_hosts easier. Added support for hexadecimal records.

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@650 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoimplement rfc4255
Bert Hubert [Mon, 3 Apr 2006 19:42:50 +0000 (19:42 +0000)]
implement rfc4255

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@649 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agomake dist-recursor script solaris compliant
Bert Hubert [Mon, 3 Apr 2006 09:26:47 +0000 (09:26 +0000)]
make dist-recursor script solaris compliant

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@648 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agolower default buffer size, add cpu-use counters to rec_control & rrd graphs, fix...
Bert Hubert [Sat, 1 Apr 2006 20:26:47 +0000 (20:26 +0000)]
lower default buffer size, add cpu-use counters to rec_control & rrd graphs, fix broken error message on buffer sizing

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@647 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoimplement very simple cache cache that catches repeated nearly identical lookups
Bert Hubert [Fri, 31 Mar 2006 06:46:58 +0000 (06:46 +0000)]
implement very simple cache cache that catches repeated nearly identical lookups
appears to have lowered cpu load by 40%

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@646 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoarg! -I line was *still* wrong!
Bert Hubert [Thu, 30 Mar 2006 15:20:09 +0000 (15:20 +0000)]
arg! -I line was *still* wrong!

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@645 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoit is probable we plough through the cache too much - add simple check to prevent...
Bert Hubert [Wed, 29 Mar 2006 18:38:16 +0000 (18:38 +0000)]
it is probable we plough through the cache too much - add simple check to prevent *lowering* ttds uncessarily, which should leave the cache alone a bit more

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@644 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years ago20% speedup or so in xfrLabel by implementing 'vstringtok' which only returns offsets
Bert Hubert [Wed, 29 Mar 2006 18:27:22 +0000 (18:27 +0000)]
20% speedup or so in xfrLabel by implementing 'vstringtok' which only returns offsets

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@643 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agonew tests in dnspbench
Bert Hubert [Wed, 29 Mar 2006 18:22:53 +0000 (18:22 +0000)]
new tests in dnspbench

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@642 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agorecursor README typos (thanks Entil), add nedmalloc to separate distribution
Bert Hubert [Tue, 28 Mar 2006 20:42:43 +0000 (20:42 +0000)]
recursor README typos (thanks Entil), add nedmalloc to separate distribution

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@641 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agooops, latency is GAUGE, not COUNTER (thanks Kai!)
Bert Hubert [Tue, 28 Mar 2006 20:41:59 +0000 (20:41 +0000)]
oops, latency is GAUGE, not COUNTER (thanks Kai!)

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@640 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agovery slight speedup (toLower==toLower -> strcasecmp)
Bert Hubert [Tue, 28 Mar 2006 20:41:38 +0000 (20:41 +0000)]
very slight speedup (toLower==toLower -> strcasecmp)
some comments

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@639 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoWork around a bug in gcc 3.4.something, reported by Jorn Ekkelenkamp and
Bert Hubert [Tue, 28 Mar 2006 11:18:02 +0000 (11:18 +0000)]
Work around a bug in gcc 3.4.something, reported by Jorn Ekkelenkamp and
others

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@638 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoimprove error messages some more
Bert Hubert [Mon, 27 Mar 2006 13:06:00 +0000 (13:06 +0000)]
improve error messages some more
Update README for the recursor separate package
Make trailing garbage no longer be fatal
Make separate recursor do skip-locking by default

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@637 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agoslightly improve error messages
Bert Hubert [Mon, 27 Mar 2006 11:51:41 +0000 (11:51 +0000)]
slightly improve error messages

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@636 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agomake socket buffer raising report better errors
Bert Hubert [Mon, 27 Mar 2006 07:31:01 +0000 (07:31 +0000)]
make socket buffer raising report better errors
blast packets back to back to pdns_recursor if available

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@635 d19b8d6e-7fed-0310-83ef-9ca221ded41b

19 years agosmall fixups to the graphs - you can now set your own SOCKETDIR
Bert Hubert [Mon, 27 Mar 2006 07:28:28 +0000 (07:28 +0000)]
small fixups to the graphs - you can now set your own SOCKETDIR

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@634 d19b8d6e-7fed-0310-83ef-9ca221ded41b