Commit Graph

78 Commits

Author SHA1 Message Date
Miek Gieben 71e3d1dfcb Preliminary support for EDNS0_LLQ 2013-05-08 22:34:42 +02:00
Miek Gieben 6ecde82c20 Remove UPDATE_LEASE to UL
The "other" edns0 option will then become LONG_LIVED_QUERIES which
is way to long to be practical, so I want to make it LLQ, UPDATE_LEASE
then needs to be come UL.

This will probably impact no-one, because noone uses this (I hope)
2013-05-08 22:28:19 +02:00
Miek Gieben eaee06b87e update the documentation 2013-05-08 10:09:49 +02:00
Ask Bjørn Hansen 0bcd43e7cc Use SourceNetmask to truncate IP addresses in EDNS-CLIENT-SUBNET packets
OpenDNS returns SERVFAIL to the client if the address in the EDNS packet
is too long. The spec says to truncate it to the shortest possible address
when the SourceNetmask is applied.
2013-05-07 16:53:43 -07:00
Miek Gieben cd10853288 Make Len() and Copy() private
I don't think anybody will needs these, msg.Len() is still
available. Severly cuts back on the amount of exported functions.
2013-02-09 08:35:17 +01:00
Miek Gieben 37cfcdfbef add todo 2013-01-28 13:12:54 +01:00
Miek Gieben b92195920a Prefix errors with dns: 2013-01-28 13:09:38 +01:00
Miek Gieben eb28b618cb Be much more inline with the spec for the edns subnet 2013-01-27 14:47:47 +01:00
Miek Gieben 9cd656b377 typo 2013-01-22 13:27:48 +01:00
Miek Gieben 6cd2d0524d typo in docs 2012-12-14 16:24:53 +01:00
Miek Gieben 2e02b42558 Fix documentation too 2012-12-09 20:20:16 +01:00
Miek Gieben 235e892dfc Rename the RR types drop the RR_ prefix
This is also done in the official Go library. It also make the
code shorter.
2012-12-09 19:23:25 +01:00
Miek Gieben ffe42637c5 Documentation 2012-12-01 12:44:57 +01:00
Miek Gieben 60d891eba6 put const here 2012-10-16 13:48:43 +02:00
Miek Gieben bd435eb824 Small tweak 2012-10-15 20:36:02 +02:00
Alex Polvi ec8d3d51d1 initial stab at edns update lease http://files.dns-sd.org/draft-sekar-dns-ul.txt 2012-10-15 18:37:19 +01:00
Miek Gieben 795b6cb581 Add some more docs
A per Ask's request add some docs on how a server should deal
with EDNS0 options in the OPT RR.

closes #27
2012-09-09 13:36:43 +02:00
Miek Gieben 379cb2483a I dont think these need to be exported 2012-09-09 13:24:21 +02:00
Miek Gieben 1687a13438 Further minimize the lib 2012-08-20 09:39:10 +02:00
Miek Gieben 335545f6d7 Return the correct code 2012-07-05 12:53:45 +02:00
Miek Gieben 743e1dd3e8 Make it compile 2012-07-05 11:53:09 +02:00
Miek Gieben e6fca0be3f Actually copy the RR for DNSSEC validation.
This is needed because we need to fiddle with the TTL and sometimes
even need to lowercase the rdata. We dont want this to propagate
to the original RRs
2012-06-20 19:16:54 +02:00
Miek Gieben 01442e58af more Copy() functions 2012-06-20 17:44:18 +02:00
Miek Gieben fb0623fbb2 change comments 2012-06-01 22:23:21 +02:00
Miek Gieben b2f459b7fa fixes 2012-06-01 18:29:07 +02:00
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