Miek Gieben
3daa798e14
Small tweak, next cleanup the tests
2015-08-25 06:52:56 +01:00
Miek Gieben
79547a0341
Add Dedup function
...
Add function that dedups a list of RRs. Work on strings, which
adds garbage, but seems to be the least intrusive and takes the
last amount of memory.
Some fmt changes snook in as well.
2015-08-24 22:02:57 +01:00
Miek Gieben
5b9c36bf67
Small doc cleanups
2015-08-23 12:55:01 +01:00
Miek Gieben
8de6ade9ec
golint: document ANY a bit
2015-08-23 10:21:18 +01:00
Andrew Tunnell-Jones
fe0937fa24
Merge sidnxfr_test.go into xfr_test.go
...
* Export tests in xfr_test.go
* Rename tests to be `go test -run` friendly
* Hide behind 'net' build tag
2015-08-23 07:31:06 +00:00
Miek Gieben
9bf52083d1
golint fixes
2015-08-23 08:03:13 +01:00
Miek Gieben
114b68f41b
go vet fixes
2015-08-23 07:24:08 +01:00
Miek Gieben
0424c9ab02
Merge branch 'master' of github.com:miekg/dns
2015-08-22 18:32:04 +01:00
Miek Gieben
a6742d536c
Lock zone pattern deletion too
...
Go 1.5 -race flags this as data race, it's not performance critical,
add locking on the mutex.
2015-08-22 18:31:23 +01:00
Miek Gieben
9f3aaff9ad
Merge pull request #251 from michaelharo/vet
...
Correct formatting directive in Log call
2015-08-22 18:25:47 +01:00
Michael Haro
4c495b2aea
Correct formatting directive in Log call
2015-08-22 10:10:57 -07:00
Miek Gieben
996ff55983
minimize the race in TestSingleInflight
2015-08-22 13:42:02 +01:00
Miek Gieben
6f68c4c4bd
Add remote test
...
TODO: hide this behind a -net tag, so it can be disabled.
2015-08-22 10:50:07 +01:00
Miek Gieben
5d1ea41bf6
Merge branch 'master' of github.com:miekg/dns
2015-08-22 08:55:32 +01:00
Miek Gieben
076c8ffa9a
Rename TestSingleSingleInflight to TestSingleInflight and some cosmetic changes
2015-08-22 08:55:23 +01:00
Miek Gieben
88356f9f15
Merge pull request #249 from fcambus/master
...
Adding statzone to the list of library users
2015-08-21 21:17:10 +01:00
Frederic Cambus
bee2acb3a6
Adding statzone to the list of library users
2015-08-21 22:00:50 +02:00
Miek Gieben
780188672c
Merge pull request #197 from FiloSottile/filippo/crypto
...
Refactor DNSSEC to use crypto.{PrivateKey,Signer}
2015-08-19 18:37:46 +01:00
Miek Gieben
f1e34db2bd
Merge pull request #248 from FiloSottile/patch-1
...
Travis: -> new architecture; - short mode; + race detector
2015-08-19 18:34:28 +01:00
Filippo Valsorda
034c247229
Refactor DNSSEC to use crypto.{PrivateKey,Signer}
...
This will allow RRSIG.Sign to use generic crypto.Signer implementations.
This is a interface breaking change, even if the required changes are most
likely just type asserions from crypto.PrivateKey to the underlying type or
crypto.Signer.
2015-08-19 17:51:02 +01:00
Filippo Valsorda
1663d71c5d
Travis: -> new architecture; - short mode; + race detector
...
If sudo is not needed, Travis will run the builds in a faster containerized architecture.
Removed "-short", added "-race". Wall time loss seems reasonable.
2015-08-19 17:36:44 +01:00
Miek Gieben
c50a9fc91d
Merge branch 'master' of github.com:miekg/dns
2015-08-17 11:12:59 +01:00
Miek Gieben
eac4ea318f
Revert "Use defer Unlock() in ListAndServe"
...
This reverts commit d2cb5e8fef
.
2015-08-17 11:11:14 +01:00
Miek Gieben
7ff8d29c8b
Merge pull request #242 from ErikDubbelboer/lessheap
...
Do simple prechecks to avoid heap allocations
2015-08-13 07:55:50 +01:00
Erik Dubbelboer
6b8b49f49d
Do simple prechecks to avoid heap allocations
2015-08-13 04:50:02 +00:00
Miek Gieben
0fe10e90c4
Drop go 1.3 and add go 1.5rc1 for tests
2015-08-12 07:51:12 +01:00
Miek Gieben
d2cb5e8fef
Use defer Unlock() in ListAndServe
2015-08-12 07:49:41 +01:00
Miek Gieben
42fa711b14
Merge pull request #245 from jmhodges/shutdown_race
...
fix some data races in Server
2015-08-12 07:12:09 +01:00
Jeff Hodges
1cb2437ad1
fix some data races in Server
...
This avoids some issues with Server.PacketConn and Server.Listener being
accessed outside of their locks.
Fixes #244 .
2015-08-11 17:00:14 -07:00
Miek Gieben
c2d94895af
Merge pull request #243 from rafaeljusto/idn-overflow-fix
...
Avoid rune overflow when converting to unicode
2015-08-10 13:18:49 +01:00
Rafael Dantas Justo
7ed808b59f
Avoid rune overflow when converting to unicode
2015-08-10 08:57:07 -03:00
Miek Gieben
e220dd92fd
Add test the crashes idn.
2015-08-10 07:36:10 +01:00
Miek Gieben
f6f99a7a6d
Update README about NSAP record
2015-08-10 07:30:50 +01:00
Miek Gieben
21b35db538
Remove the NSAP record
...
The NSAP was not implemented correctly, see #239 . Just remove it. It will still work as unknown RR.
2015-08-10 07:26:35 +01:00
Miek Gieben
8eb292db07
Doc update for future change in TC handling
...
Update the comment in msg.go#L1700 about the TC bit handling
Small cleanups.
2015-08-09 16:26:25 +01:00
Miek Gieben
bbe3422804
small doc fixes
2015-08-09 15:34:29 +01:00
Miek Gieben
b1fe149a97
Check for l.err in $INCLUDE
...
This can throw l.err as well, and a l.length of zero, check for both.
2015-08-08 13:41:46 +01:00
Miek Gieben
3b3e522e22
A some length check to $GENERATE modifiers
...
Short cut these modifier lengths to 255 max. Which seems a reasonable default.
2015-08-08 13:31:38 +01:00
Miek Gieben
58c5f4cf6e
Small doc updates
2015-08-07 20:58:26 +01:00
Miek Gieben
d7ca9f827c
And check err here as well.
2015-08-07 16:56:49 +01:00
Miek Gieben
3861fcbbb2
Fix HIP parsing
2015-08-07 16:26:37 +01:00
Miek Gieben
1897a2a983
Merge branch 'master' of github.com:miekg/dns
2015-08-07 15:06:19 +02:00
Miek Gieben
d5324dc6e3
Fuzz the text parser
...
Check if the values send on the channel are errors, if so return
one. Otherwise continue parsing.
2015-08-07 15:01:11 +02:00
Miek Gieben
3f3bd86f55
Merge pull request #240 from sajal/master
...
Adding DNS debugger android app
2015-08-07 11:24:41 +01:00
Miek Gieben
69d043f8ab
Better fuzzing test and NSAP fix
...
rr can be nil when parsed, if it, for instance only contains a
comment.
NSAP parsing need some parens to make the if-then logic work.
2015-08-07 12:17:16 +02:00
Sajal Kayan
52fdcc9417
Adding DNS debugger android app
2015-08-07 17:09:15 +07:00
Miek Gieben
1e6d260018
Fuzz NewRR
...
Add checks for token length == 0.
2015-08-07 10:39:21 +01:00
Miek Gieben
9de5f84650
Merge pull request #236 from jdef/serve-wrapper
...
add interfaces to allow packet-level inspection for pre/post processing
2015-08-07 07:22:22 +01:00
Andrew Tunnell-Jones
b1bc8d70f4
Add AXFR tests run against SIDN's DNS Workbench
2015-08-07 05:30:19 +00:00
James DeFelice
8255b4a03f
update docs; replace "data frame" refs with "raw message"
2015-08-06 17:55:37 -04:00