Commit Graph

142 Commits

Author SHA1 Message Date
Miek Gieben
ea947838d8 Do the TCP write in one write
Before the tcp writes were done like NSD does them:
2 bytes length, and the rest of the message.

Now a complete buffer is created with LLMMM...MMM, where
LL is the 2 byte length and MMM...MMM is the message to be send.
This makes the reply faster at the cost of doing a realloc of the
message buffer.
2012-10-17 12:40:57 +02:00
Miek Gieben
006fae01d1 added 1.0 as version 2012-10-12 14:20:43 +02:00
Miek Gieben
3560da6104 conn is gone 2012-10-12 14:18:01 +02:00
Miek Gieben
9ab211d660 small tweaks 2012-10-12 14:03:56 +02:00
Miek Gieben
7ca43a2a3f no nill message 2012-10-10 21:09:33 +02:00
Miek Gieben
fdd3e70f19 Older version back 2012-10-10 21:09:11 +02:00
Miek Gieben
506a4237e5 no nil checks 2012-10-10 21:00:47 +02:00
Miek Gieben
56b5d926aa even faster, by smarter checking for tsig 2012-10-10 17:28:10 +02:00
Miek Gieben
a35f8defbf even faster, by smarter checking for tsig 2012-10-10 17:27:03 +02:00
Miek Gieben
a8f2ce51c7 Eliminate the conn structure for speed
conn isn't needed, we can encode the info directly in the
reponsewriter. This saves on allocations and gc for each connection
2012-10-10 15:37:25 +02:00
Miek Gieben
8a49e9da90 newConn is useless 2012-10-09 21:38:17 +02:00
Miek Gieben
570bf8dc69 Use proper error in packing and unpacking
All the relevant functions now return an error instead of
a simple boolean. This greatly approves the feedback to coders.

Spotted some fishy error handling along the way and fix that too.
2012-10-09 21:17:54 +02:00
Miek Gieben
d5e6aaba0b adapt to v2 radix tree impl. 2012-09-09 23:38:01 +02:00
Miek Gieben
288bb6f812 the panic isnt right, we can still hit it, just return nil 2012-09-08 11:09:40 +02:00
Miek Gieben
7fce26e781 work better with the latest radix 2012-09-08 08:07:35 +02:00
Miek Gieben
cacd7c4dcd fix merge 2012-09-07 20:37:45 +02:00
Miek Gieben
aeb4c7d310 Use new radix api
Find return a boolean if it has an exact match, predecessor has
been removed
2012-09-07 19:32:22 +02:00
Miek Gieben
b00354cc65 tweaks for the new radix stuff 2012-09-07 18:48:36 +02:00
Miek Gieben
9b74e1bc28 dns is 8bit clean 2012-09-04 08:08:44 +02:00
Miek Gieben
c03a914cec add version.server and version.bind 2012-09-03 13:56:43 +02:00
Miek Gieben
ac51a3e97d add authors.bind and friends. 2012-09-03 13:01:39 +02:00
Miek Gieben
88902fc943 Add authors helper function 2012-09-03 12:54:18 +02:00
Miek Gieben
12c7bc1021 First set the timeouts, then use the socket 2012-09-01 09:28:19 +02:00
Miek Gieben
0a586f5ebb Merge branch 'master' of github.com:miekg/dns 2012-08-31 15:10:46 +02:00
Miek Gieben
7a0877d090 Merge conflict fixed 2012-08-31 15:10:43 +02:00
Miek Gieben
4a4292c1b9 fix merge 2012-08-31 15:05:59 +02:00
Miek Gieben
9242855153 fix rest 2012-08-31 10:13:21 +02:00
Miek Gieben
a0e3423d8e dont bail out when accepting the conn fails 2012-08-31 10:08:36 +02:00
Miek Gieben
2e13e0e10c req in response is not needed 2012-08-30 09:34:40 +02:00
Miek Gieben
1f29674505 small tweaks 2012-08-29 09:59:08 +02:00
Miek Gieben
14a8b3c2f2 Fix documentation 2012-08-28 19:53:21 +02:00
Miek Gieben
b2fadde636 Fix hijack 2012-08-28 19:46:29 +02:00
Miek Gieben
0eae2d1735 implement Hijack 2012-08-28 19:41:23 +02:00
Miek Gieben
e4fb00c34d Fix handling of non fully qualified domain names
When PackDomain sees such a name it calls panic.
All panic now use the prefix 'dns:'
2012-08-28 18:21:23 +02:00
Miek Gieben
8bc979fe1e make it compile 2012-08-28 13:30:59 +02:00
Miek Gieben
a8737b6741 check if the packet has a valid answer section 2012-08-28 13:21:51 +02:00
Miek Gieben
9e318901a6 preparing to use hijack 2012-08-28 13:12:55 +02:00
Miek Gieben
afd8cbf39d Add TsigTimersOnly function 2012-08-27 21:27:49 +02:00
Miek Gieben
68961f2f5b Make the IsTsig and IsEdn0 more usefull by returning the record 2012-08-25 11:24:01 +02:00
Miek Gieben
b6342d94f9 typos 2012-08-24 15:20:20 +02:00
Ask Bjørn Hansen
ffb28d97f9 Clarify comment 2012-08-23 20:21:33 -07:00
Miek Gieben
6f7aad15d8 documenation 2012-08-21 17:36:58 +02:00
Miek Gieben
47c859bc81 documentation 2012-08-21 17:21:47 +02:00
Miek Gieben
a9637eeff1 documentation tweaks 2012-08-21 16:52:36 +02:00
Miek Gieben
b720003623 make api smaller 2012-08-17 08:31:38 +02:00
Miek Gieben
6aee81ad74 refacter this code 2012-08-08 14:43:59 +02:00
Miek Gieben
f05b532a3f gofmt 2012-08-08 11:13:28 +02:00
Miek Gieben
466496a23b Fix chaos 2012-08-08 11:08:25 +02:00
Miek Gieben
755bb11fde update the documentation 2012-08-08 09:26:29 +02:00
Miek Gieben
8646c8c6e6 Update fks-shield and remove ListenAndServeTsig
ListenAndServeTsig can be handled much more easier
if you create your own server object
2012-08-08 09:19:14 +02:00