Commit Graph

2861 Commits

Author SHA1 Message Date
Omri Bahumi dea4cb300a [ISSUE-95] Send replies from the right source IP address
Fixes #95
2014-07-07 18:16:42 +03:00
Miek Gieben 3710182f0f Merge pull request #94 from tarnfeld/readme-projects-discodns
Added our discodns project to the list
2014-07-04 09:46:09 +01:00
Tom Arnfeld 244ba9db68 Added our discodns project to the list 2014-07-04 07:29:35 +01:00
Miek Gieben ecf5962c24 Merge pull request #93 from DSpeichert/master
Added godnsagent to the list of users
2014-07-03 08:55:45 +01:00
Daniel Speichert 7cf0864eb9 Added godnsagent to the list of users 2014-07-02 19:21:29 -04:00
Miek Gieben b0342e8757 Small extension of documentation 2014-06-29 10:36:59 +01:00
Miek Gieben dd90d7942b Add more EDNS0 options 2014-06-19 11:05:28 +00:00
Miek Gieben fc67c4b981 Add Class parsing test function 2014-06-15 20:40:34 +01:00
Miek Gieben 09c28d4a95 comment 2014-06-14 12:48:44 +01:00
Miek Gieben 05cfaca9f0 Merge branch 'master' of github.com:miekg/dns 2014-06-06 21:10:48 +01:00
Miek Gieben 5a8fe5d5f7 Add Copy test 2014-06-06 21:10:38 +01:00
Miek Gieben e8919b372d added comment/todo 2014-06-04 10:21:27 +00:00
Miek Gieben 060e66250e Add IsMsg()
A quick validating function that checks if a buffer is a valid
DNS message.
The code is *far* from complete.
2014-05-18 09:02:00 +01:00
Miek Gieben 812ab5e755 Merge pull request #92 from andrewtj/atj-oversizerrdata
Make PackRR enforce RR data length limit
2014-04-29 08:33:53 +01:00
Andrew Tunnell-Jones 8772f9064c Make PackRR enforce RR data length limit
• Make rawSetRdlength return false if length would overflow
• Make PackRR assume rawSetRdlength returning false indicates an overflow
2014-04-29 05:03:01 +00:00
Miek Gieben 9ee1d1eda1 Merge branch 'master' of github.com:miekg/dns 2014-04-25 09:13:05 +00:00
Miek Gieben 40333dd179 Fix trailing whitespace 2014-04-24 09:55:55 +00:00
Miek Gieben b7a8c14d7d Add dns.Name as a type
This can be used for printing names.
2014-04-23 21:06:17 +01:00
Miek Gieben 6295f64c1c Make sprintDomain public as NameToString 2014-04-23 20:58:55 +01:00
Miek Gieben 2dc3e40828 add TODO 2014-04-23 20:54:17 +01:00
Miek Gieben b0474155fb NewRR: add documentation about Rdlength
Rdlength is not set when the RR is returned from NewRR and friends.
2014-04-21 09:10:39 +01:00
Miek Gieben 5592ee4172 Merge branch 'master' of github.com:miekg/dns 2014-04-11 14:00:44 +00:00
Miek Gieben da2a67f6db Update the README slightly 2014-04-11 13:53:48 +00:00
Miek Gieben 1367585a43 Merge pull request #90 from axaxs/master
must lowercase ownername when computing hash for DS
2014-04-10 19:54:17 -04:00
Alex A. Skinner a156d1ec2f must lowercase ownername when computing hash for DS 2014-04-10 19:40:52 -04:00
Miek Gieben bbd975571c tests: fix for 32 bit platforms
On 32 bits the tests would fail with an out of bounds error (in the
tests).
2014-04-10 13:40:37 +00:00
Miek Gieben 2ec512f89b server: pool: remove pool implementation
Quite a lot of code for a tiny improvement. Lease the Pool boolean
option in server so current code does not break. Will be removed
in later versions.
2014-04-10 12:59:50 +00:00
Miek Gieben fcbb2e7a9a Check and better errors 2014-04-08 00:09:26 +01:00
Miek Gieben 8f8b675103 Add better parsing test 2014-04-06 09:29:42 +01:00
Miek Gieben abe6de223d Add some more checks 2014-04-05 08:06:49 +01:00
Miek Gieben a211645d0a Also check for msg length 2014-04-04 19:43:39 +01:00
Miek Gieben 3b785244ab Add test for parsing a packet 2014-04-04 19:33:50 +01:00
Miek Gieben 7ebb4c59b3 Update the list of CONTRIBUTORS 2014-03-02 17:00:58 +00:00
Miek Gieben 7aaa2f5a4f Merge branch 'master' of github.com:miekg/dns 2014-03-02 16:48:55 +00:00
Miek Gieben 541776149c Merge pull request #85 from andrewtj/atj-encoding
Parsing and Stringer Changes
2014-03-02 16:48:46 +00:00
Miek Gieben 28a65aaf87 test: enable txt equal test
This test fails, but stops failing when I merge pull request #85.
2014-03-02 16:47:52 +00:00
Andrew Tunnell-Jones bd189318ed Document domain name and TXT escaping behaviour 2014-03-02 10:38:46 +00:00
Andrew Tunnell-Jones 588a52762d Test byte escaping in Domain Names and TXT strings
TestTXTRRQuick may not always cover these bytes so explicitly test that
they're covered.
2014-03-02 10:37:07 +00:00
Andrew Tunnell-Jones 22f3256df4 Bump up MaxCountScale in TestTXTRRQuick
Increases number of test iterations which should cover more corner-cases.
2014-03-02 10:15:26 +00:00
Andrew Tunnell-Jones 0a5cb5c80a Update TSIG doc header to avoid godoc oddity
For some reason godoc treats it as plain text because it contains
"(TSIG)".
2014-03-02 09:48:46 +00:00
Andrew Tunnell-Jones 38d78bafe4 Escape @ when printing/unpacking domain names 2014-03-01 22:30:52 +00:00
Andrew Tunnell-Jones 3ba746b6ca Convention is Txt not TXT in msg.go function names 2014-03-01 22:25:24 +00:00
Miek Gieben 2ea84f6110 Add test for upcoming txt changes 2014-03-01 07:34:44 +00:00
Andrew Tunnell-Jones 6fd4d29ced Fix bounds overflow in sprintTxt
Passing excessively long strings (>256*4+3) to sprintTxt would result in
overflowing src. Fix isn't as efficient but simplifies the code.
2014-03-01 02:42:47 +00:00
Andrew Tunnell-Jones 0c98da613d Fix bounds check in nextByte 2014-03-01 02:37:24 +00:00
Miek Gieben 6f477021c0 Make race detector not fire on this simple test
Do the standard Lock()/modify/Unlock() dance.
2014-02-28 15:57:10 +00:00
Miek Gieben 45c5ad39c5 Merge pull request #87 from majek/marek/copy_malloc
Reduce memory allocations in msg.Copy()
2014-02-28 14:52:44 +00:00
Marek Majkowski 999a3ce301 Reduce number of memory allocations in msg.Copy
Right now we allocate memory even for empty slices. This is inefficient, sticking "nil" as a slice is good enough if there are no items.
2014-02-28 07:03:21 -08:00
Andrew Tunnell-Jones 3f834a04fb Update domain name and TXT string escape behaviour
Changes to domain name packing and unpacking:
* Escape dot, backslash, brackets, double-quote, semi-colon and space
* Tab, line feed and carriage return become \t, \n and \r

Changes to TXT string packing and unpacking:
* Escape backslash and double-quote
* Tab, line feed and carriage return become \t, \n and \r
* Other unprintables to \DDD

Stringers do the equivalent of putting domain names and TXT strings
to the wire and back.

There is some duplication of logic. I found performance suffered when
I broke the logic out into smaller functions. I think this may have
been due to functions not being inlined for various reasons.
2014-02-26 10:55:11 +00:00
Andrew Tunnell-Jones f6d8a66c01 Add quick tests for domain name and TXT rr 2014-02-26 10:52:48 +00:00