Commit Graph

2716 Commits

Author SHA1 Message Date
Miek Gieben a627d88e3f Remove stale comments 2014-01-08 10:11:19 +00:00
Miek Gieben 52f9a59ac1 Cleanup singleFlight a bit 2014-01-08 10:10:39 +00:00
Miek Gieben e79b53886c Correct doc 2014-01-07 11:45:40 +00:00
Miek Gieben 1b53a55801 Add todo 2014-01-07 11:17:01 +00:00
Miek Gieben 8e37d3660d Merge branch 'master' of github.com:miekg/dns 2014-01-07 07:45:29 +00:00
Miek Gieben 9f5db7b72c Disable the unfinished CAA support
CAA was partially implemented, it's better to do it 100% until that
time handle CAA as an unknown record.

Closes #70:
2014-01-07 07:44:06 +00:00
Miek Gieben 560a1c65b0 update license in pool.go
remove some build lines as I have no idea what they are
supposed to be doing.
2014-01-06 10:00:25 +00:00
Miek Gieben 86f8bc9fff Merge branch 'master' of github.com:miekg/dns 2014-01-05 20:41:52 +00:00
Miek Gieben d2977942a4 Merge pull request #69 from millerkil/setrcode-refactor
Refactor SetRcode, rd bit is now set properly for error packets
2014-01-05 12:41:43 -08:00
Alex Ciuba 848a6c7268 Refactor SetRcode, rd bit is now set properly for error packets 2014-01-05 15:20:41 -05:00
Miek Gieben aafa94f352 better docs 2014-01-05 19:45:30 +00:00
Miek Gieben ac2ee587b1 Pool cleanups, readd wait for TCP 2014-01-05 16:29:07 +00:00
Miek Gieben 05ace47df8 Start of better documentation 2014-01-05 14:14:19 +00:00
Miek Gieben 5c37b9e564 Merge conflict resolved 2014-01-05 14:09:03 +00:00
Miek Gieben 18e84f97d1 make the channel size larger 2014-01-05 14:06:07 +00:00
Miek Gieben e6da4dbeab Make the channels buffered 2014-01-05 13:55:58 +00:00
Miek Gieben 8954a6e7c5 Remove debug logging 2014-01-05 13:51:59 +00:00
Miek Gieben 77345b2073 Don't set timeout
This leads to fake connection in the udp query handling.
2014-01-05 13:41:40 +00:00
Miek Gieben 49ece3e490 Add a memory pool
Re-use memory for UDP queries.
2014-01-05 13:39:33 +00:00
Miek Gieben 7a27e05cb7 Remove setting compress to nil
Useless operation as compress is already nil from the
initialization.
2014-01-05 08:06:29 +00:00
Miek Gieben c17b6e8905 Merge pull request #68 from soh335/fix/empty-txt
if txt rdlength is 0, not read anymore
2014-01-04 06:41:58 -08:00
Miek Gieben e01f57407d Put all len() function on one line
At least for the shorter ones.
2014-01-04 13:05:57 +00:00
Miek Gieben bca469e6b1 Fix other string len occurences
Add the +1 in the correct places for the RR length calculations.
2014-01-04 12:50:18 +00:00
Miek Gieben 5b8a651bf0 Fix typo in comment 2014-01-04 11:53:50 +00:00
Miek Gieben 43daccf863 remove println 2014-01-04 11:33:10 +00:00
Miek Gieben 9e73cb688f Fix NAPTR's length function
Add the 3 bytes for the length byte of the strings.

Close issue #67.
2014-01-04 11:30:20 +00:00
Miek Gieben f094f37de3 Add shortbuf erorr too
Cleanup the pull request a bit.
2014-01-04 11:17:13 +00:00
soh335 e8a5f90957 if txt rdlength is 0, not read anymore 2014-01-04 17:30:08 +09:00
Miek Gieben b1f108f79c Simplify client TCP write.
Use the same patch as in the server.
2014-01-04 08:30:08 +00:00
Miek Gieben 39ef03c034 Merge pull request #66 from armon/patch-1
Simplify the Write() for TCP based connections
2014-01-04 00:18:22 -08:00
Armon Dadgar 0cf549278c Simplify the Write() for TCP based connections
Simplify the code path by using io.Copy to handle partial writes. Allocate `l` large enough to avoid a re-allocation. Potential short write fix.
2014-01-03 15:19:35 -08:00
Miek Gieben 451c12da09 typo 2013-12-30 16:46:53 +00:00
Miek Gieben 902ff847c8 Update Exchange documention about retries
Exchange does not fallback to tcp, nor will retry the query. Make
this more clear.
2013-12-27 07:48:30 +00:00
Miek Gieben aeb172ad1a Merge branch 'nsec' 2013-12-25 21:05:30 +00:00
Miek Gieben ec304aeaa7 Split off stuff to package chain
Create a resolver package called chain, to keep in the spririt
of Bind, Unbound, Drill and Knot (and maybe others)
2013-12-25 21:00:19 +00:00
Miek Gieben 2c460e62ed ... and in the tests too 2013-12-25 20:09:22 +00:00
Miek Gieben 0c252cfd17 Rename Proof to VerifyNameError 2013-12-25 20:07:46 +00:00
Miek Gieben 8c9af25e1f Fix NSEC3 Proof tests 2013-12-25 19:53:08 +00:00
Miek Gieben 355e3be472 Add NSEC3 NXDOMAIN proof 2013-12-25 19:44:17 +00:00
Miek Gieben 35b2db6df4 Add Proof function for NSEC/NSEC3 2013-12-25 16:01:39 +00:00
Miek Gieben 6e19a3d570 Add NSEC prototype 2013-12-24 16:54:20 +00:00
Miek Gieben 970b2239a1 Add NSEC3 helper function back in
I'm going to use this in 'q', but it may came in handy for other
developers too. This is the first ramp up to a full blown Go only
recursive resolver.
2013-12-24 16:52:39 +00:00
Andrew Tunnell-Jones 33c8fd7aec Test ServeMux's case folding 2013-12-14 09:44:36 +00:00
Andrew Tunnell-Jones 58bb85e9b4 ServeMux's match should only case fold A-Z 2013-12-14 09:04:29 +00:00
Miek Gieben e716c3fe8c Merge pull request #63 from andrewtj/atj-llq-fix
Return bytes when packing EDNS0_LLQ struct
2013-12-14 00:44:41 -08:00
Andrew Tunnell-Jones eb039fb959 Return bytes when packing EDNS0_LLQ struct 2013-12-14 10:52:44 +11:00
Miek Gieben 6b32a711e9 Allocate just enough space
Remove the len()*2, and replace it with len()+1. The current
len() impl. of the types is good enough to be more precise.
2013-12-06 11:30:33 +00:00
Miek Gieben 70ee966106 Fix the unknown record sign test
Don't make up new error in msg.Pack when there are perfectly fine
errors to return.
2013-12-06 09:43:26 +00:00
Miek Gieben 6c9cc37ac3 Small tweaks to the pull request from Alex 2013-12-06 07:46:08 +00:00
Miek Gieben 110f6c9ea7 Test for TYPE65534 records, copy now copies slices correctly 2013-12-06 07:37:48 +00:00