coredns/middleware/dnssec
Miek Gieben 4096c4906d Pr 311 2 (#312)
* Add a setup test for middleware/file

This fix adds a setup test for middleware/file so that there is
a basic coverage for the Corefile processing of middleware/file.

This fix is related to 308 (Will look into it).

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* middleware/file: use helper function for test

Fixup setup_test.go and use the test.TempFile function to make things
somewhat shorter.

Use clean up the use of testing.T in TempFile - it is not used.
2016-10-02 15:58:01 +01:00
..
black_lies.go Add middleware/dnssec (#133) 2016-04-26 17:57:11 +01:00
black_lies_test.go Cleanup: put middleware helper functions in pkgs (#245) 2016-09-07 11:10:16 +01:00
cache.go Add middleware/dnssec (#133) 2016-04-26 17:57:11 +01:00
cache_test.go Pr 311 2 (#312) 2016-10-02 15:58:01 +01:00
dnskey.go Golint2 (#280) 2016-09-23 09:14:12 +01:00
dnssec.go Doc: add package docs (#296) 2016-09-25 08:39:20 +01:00
dnssec_test.go Pr 311 2 (#312) 2016-10-02 15:58:01 +01:00
handler.go Golint2 (#280) 2016-09-23 09:14:12 +01:00
handler_test.go Cleanup: put middleware helper functions in pkgs (#245) 2016-09-07 11:10:16 +01:00
README.md Fs (#242) 2016-09-05 09:32:11 +01:00
responsewriter.go Golint2 (#280) 2016-09-23 09:14:12 +01:00
rrsig.go Golint2 (#280) 2016-09-23 09:14:12 +01:00
setup.go Golint2 (#280) 2016-09-23 09:14:12 +01:00
setup_test.go Make CoreDNS a server type plugin for Caddy (#220) 2016-08-19 17:14:17 -07:00

dnssec

dnssec enables on-the-fly DNSSEC signing of served data.

Syntax

dnssec [zones...]
  • zones zones that should be signed. If empty, the zones from the configuration block are used.

If keys are not specified (see below), a key is generated and used for all signing operations. The DNSSEC signing will treat this key a CSK (common signing key), forgoing the ZSK/KSK split. All signing operations are done online. Authenticated denial of existence is implemented with NSEC black lies. Using ECDSA as an algorithm is preferred as this leads to smaller signatures (compared to RSA). NSEC3 is not supported.

A single signing key can be specified by using the key directive.

NOTE: Key generation has not been implemented yet.

TODO(miek): think about key rollovers, and how to do them automatically.

dnssec [zones... ] {
    key file [key...]
}
  • key file indicates that key file(s) should be read from disk. When multiple keys are specified, RRsets will be signed with all keys. Generating a key can be done with dnssec-keygen: dnssec-keygen -a ECDSAP256SHA256 <zonename>. A key created for zone A can be safely used for zone B.

Examples