Commit Graph

3233 Commits

Author SHA1 Message Date
Miek Gieben bb1103f648 Merge pull request #212 from asergeyev/master
Changes for rarely-used RR types
2015-05-07 19:35:36 +01:00
Alex Sergeyev 0bc16d74c9 Added comment to commented-out testcase 2015-05-07 12:12:39 -04:00
Alex Sergeyev 32bf0823e2 Support for almost all possible ways to format HINFO record 2015-05-07 12:09:05 -04:00
Alex Sergeyev fe15681571 Fixed reversed logic. 2015-05-07 11:31:23 -04:00
Alex Sergeyev 2e9176243e Updated NSAP support according to RFC1706
New text format 0x and no more length in the object itself.
2015-05-07 10:18:47 -04:00
Alex Sergeyev d2bed60478 Fixed SSHFP parsing when multiple lines used for text representation. 2015-05-07 09:50:44 -04:00
Miek Gieben d00c3f21d4 Merge pull request #211 from miekg/tlsa
Fix TLSA parsing
2015-05-07 14:02:27 +01:00
Miek Gieben 28965350a6 Check the l.err token errors
If found return them. Not that we only return them in looping
constructs, i.e. endingTo*, in the other ones it will silently fail
still.
2015-05-07 12:47:56 +01:00
Miek Gieben 03d7235729 Add TLSA parsing tests 2015-05-07 12:47:42 +01:00
Miek Gieben 6dfba2f623 Fix off-by-one on the maxTok and maxCom check 2015-05-07 10:56:48 +01:00
Miek Gieben 8bcf792243 Playing with TLSA records 2015-05-07 07:42:55 +01:00
Miek Gieben 3331c2fad9 Merge commit '627287e675fb79f57928f77fbfae24abe15ed58b' into tlsa 2015-05-07 07:31:57 +01:00
Miek Gieben 031d041ced Merge pull request #209 from michaelharo/client
Cleanup Client.exchange
2015-05-07 07:28:34 +01:00
Alex Sergeyev 627287e675 Issue with TLSA parsing identified 2015-05-06 23:25:33 -04:00
Miek Gieben af747277f5 Merge pull request #208 from michaelharo/checkid
Check that the query ID matches the answer ID.
2015-05-06 09:14:39 +01:00
Michael Haro 32448f39cd Cleanup Client.exchange
Make Client's exchange function easier to read by moving timeout logic
into separate functions.

Start the timers closer to where they're used so that time from other
logic doesn't impact the deadlines.
2015-05-05 23:23:53 -07:00
Michael Haro b9c528f99c Keep Exchange as it was, but still check ID. 2015-05-05 23:20:46 -07:00
Michael Haro dddcd696ba Check that the query ID matches the answer ID.
Reduce some code duplication by making Exchange() use Client.Exchange().

When performing an Exchange if the query ID does not match the answer ID
return an error.  Also add a test for this condition.
2015-05-05 23:00:16 -07:00
Miek Gieben c13058f493 Merge pull request #207 from roosmaa/keyparse
Use algorithm number to determine private key type.
2015-05-01 12:28:44 +01:00
Mart Roosmaa f074745b0b Use algorithm number to determine private key type. 2015-04-30 17:49:30 +02:00
Miek Gieben 82ffc45b1f Merge pull request #205 from mattrobenolt/patch-1
Add Mesos DNS to Users list
2015-04-28 06:14:20 +00:00
Matt Robenolt 1558a5bd21 Add Mesos DNS to Users list 2015-04-27 23:00:45 -07:00
Robert Gordon 5a357a6fc5 Expose the udp/tcp listening socket w/ ListenAndServe()
Expose the udp and tcp listening socket when ListenAndServe() is used, it seems like
plopping them on Server.Listener and Server.PacketConn would be ideal. The use case is so
that a port of zero can be used and having them exposed will allow for examination of the port
that is bound.
2015-04-18 06:52:30 +01:00
Miek Gieben e98f4bc5ff Merge pull request #203 from FiloSottile/c-records
Add ToCDNSKEY and ToCDS methods (+bugfix)
2015-04-10 19:04:19 +01:00
Filippo Valsorda 4657816178 Add ToCDNSKEY and ToCDS methods (+bugfix) 2015-04-10 18:54:04 +01:00
Miek Gieben e6898c8f30 Merge pull request #201 from asergeyev/master
Addressed #198, correct decoding should only look at last separator.
2015-04-04 08:27:39 +01:00
Miek Gieben c1820daf04 Merge pull request #200 from knickers/patch-1
Add tianon/rawdns to the list of projects
2015-04-04 08:14:53 +01:00
Alex Sergeyev 3373659843 Addressed #198, correct decoding should only look at last separator. 2015-04-03 23:49:35 -04:00
Nick Cox cba5f23774 Add tianon/rawdns to list of projects
tianon's rawdns is a direct, raw DNS interface to the Docker API
2015-04-03 18:53:54 -06:00
Miek Gieben 015384b10e Merge branch 'master' of github.com:miekg/dns 2015-03-25 09:52:57 +00:00
Miek Gieben 0fda12a2bb Add extra docs for SetQuestion and SetNotify
See issue #196
2015-03-25 09:52:14 +00:00
Miek Gieben b9149a2cd7 Merge pull request #195 from suzuken/fix_readme_about_example
README update: document has already moved to doc.go
2015-03-24 07:16:40 +00:00
Kenta SUZUKI df92ed7782 README update: document has already moved to doc.go 2015-03-24 15:56:56 +09:00
Miek Gieben 32c1cd51a9 Merge pull request #194 from reyzell/custom-edns-options
Add support for custom EDNS options in GoDNS.
2015-03-19 09:29:20 +00:00
Miek Gieben 4ec382cd22 Parsing: make channel allocation faster 2015-03-19 09:18:25 +00:00
Miek Gieben 0793c088b9 $GENERATE: don't crash when printing the result. 2015-03-19 09:17:27 +00:00
Miek Gieben fdf0bff324 Parsing: make it faster. 2015-03-19 09:16:13 +00:00
Harvo Jones 57d8407ad7 Changes applied:
* Renamed EDNS0_CUSTOM to EDNS0_LOCAL
* Added EDNS0LOCAL constants
* Added documentation
2015-03-18 12:12:53 -07:00
Harvo Jones 8bd3ac773f Add support for custom EDNS options in GoDNS.
A handful of EDNS options have been standardized, and they each have a type defined in GoDNS.  However there is currently no way a development team can use GoDNS with internally defined options, or with new options that may be proposed in the future.

This change solves the problem by giving users an EDNS0_CUSTOM type to allow clients to send, and servers to receive, custom EDNS options.
2015-03-17 10:41:55 -07:00
Miek Gieben 37500c5a59 Merge pull request #193 from FiloSottile/uniq_sig
RRSIG.Sign: remove duplicate before signing records as per RFC
2015-03-17 15:36:26 +00:00
Filippo Valsorda 315e7334de RRSIG.Sign: remove duplicate before signing records as per RFC 2015-03-17 14:34:16 +00:00
Miek Gieben fd694e564b Merge pull request #192 from ValiMail/feature/export_udp_interface
Export SessionUDP
2015-03-10 07:51:22 +00:00
Peter M. Goldstein 9ef29b5646 Export UDP interfaces 2015-03-09 15:00:21 -07:00
Miek Gieben d5c6e55eed Merge pull request #191 from ValiMail/bugfix/off_by_1_in_max_size
Fix off by one error in MaxMsgSize
2015-03-09 21:55:54 +00:00
Peter M. Goldstein 34a9377404 Update the value of MaxMsgSize 2015-03-09 13:51:11 -07:00
Miek Gieben 12197b977e In TXT records break up large chunks in 255 bytes
TXT records consist out of multiple 255 byte chunk. When parsing
a chunk that is too large, Go DNS would happily add it. This would
only fail when packing the message.

Change this to auto-chunking when reading the TXT records from file
into 255 byte sized chunks.
2015-03-04 09:33:37 +00:00
Michael Haro 6b54d9f863 Revert "Use gofmt to simplify code"
This reverts commit 48dce403d5.
2015-02-26 01:48:30 -08:00
Michael Haro eb9bd9895b Revert "Run gofmt -s on zscan_rr.go"
This reverts commit eaabc3fc5d.
2015-02-26 01:48:21 -08:00
Michael Haro 7f051930ff Use %v as the format arg for errors 2015-02-26 00:49:59 -08:00
Michael Haro eaabc3fc5d Run gofmt -s on zscan_rr.go 2015-02-26 00:41:21 -08:00