Commit Graph

103 Commits

Author SHA1 Message Date
Miek Gieben
de95ac0bb3 gofmt 2012-06-01 13:35:52 +02:00
Miek Gieben
2827f497aa Add documentation for edns0 2012-06-01 13:11:17 +02:00
Miek Gieben
54519d1a4d Implement address truncation as specified in the draft 2012-06-01 11:40:57 +02:00
Miek Gieben
77709d301c Show ip6 address with [ and ] 2012-05-31 23:02:06 +02:00
Miek Gieben
c326309d62 Fix subnet stuff 2012-05-31 22:40:52 +02:00
Miek Gieben
1bf0864632 First pass for edns subnet support 2012-05-31 21:40:07 +02:00
Miek Gieben
29365cc9d8 more consistent naming 2012-05-31 19:33:12 +02:00
Miek Gieben
b0c12388e8 Give edns0 support as much need upgrade
Its now much nicer and more Go like. In essence ENDS0
is a sort of a mini RR parser.
2012-05-31 18:36:27 +02:00
Miek Gieben
1948cd2a90 Use go vetted struct tags
They had the form: "domain-name", now they are key value pairs (key is
always dns: `dns:"domain-name"`
2012-04-29 21:55:29 +02:00
Miek Gieben
e1873c28bc move tsig to tsig.go just as RR_OPT 2012-03-02 23:07:25 +01:00
Miek Gieben
2c44133163 Fixes for the new presentation of txt records 2012-02-13 15:59:40 +01:00
Miek Gieben
5917838cbb gofmt 2012-01-20 12:24:20 +01:00
Miek Gieben
dd36721421 Doc and make it slightly better 2012-01-15 16:24:57 +01:00
Miek Gieben
3cb9591a51 Gofmt 2012-01-15 15:30:12 +01:00
Miek Gieben
6e3385b868 Append edns zero options 2012-01-13 12:29:25 +01:00
Miek Gieben
4a5a144c53 Finalize edns version setting 2012-01-12 20:39:31 +01:00
Miek Gieben
c70a559315 Fix the OPT Len() function 2012-01-12 20:16:16 +01:00
Miek Gieben
2829cf1c01 Fix the OPT Len() function 2012-01-12 20:16:00 +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
131f6962d1 gofmt 2011-12-09 21:45:57 +01:00
Taral
c1889c778d gofmt (excluding _examples) 2011-11-27 21:03:21 -08:00
Miek Gieben
1a81ac9c85 NSID is broken 2011-09-20 12:52:23 +02:00
Miek Gieben
4228e0ad7d a new line
Add a newline before printing the EDNS record.
Make it look like a real pseudo section
2011-09-15 21:57:10 +02:00
Miek Gieben
8aa88a0bd3 normalize errors 2011-03-25 11:19:35 +01:00
Miek Gieben
778e146033 Add tsig and mangle back to Query 2011-03-23 19:15:30 +01:00
Miek Gieben
28b008e05e tweaks 2011-03-22 09:44:33 +01:00
Miek Gieben
98e4b33cb5 formatting and documentation 2011-02-24 16:22:14 +01:00
Miek Gieben
77348913dd Update the documentation 2011-02-24 16:13:23 +01:00
Miek Gieben
5ce850ff22 docs edns0 2011-01-27 14:28:04 +01:00
Miek Gieben
9eea4682fd Fix documentation 2011-01-17 21:10:48 +01:00
Miek Gieben
c6655f6e6d No newline in the OPT record 2011-01-08 19:45:59 +01:00
Miek Gieben
b5de7e1745 Fix the testsuite 2011-01-07 10:09:46 +01:00
Miek Gieben
0040c9b30e More convience functions 2011-01-06 15:24:18 +01:00
Miek Gieben
7888cd96b8 edns ala dig
use the OPT pseudo header for NSID, ala bind
2011-01-06 15:06:06 +01:00
Miek Gieben
a5100db599 Complete fix NSID
parsing/reading and setting al work now
2011-01-06 14:58:58 +01:00
Miek Gieben
08b6220c67 Make the edns api more Go like
Split the set/get function to a SetX() and X()
2011-01-06 10:24:00 +01:00
Miek Gieben
e1d0db4107 remove the variable here 2011-01-01 22:40:55 +01:00
Miek Gieben
acdab89120 Completely fix EDNS0 2010-12-30 18:42:40 +01:00
Miek Gieben
9b745ab4d3 typos in comments 2010-12-30 15:22: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
4ed14b9785 More cleansup and robustness
* make the resolver more robust
* more dnssec functions
2010-12-28 09:41:54 +01:00
Miek Gieben
7f88c92f0f Fix EDNS0 (OPT_RR) printing 2010-12-27 14:31:31 +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
d6efd37302 Some cleanup 2010-12-25 13:09:27 +01:00
Miek Gieben
65caf6f891 Documentation!
Make the packet documentation much nicer.
2010-12-25 11:14:11 +01:00
Miek Gieben
f16ad2a7af Add some helper function for ENDS
cleanups - starts to work. Still FORMERR on EDNS0 request, but
we are getting there
2010-12-23 14:27:04 +01:00
Miek Gieben
18afd5e536 EDNS is easy
Only the OPT RR needs to be supported
2010-12-23 14:07:35 +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