Commit Graph

4104 Commits

Author SHA1 Message Date
Miek Gieben b4a69fad37 Make the function on a resolver methods 2011-01-01 19:07:23 +01:00
Miek Gieben daf625264e Fix TCP sending
esp. when an imcomplete message is send back from the server.
Fix {A,I}XFR also
Add DNSError
2011-01-01 18:47:38 +01:00
Miek Gieben 43ebf75fac Fix XFR
The example test performs an axfr, but as ixfr differs slightly
it should also support ixfr
2011-01-01 17:42:13 +01:00
Miek Gieben 1c9282ed7e Framework for xfr started in resolver 2010-12-31 17:05:11 +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 3de30d5834 incorperate axfr in the resolver 2010-12-31 14:27:20 +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 bccabeaeda Fix the makefile 2010-12-30 20:01:33 +01:00
Miek Gieben c71d8e1495 First stab for strconv
This will later be extended to be a real parser.
Applied assorted tweaks
2010-12-30 20:00:26 +01:00
Miek Gieben 6730efb0f5 finish q.go 2010-12-30 18:56:12 +01:00
Miek Gieben 1357befafa add another rfc 2010-12-30 18:52:27 +01:00
Miek Gieben 1b362f5bd2 Copy from dig flags to q
q is a sample query app for Go dns
2010-12-30 18:48:29 +01:00
Miek Gieben acdab89120 Completely fix EDNS0 2010-12-30 18:42:40 +01:00
Miek Gieben ec2e732ad3 Better handle error in pack/unpacking 2010-12-30 17:15:59 +01:00
Miek Gieben b6244eaa04 update the Makefile 2010-12-30 16:49:42 +01:00
Miek Gieben 167492c6fa Use the new names for the header bits 2010-12-30 16:48:35 +01:00
Miek Gieben 1a1c16398c add pack_test 2010-12-30 16:45:10 +01:00
Miek Gieben 28f4189630 Add 'q' a dig-like program (only 100 lines of code) 2010-12-30 16:44:32 +01:00
Miek Gieben 9d1d7444a3 Some fixes from creating a dig-like program 2010-12-30 16:38:16 +01:00
Miek Gieben 9b745ab4d3 typos in comments 2010-12-30 15:22:13 +01:00
Miek Gieben 52a26798b7 dnssec: at least it does not crash
Crashes are fixed, but the signature validation does not work
2010-12-30 15:12:44 +01:00
Miek Gieben 2e77dbdfd2 fix the pack_test 2010-12-30 15:01:00 +01:00
Miek Gieben b51688191c minor cleanups 2010-12-30 14:18:13 +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 bc624181dc More dnssec stuff added 2010-12-30 09:24:40 +01:00
Miek Gieben ac43aed00f Extracted the pubkey from a DNSKEY record 2010-12-29 16:34:53 +01:00
Miek Gieben 504ab27f6f en weer terug 2010-12-29 16:12:01 +01:00
Miek Gieben de5b30f781 zo dan 2010-12-29 16:11:23 +01:00
Miek Gieben 1b5608d373 update the readme a little 2010-12-28 15:44:19 +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 0cea39ac49 Second stab a DNSSEC validation
- still need: sorting, numOfLabels, wildcard handling
2010-12-28 10:40:20 +01:00
Miek Gieben fc2373cd15 more more more 2010-12-28 10:18:10 +01:00
Miek Gieben e339e8bce6 more tests 2010-12-28 10:17:27 +01:00
Miek Gieben c1d45f507e First stab at DNSSEC validation 2010-12-28 09:49:45 +01:00
Miek Gieben d0d1847b61 add dnssec testing 2010-12-28 09:43:33 +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 f9f20203ad fix the tests 2010-12-27 14:32:12 +01:00
Miek Gieben 7f88c92f0f Fix EDNS0 (OPT_RR) printing 2010-12-27 14:31:31 +01:00
Miek Gieben 8dbefdd3f1 Add key2ds conversion
More DNSSEC pieces are coming together
2010-12-27 13:56:58 +01:00
Miek Gieben 36b181f65a Add keytag calculation
Still slow, but it is working. Added testcase for this too
2010-12-27 12:49:48 +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 b634118257 add function prototype for to be implemented functions 2010-12-25 13:13:32 +01:00
Miek Gieben d6efd37302 Some cleanup 2010-12-25 13:09:27 +01:00
Miek Gieben 70552b49ca More stuff added, first stab at using hashing functions 2010-12-25 11:43:12 +01:00
Miek Gieben 65caf6f891 Documentation!
Make the packet documentation much nicer.
2010-12-25 11:14:11 +01:00