Commit Graph

2975 Commits

Author SHA1 Message Date
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
Miek Gieben
ca52132cef reverse this until I have evidence it would be needed 2013-12-05 19:48:08 +00:00
Miek Gieben
1f2f21480f merged 2013-12-05 19:46:03 +00:00
Miek Gieben
bae157c7ef remove bogus comments 2013-12-05 09:56:15 +00:00
Miek Gieben
186871d2a9 Add check for > maxUint16 sizes TYPEXXXX or CLASSXXX
These were silently wrapped in a uint16, nicer to actually give
an error.
2013-12-05 09:54:46 +00:00
Miek Gieben
bc4b2fe244 Name this test better 2013-12-05 07:48:13 +00:00
Miek Gieben
857c4d663c Merge pull request #61 from axaxs/master
Fixes for zone scanning and signature verification
2013-12-04 23:44:47 -08:00
Alex A. Skinner
3f084f07fd add myself as a contributor to this version 2013-12-04 13:12:41 -05:00
Skinner, Alex
edd235088a Added TYPE65534 record type so that zone scanning doesn't die upon encountering one. Fixed DNSSEC signature verification. 2013-12-04 12:58:20 -05:00
Miek Gieben
7d715c6657 Merge branch 'master' of github.com:miekg/dns 2013-12-03 09:13:31 +00:00
Miek Gieben
792fd9743e Allow for escape spaces in NewRR
Fix omission in NewRR where the parsing does not allow for
escaped spaces (unless \032 was used).
2013-12-03 09:12:21 +00:00
Miek Gieben
f746f40adf Merge branch 'master' of github.com:miekg/dns 2013-11-21 13:28:34 +00:00
Miek Gieben
37a1ae569b Remove this tidbit of documentation
A nil client is wrong. Just remove the sentence instead of coming
up with something that is technically correct, but doesn't read
nicely.

Closes: #60
2013-11-21 13:27:20 +00:00
Miek Gieben
9b8e8578e4 comment tweak 2013-11-10 18:41:55 +00:00
Miek Gieben
8fec6dd3a3 Use *Token instead of Token when parsing
This result in a 10% speedup when parsing a zone from disk.
2013-11-09 19:34:46 +00:00
Miek Gieben
9b15d749d8 remove newline 2013-11-01 09:51:50 +00:00
Miek Gieben
81fb20e093 Actually make the conn 2013-11-01 09:50:55 +00:00
Miek Gieben
7087f6a88c Also use Dial in xfr 2013-11-01 09:44:24 +00:00
Miek Gieben
37c7c70289 Use the Dial and DialTimeout function internally 2013-11-01 09:42:55 +00:00
Miek Gieben
d789796e53 Add Dial and DialTimeout to the client api.
This is just to mimic net as much as possible.
2013-11-01 09:40:44 +00:00
Miek Gieben
39c7a972c3 typo in doc 2013-10-26 21:36:43 +01:00
Miek Gieben
717a8179f5 Use recommendation from RFC5966 and set idle timeout much lower 2013-10-19 22:00:17 +01:00
Miek Gieben
2c3eafab12 Merge branch '5966' 2013-10-19 21:44:40 +01:00
Miek Gieben
27263c64b1 gofmt 2013-10-19 21:41:13 +01:00
Miek Gieben
ff7806469c Implement EID and NIMLOC records 2013-10-19 21:31:12 +01:00
Miek Gieben
faf449027a small tweak in the test 2013-10-19 19:49:16 +01:00
Miek Gieben
83104da2cc updaet 2013-10-19 12:06:24 +01:00
Miek Gieben
af6fff3ff2 abbreviate markdown to md 2013-10-19 12:03:44 +01:00
Miek Gieben
4c55d0d65f tweaks comment 2013-10-19 11:52:15 +01:00
Miek Gieben
949e660b37 Better comments 2013-10-19 11:44:13 +01:00
Miek Gieben
3b832a072a Add TODO 2013-10-19 11:10:51 +01:00
Miek Gieben
08578961f5 Add a limit after which the connection is closed 2013-10-19 10:18:20 +01:00
Miek Gieben
610cabc412 Make it fatal when the server cannot start 2013-10-19 10:05:12 +01:00
Miek Gieben
118cb99644 update readme 2013-10-18 23:07:48 +01:00
Miek Gieben
5eca59c9e7 Correctly implement multiple queries over 1 tcp conn.
Completely transparant give users another query to handle.
2013-10-18 23:06:28 +01:00
Miek Gieben
1c7f19f49c Merge branch 'master' of github.com:miekg/dns 2013-10-18 19:05:45 +01:00
Miek Gieben
ed0b128bd2 Add some groundwork for implementing rfc5966 recommendations 2013-10-18 11:59:19 +00:00
Miek Gieben
4b1cacf2d2 Update the doc a little 2013-10-18 09:14:31 +00:00
Miek Gieben
02ff3dab3e better 2013-10-17 21:14:57 +01:00
Miek Gieben
b050075299 Add contributors file 2013-10-17 20:24:34 +01:00
Miek Gieben
5e674212d0 Nobody uses these author/version handlers, kill them 2013-10-17 20:23:30 +01:00
Miek Gieben
f569ea2f95 Allow "dns:-" tag in msg to mean dont pack this 2013-10-17 18:26:26 +01:00