Commit Graph

84 Commits

Author SHA1 Message Date
Miek Gieben 874787c537 Allow deregistration of handler
Implemented in both the server and client.
Renamed to client function to match the server side functions
Example progs need to be "ported" as this *is* an API change.
2012-03-26 23:15:15 +02:00
Miek Gieben c53cddf38c TSIG overhauled
This lead to some changes in the Write() function. Both
server side and client side are now more similar.
2012-03-04 21:00:09 +01:00
Miek Gieben 2806def5c0 document the interface better 2012-03-04 14:53:57 +01:00
Miek Gieben 1744a80850 add a TsigStatus to the client as well
Bring server and client side more inline
with each other. For a client we also
use TsigStatus() to retrieve the tsig info.
2012-03-04 14:47:20 +01:00
Miek Gieben c5465127f3 Fix non tsig queries 2012-03-02 21:19:37 +01:00
Miek Gieben 3232814d1b Fix client side TSIG
Redesign of TSIG. Validation is on the TOOD - this can be
done in the same way as in the server.
2012-03-01 22:40:34 +01:00
Miek Gieben fd6bdd4bba Elegant Tsig handling in the server
Lowlevel, but flexible. i.e. usable when building a server
2012-02-26 22:38:15 +01:00
Miek Gieben f7f1d2ab42 Add listenAndServerTsig function 2012-02-26 21:33:50 +01:00
Miek Gieben 485c7e7a41 Fix some outstanding todos 2012-02-25 21:42:08 +01:00
Miek Gieben 93246f458e Fix error handling and TC bit 2012-02-24 23:43:34 +01:00
Miek Gieben 77b60231e7 If we add a dot to a name, be sure to remove one from the length 2012-02-05 11:33:55 +01:00
Miek Gieben f1542e15d9 use edns0 udpsize in to set the buffer 2012-01-29 00:20:56 +01:00
Miek Gieben ff55b5253a Updates for the latest weekly: weekly.2012-01-27 2012-01-27 08:39:41 +01:00
Miek Gieben e6b94db3b2 Just set all the deadlines 2012-01-24 10:06:39 +01:00
Miek Gieben 48d11d3a17 Use Client.Attemps also when reading 2012-01-23 20:35:14 +01:00
Miek Gieben 7b67cbff49 Set the timeouts throughout the code. New Golang api 2012-01-23 20:25:15 +01:00
Miek Gieben 8f66b74c86 2 sec timeout 2012-01-23 11:43:26 +01:00
Miek Gieben 5917838cbb gofmt 2012-01-20 12:24:20 +01:00
Miek Gieben 8c0ecaa61b Fixes for weekly.2012-01-20 2012-01-20 12:13:47 +01:00
Miek Gieben 3cb9591a51 Gofmt 2012-01-15 15:30:12 +01:00
Miek Gieben 95747ee8d1 Some more todo added 2012-01-12 23:28:08 +01:00
Miek Gieben 9b48d4b899 gofmt 2012-01-12 22:49:26 +01:00
Miek Gieben 3078f05f56 Some more memory tweaks 2012-01-12 22:34:53 +01:00
Miek Gieben 2143ce0031 Fix the tests, but they now fail 2012-01-11 14:44:54 +01:00
Miek Gieben b548a3fe89 Return an error when packing fails 2012-01-08 16:03:30 +01:00
Miek Gieben d2a064e390 Update in the documentation 2011-12-16 19:35:37 +01:00
Miek Gieben de3f0f3903 Documentation and make the random better 2011-12-16 19:28:35 +01:00
Miek Gieben 22a467e718 Fixes the latest weekly 2011-11-02 23:06:54 +01:00
Miek Gieben da2e464de1 A lot of BIND specific checks 2011-09-21 14:22:43 +02:00
Miek Gieben 2f74133d6a More test functions
Minor tweaks for timeouts in client.go
2011-09-20 18:15:36 +02:00
Miek Gieben 956ec9b962 set the timeouts 2011-09-20 17:40:13 +02:00
Miek Gieben 850a12ac8e Return a error when there is no conn, dont panic 2011-09-20 10:20:24 +02:00
Miek Gieben 3be73fcea9 Tsig fixes
make tsig easier to use and even transparant when using the API
2011-09-11 01:10:47 +02:00
Miek Gieben e4acc12f44 Remove debugging code 2011-09-11 00:32:00 +02:00
Miek Gieben 313640276f Make async querying work again 2011-09-11 00:31:03 +02:00
Miek Gieben cd17a26192 Give the channels more sane names
Rename ChannelQuery to QueryChan and
ChannelReply to ReplyChan, both sound much better
2011-09-11 00:20:44 +02:00
Miek Gieben c939840fb2 Fix the examples
Esp. those using xfr functions
2011-09-10 21:37:57 +02:00
Miek Gieben c9332fad8c remove client.Dial/Close
Was a hack to make qperf faster
2011-09-10 21:12:46 +02:00
Miek Gieben befa590883 Double check this 2011-09-10 16:59:25 +02:00
Miek Gieben 6e72207318 Simplify tsig
Add a couple of errors, and make the function signature
of the tis function more inline with the dnssec ones.
2011-09-10 16:50:27 +02:00
Miek Gieben bec4153541 slight updates to the TODO 2011-09-10 14:48:22 +02:00
Miek Gieben 19bf874769 Use a new type to send back request,answer
a type Exchange has been added, which makes communicating with
the resolver more strait forward.

This will also be used in the *xfr functions.
2011-09-10 14:26:08 +02:00
Miek Gieben 41b0b39432 tcp fixes 2011-08-09 15:13:35 +02:00
Miek Gieben 8a82f129c0 tcp fixes 2011-08-09 15:01:29 +02:00
Miek Gieben 44d3cc7daf kill another make() 2011-08-09 13:15:25 +02:00
Miek Gieben 7d2aabea76 re-add qperf 2011-08-08 16:29:13 +02:00
Miek Gieben 861a2adb6c Forget to the add the i := fv.Uint() 2011-08-08 13:10:35 +02:00
Miek Gieben a44eb54de2 put defer back in 2011-08-04 13:59:15 +02:00
Miek Gieben 1032e7593f defer add a small performance penalty 2011-08-04 13:49:40 +02:00
Miek Gieben c170e0bbaa Eliminate allocations when using ExchangeBuffer() 2011-08-04 13:17:36 +02:00