Commit Graph

2617 Commits

Author SHA1 Message Date
Miek Gieben 9a38f97391 Fix timeouts, Tsig and EDNS0 update size 2013-09-29 11:21:18 +01:00
Miek Gieben b97b3340fb Make TSIG work again
Start fixing and using the UDP bufsize option.
2013-09-29 10:22:27 +01:00
Miek Gieben a743ae8b68 Some more changes.
Still pondering dns.Conn and a dns.Dial
2013-09-28 22:16:15 +01:00
Miek Gieben 140e525195 More documentation 2013-09-28 22:05:48 +01:00
Miek Gieben 69dcbaeece Remove xfr 2013-09-28 22:01:02 +01:00
Miek Gieben 4bde528be5 Export dns.Conn and make it more like net.Conn
Export lowlevel function and types so that they may be used.
They higher level Exchange function is still there. ExchangeConn
is gone, because it is not needed.
2013-09-28 21:58:08 +01:00
Miek Gieben 31b43187fd add some doc and todo 2013-09-28 20:32:38 +01:00
Miek Gieben 22977491c3 Try to use Conn 2013-09-28 20:31:29 +01:00
Miek Gieben 67065da09c Fix the CAA type 2013-09-27 08:51:20 +00:00
Miek Gieben 4e6b3a5afc Check for the end of the message 2013-09-22 19:35:10 +01:00
Miek Gieben 007c0f06e4 Return as the last statement
Be compatible with older go releases.
2013-09-20 20:24:58 +01:00
Miek Gieben d41d87df59 Merge pull request #56 from abh/whitespace
Whitespace cleanup
2013-09-20 12:17:15 -07:00
Ask Bjørn Hansen 8418a22857 Whitespace cleanup 2013-09-20 08:15:27 -07:00
Miek Gieben 6d02134e2d Doc update 2013-09-20 08:37:22 +01:00
Miek Gieben 3002fc6d40 Merge pull request #55 from abh/edns0-subnet-new-option-code
Support the new RFC6891 EDNS0 SUBNET option code
2013-09-20 00:34:55 -07:00
Ask Bjørn Hansen 55c1f95213 Support the new RFC6891 EDNS0 SUBNET option code
Also keep support for the old draft code
2013-09-19 22:31:28 -07:00
Miek Gieben 0ff70b800b Merge pull request #54 from tonnerre/debian-fixes
Fix for typo in message in zscan_rr
2013-09-16 08:29:26 -07:00
Tonnerre LOMBARD dc79aa0c5a Fix for typo in message in zscan_rr:
Adress is spelled with an insufficient number of ds.
2013-09-15 03:55:10 +02:00
Miek Gieben 1f586fdcda Fixup PrevLabel and add a test 2013-09-12 09:58:42 +01:00
Miek Gieben 4ba292d8b6 Add a PrevLabel function to count back from the right 2013-09-12 09:36:39 +01:00
Miek Gieben c67fc3a2a1 Add more tests for the labels 2013-09-12 09:18:54 +01:00
Miek Gieben 9764818db3 Make CountLabel faster
We don't need an allocation here, it works ok for non-fqdns and fqdns
2013-09-12 09:11:19 +01:00
Miek Gieben b663a82eb3 Move deprecated function to the bottom of the file 2013-09-12 09:07:27 +01:00
Miek Gieben 8eb72eea8a Add . 2013-09-12 09:03:09 +01:00
Miek Gieben 08e7365dc2 Make SplitLabels faster
don't allocate a new string at all, it does not matter is the given
string is not fully qualified.
2013-09-12 08:57:37 +01:00
Miek Gieben b76ac5bde6 Fix the test 2013-09-12 08:14:42 +01:00
Miek Gieben ee8ace0477 Merge branch 'master' of github.com:miekg/dns 2013-09-11 08:22:23 +01:00
Miek Gieben 32b15d1807 Add more IsDomainName tests 2013-09-11 08:22:20 +01:00
Miek Gieben 9c1ee5d5ca Update IsDomainName
This new functions just compiles the domain to wire format, if that
works, the name is deemed OK. It is also much less strict than the
older code. Almost everything is allowed in the name, except two
dots back to back (there is an explicit test for that).
2013-09-10 18:09:22 +00:00
Miek Gieben 9c72d3aa52 Fix docs 2013-09-10 13:21:55 +00:00
Miek Gieben 47cc5b052d Work on making IsDomainName better 2013-09-10 13:13:10 +00:00
Miek Gieben 506b3590c9 Update readme 2013-09-09 22:42:24 +01:00
Miek Gieben a5ac1f46ee ...and fix the imports for the test files 2013-09-09 22:20:48 +01:00
Miek Gieben 81d35ce537 Move some functions to the correct file
DNSSEC tests go in dnssec_test.go
2013-09-09 22:19:24 +01:00
Miek Gieben 2b6e9122bd Use the better name: SingleInflight 2013-09-06 09:49:07 +00:00
Miek Gieben 0adc9a3afe Update doc and TODO 2013-09-06 09:45:30 +00:00
Miek Gieben f5aa2e8e29 Merge branch 'master' of github.com:miekg/dns 2013-09-04 20:03:23 +01:00
Miek Gieben c12e55eb18 Remove the http:// hack 2013-09-03 12:59:29 +00:00
Miek Gieben cb70138d9e Remove comment 2013-09-01 21:37:14 +01:00
Miek Gieben 29232adf26 better comment 2013-08-31 20:26:24 +01:00
Miek Gieben b6a2d1fb5e Allow empty rdata in records
Empty or no rdata is allowed for dynamic updates, so test if this
works for packing/unpacking. It only fails for TSIG (which is
never seen in zone files), SOA (which is not seen like this in dyn.
updates) and WKS (just an old record).
2013-08-31 20:24:52 +01:00
Miek Gieben f99d511479 if A or AAAA is nil return empty string
Now it returns <nil> for nil value, which can not be parsed
back to the record.
2013-08-31 20:07:13 +01:00
Miek Gieben 80f55713f1 comment update 2013-08-30 20:15:05 +01:00
Miek Gieben 401a5e6429 Add unpack test too 2013-08-26 21:24:06 -07:00
Miek Gieben fdcdc6dbf6 Add test to zero rdata (for dyn updates)
This triggerd a bunch of failures, the most important one
is the packing and zero length domain name now works.
2013-08-26 21:11:24 -07:00
Miek Gieben cb9ec711f5 Add (failing) test for zero rdata 2013-08-25 21:38:10 -07:00
Miek Gieben 744f895b6f Better name 2013-08-25 21:25:02 -07:00
Miek Gieben 06ae93df87 update the readme a bit 2013-08-25 21:22:11 -07:00
Miek Gieben e7e29d1c90 Updates 2013-08-24 07:21:37 -07:00
Miek Gieben bb71be0271 Implement outstanding query detection.
Copied from the standard library and adapted to Go DNS.
2013-08-24 02:28:58 +00:00