Miek Gieben
784713d0e0
Docs
2012-01-26 22:52:29 +01:00
Miek Gieben
4f588a5d15
documentation
2012-01-26 22:46:59 +01:00
Miek Gieben
04cbdae47a
Fix DS overflow when unpacking
2012-01-23 20:29:47 +01:00
Miek Gieben
7b67cbff49
Set the timeouts throughout the code. New Golang api
2012-01-23 20:25:15 +01:00
Miek Gieben
6e6b67afd5
Fix NSEC(3) with no bitmap
2012-01-23 11:30:26 +01:00
Miek Gieben
67573c14b3
Implement NSEC3 NODATA proof
2012-01-22 11:33:51 +01:00
Miek Gieben
f25584e94e
Overflow fixes
2012-01-21 12:35:19 +01:00
Miek Gieben
5917838cbb
gofmt
2012-01-20 12:24:20 +01:00
Miek Gieben
ea789b6f23
Add nsec3 NXDOMAIN proof
2012-01-19 19:48:09 +01:00
Miek Gieben
7bffcd35bb
Start with nsec3 validation
2012-01-17 19:16:58 +01:00
Miek Gieben
c0af79d3b3
slightly better documentation
2012-01-16 21:57:57 +01:00
Miek Gieben
240879c40d
Documentation
2012-01-16 21:49:17 +01:00
Miek Gieben
9f3a1c1f13
Documentation and make ParseKey private (parseKey)
2012-01-16 21:44:49 +01:00
Miek Gieben
96d79c6816
Fix NSEC3/NSEC parsing. Looks much saner now
2012-01-16 13:45:45 +01:00
Miek Gieben
1ae8cb4101
Check nsec unpacking
2012-01-15 20:46:11 +01:00
Miek Gieben
b4bf6278de
Remove println
2012-01-15 17:18:44 +01:00
Miek Gieben
06fdc07772
Fix nsec3 decoding
2012-01-15 17:18:02 +01:00
Miek Gieben
0dcb849ca2
Fix NSEC3 encoding
2012-01-15 13:53:32 +01:00
Miek Gieben
e76189c8f7
NSEC3 working for types < 256
2012-01-15 13:20:53 +01:00
Miek Gieben
dc6c6d7c9e
NSEC3 is starting to work
2012-01-15 12:15:05 +01:00
Miek Gieben
03a8ee13a2
NSEC3 encoding works
...
Only for 1 windows, but dig has stopped complaining. This
needs to be streamlined a little, but its looking good.
2012-01-14 11:08:42 +01:00
Miek Gieben
7f6a5f4497
Its isnt slow
2012-01-12 21:32:50 +01:00
Miek Gieben
7ddb5feb69
RawRdlength seems to work;
2012-01-12 21:10:29 +01:00
Miek Gieben
036d6e4c2c
Fix edns0 overflow message
2012-01-12 20:22:21 +01:00
Miek Gieben
92a51b4374
Who wrote what
2012-01-12 10:53:19 +01:00
Miek Gieben
2543321215
Fix the packing failure
...
non-fqdn don't generate an packing failure. Need to do something
about this. Maybe not returning a bool from pack, but a real Error
2012-01-11 21:19:46 +01:00
Miek Gieben
eb12c526f2
Add more tests
2012-01-11 21:03:47 +01:00
Miek Gieben
3886728bdb
Add debug prints back in msg.go
2012-01-11 20:50:08 +01:00
Miek Gieben
416eb764c7
Much better message length
2012-01-11 20:37:26 +01:00
Miek Gieben
f1a3b31384
Make a packStructCompress() to leave packStruct() simpler
2012-01-11 20:33:38 +01:00
Miek Gieben
eafe995a56
Add a compression flag to msg struct
2012-01-11 20:26:39 +01:00
Miek Gieben
0008471adf
Add empty CompressedLen function
2012-01-11 20:12:38 +01:00
Miek Gieben
13f1f5b066
Question is compressible IMO
2012-01-11 16:22:58 +01:00
Miek Gieben
1de9cff07a
BIND cannot handle compressed dynamic updates
2012-01-11 16:19:49 +01:00
Miek Gieben
dfd7700790
Compression is not allowed in dyn. updates
2012-01-11 16:18:17 +01:00
Miek Gieben
6d95911558
Dont allow the question section to be compressed
2012-01-11 16:16:09 +01:00
Miek Gieben
f39d939f52
Fix compression
...
The compression was fixed. Also the packing of message is been speed
up, by a facter of 3. Now the packing happens once, instead of
3 times.
Two tests still fail. atm
2012-01-11 16:04:52 +01:00
Miek Gieben
bbd8c42de6
Fix the tests
2012-01-11 14:17:09 +01:00
Miek Gieben
6bf1255177
Fix compression
2012-01-11 14:09:47 +01:00
Miek Gieben
ba869578fd
Implement compression
2012-01-11 11:44:44 +01:00
Miek Gieben
b5d73f1eff
Implement compressible domain names
2012-01-11 11:19:07 +01:00
Miek Gieben
974c28d1b1
More fixes for compression
2012-01-11 11:13:17 +01:00
Miek Gieben
f66bb9d6f5
Merge fixed
2012-01-10 16:05:30 +01:00
Miek Gieben
15d82f0b34
Fix the size -- was counting the labels, not the bytes
2012-01-10 13:47:34 +01:00
Miek Gieben
3b30c6e0b5
Need to work even harder to fix the length, but this is much better
2012-01-10 10:46:55 +01:00
Miek Gieben
bacfa5a80c
A Len() to RR interface
...
This isn't yet finished, but it helps in asserting the amount of
space to alloc when packing a message
2012-01-10 10:43:28 +01:00
Miek Gieben
cedf11f27b
Working compression algo
2012-01-10 08:52:18 +01:00
Miek Gieben
6e0340d46f
Remove debugs
2012-01-09 21:27:52 +01:00
Miek Gieben
f90270014c
This is a working name compression
2012-01-09 21:27:31 +01:00
Miek Gieben
973c5f3e1a
Add a splitlabels
2012-01-09 11:02:45 +01:00
Miek Gieben
e522a6daf7
Make all tests fully qualified
2012-01-08 15:34:42 +01:00
Miek Gieben
58e5def52a
Allow A records without rdata
2011-12-17 20:31:31 +01:00
Miek Gieben
dd14200da0
Revert back to slower Rdlength setting
...
That at least works...
2011-12-17 20:13:35 +01:00
Miek Gieben
4c50439700
Add it
2011-12-16 19:29:24 +01:00
Miek Gieben
de3f0f3903
Documentation and make the random better
2011-12-16 19:28:35 +01:00
Miek Gieben
131f6962d1
gofmt
2011-12-09 21:45:57 +01:00
Miek Gieben
2e0a4a5e34
Allow A records without Rdata
2011-12-09 21:42:49 +01:00
Miek Gieben
88c12387f9
Fixes
2011-12-09 16:07:17 +01:00
Miek Gieben
ad11f2425e
export Unpack/PackDomainName
2011-12-09 15:58:36 +01:00
Miek Gieben
e115e5da6e
Update to the latest weekly: weekly/weekly.2011-12-06
...
The new time API must still be used. But for now it compiles.
All DNSSEC/TSIG timing is probably broken
2011-12-09 11:16:49 +01:00
Miek Gieben
22a467e718
Fixes the latest weekly
2011-11-02 23:06:54 +01:00
Miek Gieben
6e403621e1
Fix NSID (or OPT option code 3)
2011-09-26 09:11:14 +02:00
Miek Gieben
1a81ac9c85
NSID is broken
2011-09-20 12:52:23 +02:00
Miek Gieben
850a12ac8e
Return a error when there is no conn, dont panic
2011-09-20 10:20:24 +02:00
Miek Gieben
fb68e29eb1
Create fp as a type
2011-09-19 22:27:56 +02:00
Miek Gieben
7d73d6e9e1
Make opcode public and fix the IsEdns0
2011-09-19 13:34:16 +02:00
Miek Gieben
5960047748
Make them public
2011-09-19 13:25:02 +02:00
Miek Gieben
6ef13c3cbd
Start thinking about server side axfr
2011-09-11 17:24:52 +02:00
Miek Gieben
6e72207318
Simplify tsig
...
Add a couple of errors, and make the function signature
of the tis function more inline with the dnssec ones.
2011-09-10 16:50:27 +02:00
Miek Gieben
b7ca96e7d4
Normalize errors
...
Use the errors as defined in msg.go and a few.
2011-09-09 10:21:04 +02:00
Miek Gieben
18596dd3f8
Use typeANY, not typeALL
2011-08-22 14:11:41 +02:00
Miek Gieben
c37686a724
remove len(s) from the fastpath
2011-08-09 11:41:44 +02:00
Miek Gieben
100f8ef7eb
Remove len(msg) in favor of a variable with that value
2011-08-09 10:54:58 +02:00
Miek Gieben
1053090121
performace tweaks
2011-08-09 10:29:30 +02:00
Miek Gieben
da5d2e91a8
Remove another small allocation
2011-08-09 10:16:45 +02:00
Miek Gieben
c64f506103
Remove a packStruct - should improve performance
2011-08-08 15:28:19 +02:00
Miek Gieben
982f277a44
kill a packStruct
2011-08-08 14:09:05 +02:00
Miek Gieben
861a2adb6c
Forget to the add the i := fv.Uint()
2011-08-08 13:10:35 +02:00
Miek Gieben
2a596f60b9
impl. the recent changes from the reflect package
2011-08-08 10:15:24 +02:00
Miek Gieben
d6716f693d
impl. the recent changes from the reflect package
2011-08-08 09:49:25 +02:00
Miek Gieben
27948bb9f9
Use uint16 instead of int
2011-08-04 15:13:10 +02:00
Miek Gieben
6931e1e215
Adapt ns to the new (fast) zone structure
2011-07-29 14:15:59 +02:00
Miek Gieben
da0603089a
gofmt -w
2011-07-23 23:43:43 +02:00
Miek Gieben
9b1e7b4b3d
documentation
...
make Str_rr and Str_class private, prolly only needed
for parsing
2011-07-23 23:15:40 +02:00
Miek Gieben
2e4f0cc015
goto restrictions
2011-07-18 13:26:57 +02:00
Miek Gieben
f1cbdbd9d4
New goto rules
2011-07-18 13:12:22 +02:00
Miek Gieben
77f4205cea
I can parse rrs now
2011-07-14 21:25:15 +02:00
Miek Gieben
3f69a63128
class NONE added
2011-07-06 17:33:16 +02:00
Elazar
904e322dfd
Ran gofix, and manually bring code up to latest go release.
...
1) Ran gofix on all files.
2) Added "tcp" and "udp" to Resolve* functions in server.go
3) Generated primes to the primes array and not to two predefined
struct members (P and Q), since now rsa support multi-factor primes.
2011-06-02 13:31:12 +03:00
Miek Gieben
e5a769baf0
Fix up API and documentation
2011-03-30 14:54:43 +02:00
Miek Gieben
2d7a1cddeb
Add QuerySimple
...
Some examples are working again. Things are getting
better.
Still need to think about a generic Config (ClientConfig)
for parsing the /etc/resolv.conf
2011-03-29 10:15:42 +02:00
Miek Gieben
135772de9f
complete rewrite the resolver side
...
make it mirror the server side and thus
async and concurrent
2011-03-28 10:01:10 +02:00
Miek Gieben
f2a93a155b
Implement all other TSIG checks
2011-03-25 14:46:30 +01:00
Miek Gieben
ec0a52ccac
documentation
2011-03-25 11:20:52 +01:00
Miek Gieben
8aa88a0bd3
normalize errors
2011-03-25 11:19:35 +01:00
Miek Gieben
87845a9cb1
Formatting
2011-03-24 09:24:49 +01:00
Miek Gieben
25bdf43f06
more documentation updates
2011-03-23 19:37:07 +01:00
Miek Gieben
0059556516
More TSIG changes. Curious if they amount to something
2011-03-15 16:18:13 +01:00
Miek Gieben
82bb573f56
more tsig work - still does not validate but getting close
2011-03-14 12:28:04 +01:00
Miek Gieben
36b77b3b8b
Fix txt rdata
2011-03-14 09:38:29 +01:00