Commit Graph

2366 Commits

Author SHA1 Message Date
Miek Gieben 320d981509 Add Algo-signal-draft impl. for EDNS0 2013-05-11 21:02:17 +02:00
Miek Gieben ce95cddec1 and fix this typo too 2013-05-11 18:14:49 +02:00
Miek Gieben 6f23a2e9f6 Merge pull request #40 from abh/q-fixes
Make `q` work better if resolv.conf is missing
2013-05-11 09:11:17 -07:00
Miek Gieben 9768128f7b Further search and replace fixes 6->5 2013-05-11 18:10:31 +02:00
Miek Gieben 48c65d7119 Search and replace gone wrong 2013-05-11 18:07:03 +02:00
Miek Gieben 1f7cc5e03f Use correct number 2013-05-11 18:04:55 +02:00
Ask Bjørn Hansen e4a33cd494 Work without resolv.conf if the nameserver is specified with @... 2013-05-11 01:22:20 -07:00
Ask Bjørn Hansen e7e56ada07 Don't try to close the client config file if opening fails
$ q
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x9c124]

goroutine 1 [running]:
os.(*File).Close(0x0, 0xf800000010, 0x0, 0xf840054e40)
/usr/local/go/src/pkg/os/file_unix.go:99 +0x1c
github.com/miekg/dns.ClientConfigFromFile(0x1c3294, 0x6374652f00000010, 0x0, 0xf840054e40, 0xf840054de0, ...)
/Users/ask/go/src/github.com/miekg/dns/clientconfig.go:30 +0xcc
main.main()
/Users/ask/go/src/github.com/miekg/dns/ex/q/q.go:50 +0x45b
2013-05-11 01:22:20 -07:00
Miek Gieben da9a970a5e Fix the newer names for EDNS0 2013-05-09 08:27:49 +02:00
Miek Gieben ec9ac92fad Half the parsing of the EDNS LLQ package 2013-05-08 23:03:02 +02:00
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 d287a66098 up the version to 1.1 2013-05-08 10:22:40 +02:00
Miek Gieben eaee06b87e update the documentation 2013-05-08 10:09:49 +02:00
Miek Gieben 0c698b9463 Merge pull request #39 from abh/edns-use-sourcenetmask
Use SourceNetmask to truncate IP addresses in EDNS-CLIENT-SUBNET packets
2013-05-08 01:05:59 -07: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 6c9efcdf1f Small tweaks 2013-04-30 16:56:30 +02:00
Miek Gieben 495b7d6552 Add UID/GID/UINFO record 2013-04-30 16:42:04 +02:00
Miek Gieben 8285ae4e56 add uinfo uid gid and unspec rr type number 2013-04-30 15:20:01 +02:00
Miek Gieben 9d9f5e0b95 Implement CAA 2013-04-30 15:04:07 +02:00
Miek Gieben cb4c191bd3 more docs 2013-04-27 17:12:22 +01:00
Miek Gieben 8d0b1a32cf Add the code, but does fit in the map anymore 2013-04-27 17:02:28 +01:00
Miek Gieben d075d4cad1 update readme 2013-04-27 16:57:33 +01:00
Miek Gieben d3f6b37ffc Merge branch 'master' of github.com:miekg/dns 2013-04-18 11:24:11 +02:00
Miek Gieben 859bb2659e Add another rfc to the list 2013-04-18 11:23:53 +02:00
Miek Gieben d2551c5c84 Docs and todo update 2013-04-17 08:47:07 +01:00
Miek Gieben 0ddecce7e6 remove useless comment 2013-04-17 08:38:10 +01:00
Miek Gieben d098e9fdce Lengh is 6 bytes for eui48 2013-04-16 15:38:15 +01:00
Miek Gieben f43b7368bd Add tests for EUIxx 2013-04-16 08:41:35 +01:00
Miek Gieben 740ad9674c Allow EUI48 and EUI46 to be parsed 2013-04-16 08:41:35 +01:00
Miek Gieben 4c7a8b4985 Add EUI48 (108) and EUI64 (109)
This is an implementation of
http://tools.ietf.org/html/draft-jabley-dnsext-eui48-eui64-rrtypes-02
2013-04-16 08:40:24 +01:00
Miek Gieben e1c501fcec Fix the CertificateToDane return value: add error
This is more inline with the rest of the functions which
do return an actual error. It is however a small api change.
2013-04-09 08:00:08 +01:00
Miek Gieben afd4d24572 doc typo 2013-04-07 22:05:48 +01:00
Miek Gieben cba3ae4273 Small update to the TODO 2013-04-04 21:01:33 +01:00
Miek Gieben d4374543ea Fix example names 2013-04-02 08:09:36 +01:00
Miek Gieben ddb9970c1b Fix example names 2013-04-02 08:07:22 +01:00
Miek Gieben a00f1d82de remove these printlns 2013-03-20 22:35:13 +00:00
Miek Gieben 72ba10e3d7 Merge branch 'master' of github.com:miekg/dns 2013-03-18 17:59:05 +00:00
Miek Gieben ba6c414fe4 Return an error when packStruct fails
When doing the recursion be sure to catch the error that
might be generated.

Reported-by: madotsuki
2013-03-18 17:56:48 +00:00
Miek Gieben c88ac95260 whitespace in comments 2013-03-18 17:37:49 +00:00
Miek Gieben 7e1530b77e List the users of this list 2013-03-14 16:42:35 +01:00
Miek Gieben b323d0276a Docs 2013-03-05 13:56:59 +01:00
Miek Gieben 3ba1bf974e better doc 2013-03-04 17:21:34 +01:00
Miek Gieben ffca5f59b1 Make comments normative
Fixup the last RR and create a unit test
2013-03-04 15:40:22 +01:00
Miek Gieben 1807dfe2b0 NSEC3PARAM parsing needs slurp 2013-03-04 15:26:58 +01:00
Miek Gieben ef9b83d3bd Docs 2013-03-04 15:01:49 +01:00
Miek Gieben 7b7eaaa4b0 Make (some) commments normative in zonefiles 2013-03-04 12:16:20 +01:00
Miek Gieben 525465db6d Add parse test and further tweaks 2013-03-04 11:24:08 +01:00
Miek Gieben 88c149cdb4 remove line 2013-03-04 10:05:47 +01:00
Miek Gieben ff062b8157 Parse comments in the lexer 2013-03-04 09:58:09 +01:00