Commit Graph

338 Commits

Author SHA1 Message Date
Miek Gieben 19edd05274 Fold dnssec back into dns
It is more natural. Otherwise tsig and tkey needed to be
put in their own packages
2011-01-09 10:31:23 +01:00
Miek Gieben ac687f284a Tsig
* add some testcases for tsig
* add unpack/pack stuff -- doesn't work correctly yet
2011-01-09 00:11:22 +01:00
Miek Gieben 1b39853f03 tsig generation; first stab 2011-01-08 22:39:15 +01:00
Miek Gieben b2e9fc8d84 Added TSIG
By defining a new struct I can re-use all the nice
stuff in msg.go
2011-01-08 21:51:20 +01:00
Miek Gieben fc8e6345af Fix examples and add notify prog
Show how simple a dns-notify becomes.
2011-01-08 13:46:51 +01:00
Miek Gieben d4059485d5 Add even more rcodes 2011-01-03 10:44:00 +01:00
Miek Gieben aeb1ce8d9c Fix the constnames 2011-01-01 20:51:34 +01:00
Miek Gieben 10bfb3d036 Complete the list of DNS q opcodes 2011-01-01 19:51:25 +01:00
Miek Gieben 7c2de14b8d add TKEY and finalize TSIG
No crypto validation ofcourse... only the definition of the RRs
2011-01-01 19:26:08 +01:00
Miek Gieben 82c954bead Rename the TSIG error codes 2010-12-31 15:20:56 +01:00
Miek Gieben 9155d632f5 add TSIG as a type 2010-12-31 15:10:42 +01:00
Miek Gieben 0dcdbe4361 Fix DNS over TCP
Actually send the 2 bytes length and also be prepared
to receive them.
2010-12-31 14:11:52 +01:00
Miek Gieben cc66917658 Add basic support for the LOC record 2010-12-30 20:55:25 +01:00
Miek Gieben 2decd91cb4 Add the NAPTR record 2010-12-30 20:50:31 +01:00
Miek Gieben 9d1d7444a3 Some fixes from creating a dig-like program 2010-12-30 16:38:16 +01:00
Miek Gieben bcf320aad4 rename the examples dir
Make it *not* show up in godoc
2010-12-30 14:13:28 +01:00
Miek Gieben 15dd65171b Split the package in multiple packages
dns - the standard rrtypes and such
    dnssec - validation, keytag calculation, etc
    resolver - for talking to servers
2010-12-30 13:42:52 +01:00
Miek Gieben de5b30f781 zo dan 2010-12-29 16:11:23 +01:00
Miek Gieben 5ced9e2152 almost ready for DNSSEC validation
only need call the crypto/rsa func
2010-12-28 14:57:30 +01:00
Miek Gieben 4ed14b9785 More cleansup and robustness
* make the resolver more robust
* more dnssec functions
2010-12-28 09:41:54 +01:00
Miek Gieben 73cc848e00 remove these files, stay lean and mean 2010-12-28 08:29:17 +01:00
Miek Gieben 8dbefdd3f1 Add key2ds conversion
More DNSSEC pieces are coming together
2010-12-27 13:56:58 +01:00
Miek Gieben 830b2eae29 add hex encoding for DS record
* some more edns finishing touches
2010-12-27 09:58:45 +01:00
Miek Gieben 65caf6f891 Documentation!
Make the packet documentation much nicer.
2010-12-25 11:14:11 +01:00
Miek Gieben fd9afcb44d Add signature helper function
Do this in dnssec.go so that all DNSSEC stuff in contained
in that file.
Add testing too
2010-12-24 11:50:42 +01:00
Miek Gieben 26f62197ba Types should be usable with the Go type system 2010-12-23 17:16:28 +01:00
Miek Gieben 04a18e9937 Define NSEC3 and NSEC and NSEC3PARAM RRs
Those come with new rdata-types that still needs to be impl.
2010-12-23 16:37:54 +01:00
Miek Gieben e5a394b97e more printing tweaks for OPT 2010-12-23 14:43:26 +01:00
Miek Gieben 8302d19b42 At least it gives formerr now 2010-12-23 11:02:01 +01:00
Miek Gieben 1a50861b43 another stab at edns0 2010-12-22 23:05:21 +01:00
Miek Gieben 4ce23b71cf Fix the encoding a EDNS RR
Still need to handle the domain name packer, so that we can
detect we have an OPT RR, with the different encoding
2010-12-22 20:53:18 +01:00
Miek Gieben 0f05a2f434 Make a stab for EDNS 2010-12-22 12:26:50 +01:00
Miek Gieben e650aae18b EDNS impl.
Needs more work, especially in the handling of the
RR.Hdr which is diff. for EDNS rrs
2010-12-22 10:30:41 +01:00
Miek Gieben 63c4d10ed0 Add stuff for EDNS 2010-12-21 21:12:43 +01:00
Miek Gieben b8c9280cc4 add the remaining flags in the DNS headers
Next up: EDNS
2010-12-21 14:41:48 +01:00
Miek Gieben 392f418a0e Fix the inception printing
Still need to add serial arithmetic to the calculations
2010-12-20 22:44:50 +01:00
Miek Gieben 0ed946d772 commit other changes too 2010-12-20 22:20:13 +01:00
Miek Gieben 0e00511c31 Make the resolver a goroutine
Fits more nicely with DNS, async. for free
Renamed the files: dropped the dns prefix
2010-12-18 20:31:26 +01:00