mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
Add middleware/dnssec (#133)
This adds an online dnssec middleware. The middleware will sign responses on the fly. Negative responses are signed with NSEC black lies.
This commit is contained in:
@@ -40,7 +40,7 @@ func secondaryParse(c *Controller) (file.Zones, error) {
|
||||
for c.Next() {
|
||||
if c.Val() == "secondary" {
|
||||
// secondary [origin]
|
||||
origins := []string{c.ServerBlockHosts[c.ServerBlockHostIndex]}
|
||||
origins := c.ServerBlockHosts
|
||||
args := c.RemainingArgs()
|
||||
if len(args) > 0 {
|
||||
origins = args
|
||||
@@ -52,7 +52,7 @@ func secondaryParse(c *Controller) (file.Zones, error) {
|
||||
}
|
||||
|
||||
for c.NextBlock() {
|
||||
t, f, e := parseTransfer(c)
|
||||
t, f, e := transferParse(c)
|
||||
if e != nil {
|
||||
return file.Zones{}, e
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user