Commit Graph

3578 Commits

Author SHA1 Message Date
Masayoshi Sekimura a14e77725f tidyup a little with the latest golang.org/x/tools/cmd/vet 2015-09-29 23:04:25 -07:00
Miek Gieben 874ec87128 Merge branch 'master' of github.com:miekg/dns 2015-09-23 22:02:39 +01:00
Miek Gieben 3c158e6e74 Correct set srv.started to false on error
Unlock the lock and set started to false when we return an error
during the startup.

Fixes #263
2015-09-23 22:00:38 +01:00
Miek Gieben 273bc1d0ee Make err explicit and drop the deref on *master 2015-09-23 16:48:28 +01:00
Miek Gieben 7da40742a8 Merge pull request #265 from TimSimmons/transfer-src
Allow supplying a Conn in Transfer struct
2015-09-23 16:46:58 +01:00
TimSimmons 0eeb50cbb8 Allow supplying a Conn in Transfer struct
- This allows a user to call `Dial` before they call `Transfer.In`,
thus specifying the attributes of a [Dialer](https://golang.org/src/net/dial.go?s=5630:5708#L17)
before their AXFR
- Add some docs to Transfer.in to show the functionality

closes #264
2015-09-23 10:37:57 -05:00
Miek Gieben 859f7da631 Merge branch 'master' of github.com:miekg/dns 2015-09-22 07:44:04 +01:00
Miek Gieben 68ed04e36e More documentation for IsDomainName 2015-09-22 07:41:03 +01:00
Miek Gieben 60a765d35b Merge pull request #260 from jesselucas/doc-edit
Updating doc.go
2015-09-17 07:47:08 +01:00
Jesse Lucas cae5606f00 Updating doc.go
Msg is undefined and should use dns.Msg
2015-09-16 22:18:25 -04:00
Miek Gieben 46e689ee11 Merge pull request #259 from asergeyev/i250
Remove TestSingleInflight as per #250
2015-09-15 16:35:04 +01:00
Alex Sergeyev 7eb4621b6c Remove TestSingleInflight as per #250 2015-09-15 11:24:38 -04:00
Miek Gieben d4ee3f8757 Merge pull request #258 from corny/patch-1
Add myself as user
2015-09-14 16:22:54 +01:00
Julian K. 8a70f4bd29 Add myself as user 2015-09-12 01:31:32 +02:00
Miek Gieben 8395762c34 Merge pull request #239 from andrewtj/atj-sidn
Add AXFR tests run against SIDN's DNS Workbench
2015-09-05 08:12:15 +01:00
Miek Gieben 17a9b53ea9 Merge pull request #256 from benschw/patch-1
adding project using miekg/dns to README list
2015-09-01 17:33:26 +01:00
Ben Schwartz 264015f64f adding project using miekg/dns to README list 2015-09-01 11:12:39 -05:00
Miek Gieben 540899743c Handle the last TCP connection
We currently close the connection after 128 TCP queries. But the
when the last query comes in, we close the connection immediately.
Fix this by moving the check to before we read data from the TCP
socket.

Fixes: #218.
2015-08-31 17:40:56 +01:00
Miek Gieben 1d2215f5e8 Merge branch 'dedup4' 2015-08-31 17:06:42 +01:00
Miek Gieben 957df53567 some memory optimisations 2015-08-31 16:50:42 +01:00
Miek Gieben fb82119b66 less memory use 2015-08-31 16:48:28 +01:00
Miek Gieben 66a588e54c 1.5 proper 2015-08-28 13:12:03 +01:00
Miek Gieben 0206070abf Address commments from Alex 2015-08-26 14:13:14 +01:00
Miek Gieben 6cf1a0db58 fmt 2015-08-26 12:19:38 +01:00
Miek Gieben ac493072c7 Correctly handle CNAME/DNAMEs 2015-08-26 12:19:22 +01:00
Miek Gieben e1d5f172ae More tests 2015-08-26 11:26:45 +01:00
Miek Gieben aec78ad5e4 more docs 2015-08-26 07:35:55 +01:00
Miek Gieben 0ce87cb3da More and better tests 2015-08-26 07:34:51 +01:00
Miek Gieben fba9ecdf79 Rework a little and more tests 2015-08-25 22:35:10 +01:00
Miek Gieben 34e4ada672 mpre 2015-08-25 14:28:00 +01:00
Miek Gieben 350b578e76 more wip 2015-08-25 13:52:53 +01:00
Miek Gieben ec2b1b7be3 wip 2015-08-25 10:32:08 +01:00
Miek Gieben a2fc07f45a WIP kill otherdata for cname and dname 2015-08-25 09:30:43 +01:00
Miek Gieben 4bca364480 Cleanup the tests and add some doc string 2015-08-25 08:39:43 +01:00
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