Commit Graph

3490 Commits

Author SHA1 Message Date
phamhongviet b5deb9f6c0 Add serf-dns to the user list (#353) 2016-05-07 14:17:04 +01:00
Miek Gieben f53eb22bfb Check length before packing OPT (#352)
fixes #351
2016-05-05 16:56:17 +01:00
Miek Gieben 4355939008 massage edns cookie comment 2016-05-03 15:22:17 +00:00
Shumon Huque b534177a1a small patch for EDNS0 cookie support (#350)
* Add EDNS0 Cookie (option 10) support.

* Add EDNS0 Cookie processing.

* Fix nits.

* Add EDNS0 cookie support mention.
2016-05-03 16:19:28 +01:00
looter de1d5dd281 Added grimd project (#349) 2016-05-03 09:16:38 +01:00
Will Bond c9d1302d54 Add Client.Timeout to allow limiting total exchange duration (#345) 2016-04-19 11:29:51 +01:00
McStork a5cc44dc6b set ExtendedRcode return type to int instead of uint8 (#347) 2016-04-18 17:40:15 +01:00
Miek Gieben 89d9c5e74b Merge pull request #346 from jsha/patch-1
Update README.md
2016-04-14 17:49:32 +01:00
Jacob Hoffman-Andrews 8d74112f68 Update README.md 2016-04-14 09:22:05 -07:00
Jacob Hoffman-Andrews 031fad65fe Use package name more reliably. (#343)
The previous logic would act incorrectly when this package was vendored into
other packages.
2016-04-14 08:48:01 +01:00
Miek Gieben dd83d5cbcf IsSubDomain docs
Improve the docs a little and add a test for when the child and parent
are equal.
2016-04-12 22:05:53 +01:00
Miek Gieben b5f8285e2a Merge pull request #340 from miekg/edns2-fix
Put the correct extended rcode in OPT
2016-04-09 16:17:25 +01:00
Miek Gieben 84206d880d Put the correct extended rcode in OPT
We were off by a value of 15. This fixes it. Hard to come up with a test
as writing and reading it yourself will be consistent.
Don't allows extended rcodes smaller than 16. And fix the tests as well.
2016-04-09 16:07:18 +01:00
Miek Gieben c70f867d87 Merge pull request #338 from miekg/edns-fix
Optimize IsEdns0
2016-04-09 15:53:29 +01:00
Miek Gieben 51f75cadab Optimize IsEdns0
Start at the end of the additional section instead of the beginning.
Optionally we only scan the last 2 records, and get rid of the loop
in its entirety.
2016-04-08 08:22:36 +00:00
Miek Gieben 7e024ce8ce Merge branch 'master' of github.com:miekg/dns 2016-03-28 15:46:43 +01:00
Miek Gieben b4a9a147b2 Small fix in docs for transfer Out 2016-03-28 15:45:23 +01:00
Miek Gieben c2b278e70f Merge pull request #335 from mischief/plan9
fix building on plan9
2016-03-25 16:41:19 +00:00
Nick Owens cbc47172cd fix building on plan9 2016-03-21 12:27:12 -07:00
Miek Gieben f8964231a8 Merge pull request #333 from matje/issue-316-rdlen-2
Len returns the rr len of the uncompressed format.
2016-03-17 14:31:27 +00:00
Matthijs Mekking 5107215070 Len returns the rr len of the uncompressed format. 2016-03-17 15:07:51 +01:00
Miek Gieben b9171237b0 Merge pull request #329 from miekg/tsig-lowercase
TSIG: lowercase algorithm before use
2016-03-08 07:08:06 +00:00
Miek Gieben b6897b5a7c TSIG: lowercase algorithm before use
These strings are domain names, so we should lowercase them before
using them.

Also add some tests for Tsig generation and verification.

(/ht ldns release).
2016-03-07 22:17:28 +00:00
Miek Gieben 4adf880b02 Merge pull request #327 from miekg/better-docs-for-larger-responses
Better docs on client buffer size
2016-03-02 10:42:01 +00:00
Miek Gieben 4a3ac71278 Better docs on client buffer size
Extend the documentation for Exchange to make it clear that it is
the callers responsibility to enable larger buffers.
2016-03-02 09:40:40 +00:00
Miek Gieben cce6c130cd Merge pull request #325 from miekg/issue-324
Issue 324
2016-02-28 19:27:08 +00:00
Miek Gieben aabc5a63e1 better comment 2016-02-28 16:40:28 +00:00
Miek Gieben 0985f1e8ff Fix TCP rtt
TCP wasn't returning rrt info anymore, fix this. Also add
an issue_test.go where fixes for specific issues can be put.

Pull the rtt for udp message up into the function where we now
also set the rrt for tcp (for symmetry).
2016-02-28 16:36:19 +00:00
Miek Gieben 2403d251d5 Add specific test file for fixing issues 2016-02-28 16:15:32 +00:00
Miek Gieben d9472276a1 Merge pull request #321 from miekg/issue-306-improve-docs
Improve docs on the label functions
2016-02-28 08:40:12 +00:00
Miek Gieben 84e9295e47 Improve docs on the label functions
Explicitly mention that the domain s must be valid before
given it to these functions.

Fixes: 306
2016-02-28 08:37:17 +00:00
Miek Gieben c793f401f5 TestPreReqAndRemovals should become Example
Add comment in the test function that this should be reworked
once #323 is fixed.
2016-02-28 08:33:08 +00:00
Miek Gieben 8e0dddcdbd Merge pull request #320 from middelink/master
Fix code around dynamic updates, allowing for multiple prereq/inserts/removals per update
2016-02-27 20:00:17 +00:00
Pauline Middelink 5fc21d26a1 Updates after comments from miekg. 2016-02-27 13:02:32 +01:00
Pauline Middelink 13a6137d79 An update msg can have multiple, different prerequests and also multiple,
dfferent remove and inserts. The old code did a reset of the ANSWER and
AUTHORITY section each time a rrset was added.

Made a slight optimalisation that the first time an rrset is added, we
take it length as the initial size. Helps for the one-time add cases.

Added test to prevent regressions.
2016-02-27 12:58:10 +01:00
Miek Gieben f89e57ed50 Merge pull request #318 from middelink/master
Missing dot between service and protocol.
2016-02-27 10:51:16 +00:00
Pauline Middelink 77b60828ed Missing dot between service and protocol. 2016-02-27 11:15:15 +01:00
Miek Gieben 905106d0e8 Merge branch 'master' of github.com:miekg/dns 2016-02-22 19:20:54 +00:00
Miek Gieben 8fc9caa888 Go 1.6 for travis 2016-02-22 19:20:48 +00:00
Miek Gieben e0d84d97e5 Merge pull request #310 from turtlemonvh/master
Add consul to list of users on README
2016-02-13 09:14:50 +01:00
Timothy e937df22c0 Add consul to list of users on README
Proof: https://github.com/hashicorp/consul/blob/master/command/agent/dns.go
2016-02-12 16:41:29 -05:00
Miek Gieben 83f7d658ac Merge pull request #309 from corny/patch-1
README: public-dns has moved
2016-02-05 09:40:07 +00:00
Julian K 4d05cbc9ba README: public-dns has moved 2016-02-03 19:53:21 +01:00
Miek Gieben 3d66e3747d Merge pull request #307 from everclear/patch-1
New user added
2016-01-29 16:34:59 +00:00
everclear b633e89c58 New user added 2016-01-29 16:26:44 +00:00
Miek Gieben 4687536c72 Merge pull request #302 from TomOnTime/tlim_newstuff
Added new functions: TrimDomain(), AddDomain().
2016-01-25 17:15:38 +00:00
tal@whatexit.org 808f9308ef Added new functions: TrimDomainName()/AddOrigin()
* TrimDomainName() Trims the domain off a FQDN.
  * AddOrigin() Adds a domain to a shortname or leaves a FQDN alone.
2016-01-25 12:08:29 -05:00
Miek Gieben c144371d31 Merge pull request #305 from shawnps/patch-3
typo
2016-01-24 07:46:31 +00:00
Shawn Smith 4d6d450eed typo 2016-01-23 15:39:59 -08:00
Miek Gieben 5c01f20c3a Merge pull request #304 from shawnps/gofmt
gofmt -s
2016-01-23 08:13:56 +00:00