Miek Gieben
5d094e6e2d
gofmt
2013-06-14 19:42:55 +01:00
Miek Gieben
b697d25ed9
Remove unneed string conversion here
2013-06-14 11:38:04 +00:00
Miek Gieben
9ee7c27e18
Fix rawSetRdlength
...
When searching for the start of the rdata, the offset wasn't properly
calculated. This only impacted names with \DDD in it (weirdly enough).
2013-06-14 11:35:06 +00:00
Miek Gieben
3f348f173b
\DDD to buf parsing fails (sometimes)
...
Added test (that fails for now)
2013-06-14 07:31:22 +01:00
Miek Gieben
6ee0baab56
anything escaped in domain name is legal
...
Allow all character after a \ in a domainname. It's escaped, it's
legal.
2013-06-13 19:41:37 +01:00
Miek Gieben
5d84523f5b
Move pack_test to parse_test
2013-06-13 19:19:40 +01:00
Miek Gieben
088aa2c16b
Merge branch 'master' of github.com:miekg/dns
2013-06-13 14:24:36 +00:00
Miek Gieben
9b4160c9a5
Some tweaks
2013-06-13 14:24:24 +00:00
Miek Gieben
8e68ad38d6
Use new stuff here too
2013-06-08 14:24:20 +01:00
Miek Gieben
b35306b755
Created two new types: Type and Class
...
Actually just go with Robert's suggestion as this seems the
cleanest way to do it. Also saves me from thinking about could
names for the new functions.
2013-06-08 14:09:37 +01:00
Miek Gieben
c72535f2d6
Add TypeToTypeString and ClassToClassString
...
After some discussion with Robert Edmonds, these helper functions
seems in order. It is not what he requested (that was an RRType
and RRClass as new types), but is does make sense to add some
convience functions to save some typing. The dns package itself
also used these function (4 times). So clearly there is a need.
I'm not completely sold about the names.
2013-06-08 13:59:49 +01:00
Miek Gieben
eaa57c3335
EDNS0 codes have been allocated
2013-06-07 10:45:58 +00:00
Miek Gieben
11033f083b
yeah
2013-06-07 08:16:01 +01:00
Miek Gieben
fe71bc23db
Reverse the test outcome
2013-06-07 08:15:24 +01:00
Miek Gieben
d017b24161
parsing known records as unknown ones, does not work
2013-06-07 08:14:14 +01:00
Miek Gieben
88c466c949
Add Copyright to the new file
2013-06-06 19:37:22 +01:00
Miek Gieben
3b95788578
Merge pull request #42 from yalp/FixTxtLen
...
Fix length computation for TXT and a testcase.
2013-06-06 11:36:11 -07:00
Marc Capdevielle
7c80a7202f
Add tests for TXT record serialization
2013-06-06 14:02:57 +02:00
Marc Capdevielle
795a69a6ec
Fix length computation for TXT
2013-06-06 14:02:43 +02:00
Miek Gieben
e8e8e84200
remove println
2013-06-05 22:33:15 +01:00
Miek Gieben
6f0ce553cf
Acutally use the CERT parsing
...
Also fix some bugs in the errors it sends back
2013-06-05 22:28:13 +01:00
Miek Gieben
fd17416ab0
Fix parsing MINFO
2013-06-05 22:20:36 +01:00
Miek Gieben
b33fb29f34
Actually add the MINFO parsing
2013-06-05 22:16:55 +01:00
Miek Gieben
f6c697f52b
Fix IsDomainName
...
Make \.. legal (as it should be) and don't allocate a new var byte c
and every loop.
2013-06-05 22:06:02 +01:00
Miek Gieben
637fed84a4
Remove tests for zone
2013-06-05 20:41:53 +01:00
Miek Gieben
8b1cbd40ce
Remove zone.go
...
The needs for in memory zone data are complex and different for
almost everybody. Adding a memory efficient, fast, generic and
simple data structure to go dns is therefore off the table.
2013-06-05 20:37:37 +01:00
Miek Gieben
15d8cdc5f9
Fix: the *dns.TXT instead of *TXT
2013-06-04 11:37:11 +02:00
Miek Gieben
285a216328
small doc updates
2013-05-16 00:15:36 +01:00
Miek Gieben
3bba2c99c6
Kill the use of strings.ToUpper
...
This creates garbage and does not really help the parsing.
2013-05-15 19:43:10 +02:00
Miek Gieben
c26f99da53
Merge branch 'master' of github.com:miekg/dns
2013-05-15 11:20:24 +02:00
Miek Gieben
970dcb3875
Create a contrib section
2013-05-15 11:18:37 +02:00
Miek Gieben
d1909a2bdf
Make Security an uint16
...
Because TypeNone and NSEC and NSEC3 are rr types they also uint16s
2013-05-15 08:37:32 +01:00
Miek Gieben
c62399262f
Update Sign and Sign3 documentation
2013-05-14 22:12:07 +01:00
Miek Gieben
6a6367fa91
Check and set Security=TypeNSEC
...
When signing with Sign() only a unsecured or a TypeNSEC zone can be
signed. An NSEC3 type zone must be signed with Sign3()
2013-05-14 22:00:11 +01:00
Miek Gieben
b4bec99970
update todo
2013-05-13 21:28:27 +01:00
Miek Gieben
bd9e0f3d49
Merge branch 'master' of github.com:miekg/dns
2013-05-13 20:25:26 +01:00
Miek Gieben
72f4cd81d8
Rename these internal values
...
_UDP and _TCP are ugly, just lowercase them.
2013-05-13 12:02:29 +02:00
Miek Gieben
6d46e39bc7
Merge branch 'master' of github.com:miekg/dns
2013-05-13 11:52:25 +02:00
Miek Gieben
38d7d592fb
update TODO
2013-05-13 11:52:08 +02:00
Miek Gieben
26d5a3260e
We are using embedding
2013-05-13 07:26:08 +01:00
Miek Gieben
af286fb157
update todo
2013-05-12 21:09:32 +01:00
Miek Gieben
c66494c6c5
Resolv merge conflicts
2013-05-12 19:08:37 +02:00
Miek Gieben
81941d4422
Update all copyright notices
2013-05-12 16:15:52 +02:00
Miek Gieben
b4ec8ac33e
Fix copyright
2013-05-12 16:11:13 +02:00
Miek Gieben
f595bf7a06
Set license on test files
2013-05-12 16:09:52 +02:00
Miek Gieben
98b677a97c
Update the copy right for the original GO files
2013-05-12 16:07:06 +02:00
Miek Gieben
5537ac771d
Recheck the server mux match logic
...
And a test to make sure it all works. The root zone can still
be configured as a last resort (wildcard) match.
2013-05-12 15:56:12 +02:00
Miek Gieben
b326ffeae9
We start at 5 for the algorithm understood
2013-05-12 09:59:40 +02:00
Miek Gieben
4660849452
update
2013-05-11 21:04:13 +02:00
Miek Gieben
320d981509
Add Algo-signal-draft impl. for EDNS0
2013-05-11 21:02:17 +02:00