Commit Graph

2617 Commits

Author SHA1 Message Date
Miek Gieben c26f99da53 Merge branch 'master' of github.com:miekg/dns 2013-05-15 11:20:24 +02:00
Miek Gieben 970dcb3875 Create a contrib section 2013-05-15 11:18:37 +02:00
Miek Gieben d1909a2bdf Make Security an uint16
Because TypeNone and NSEC and NSEC3 are rr types they also uint16s
2013-05-15 08:37:32 +01:00
Miek Gieben c62399262f Update Sign and Sign3 documentation 2013-05-14 22:12:07 +01:00
Miek Gieben 6a6367fa91 Check and set Security=TypeNSEC
When signing with Sign() only a unsecured or a TypeNSEC zone can be
signed. An NSEC3 type zone must be signed with Sign3()
2013-05-14 22:00:11 +01:00
Miek Gieben b4bec99970 update todo 2013-05-13 21:28:27 +01:00
Miek Gieben bd9e0f3d49 Merge branch 'master' of github.com:miekg/dns 2013-05-13 20:25:26 +01:00
Miek Gieben 72f4cd81d8 Rename these internal values
_UDP and _TCP are ugly, just lowercase them.
2013-05-13 12:02:29 +02:00
Miek Gieben 6d46e39bc7 Merge branch 'master' of github.com:miekg/dns 2013-05-13 11:52:25 +02:00
Miek Gieben 38d7d592fb update TODO 2013-05-13 11:52:08 +02:00
Miek Gieben 26d5a3260e We are using embedding 2013-05-13 07:26:08 +01:00
Miek Gieben af286fb157 update todo 2013-05-12 21:09:32 +01:00
Miek Gieben c66494c6c5 Resolv merge conflicts 2013-05-12 19:08:37 +02:00
Miek Gieben 81941d4422 Update all copyright notices 2013-05-12 16:15:52 +02:00
Miek Gieben b4ec8ac33e Fix copyright 2013-05-12 16:11:13 +02:00
Miek Gieben f595bf7a06 Set license on test files 2013-05-12 16:09:52 +02:00
Miek Gieben 98b677a97c Update the copy right for the original GO files 2013-05-12 16:07:06 +02:00
Miek Gieben 5537ac771d Recheck the server mux match logic
And a test to make sure it all works. The root zone can still
be configured as a last resort (wildcard) match.
2013-05-12 15:56:12 +02:00
Miek Gieben b326ffeae9 We start at 5 for the algorithm understood 2013-05-12 09:59:40 +02:00
Miek Gieben 4660849452 update 2013-05-11 21:04:13 +02:00
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 0363410587 NotifyFunc is a bit too much 2013-05-10 17:51:18 +02:00
Miek Gieben 48a8ce58cd documentation 2013-05-10 15:40:56 +02:00
Miek Gieben 99878f2cdf documentation 2013-05-10 15:36:32 +02:00
Miek Gieben bb6de9dc2c better doc for the notifyfunc 2013-05-09 10:41:41 +02:00
Miek Gieben e47e7192c7 Update docs for NotifyFunc 2013-05-09 10:35:03 +02:00
Miek Gieben d18bb64db1 Add notification function on zone changed 2013-05-09 09:52:16 +02:00
Miek Gieben a5a709cd2a Rename securityConfig to sortedNames 2013-05-09 09:30:38 +02: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 204a4c7393 isWildcard is useless - to look for it during a query 2013-05-08 20:47:58 +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 fbea2567e5 Remove some stuff 2013-05-07 22:07:20 +02:00
Miek Gieben 1133a39996 Beter test and isWildcard function 2013-05-07 22:04:30 +02:00
Miek Gieben 57cdce3f58 Add a isWildcard function 2013-05-07 20:03:45 +02:00
Miek Gieben e6e7649112 move functions closer together 2013-05-07 19:41:14 +02:00
Miek Gieben 2fd0e458df Use Signature to be more in line with the non-plural RR 2013-05-07 10:33:20 +02:00
Miek Gieben cfc222de3d Add Sign3 2013-05-07 10:17:01 +02:00