Commit f9655547 authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

plugin/dnssec: Drop inserting DS records on delegation (#1266)

See #1211 for disuccsion; current code is probably the wrong thing to
do; rethink if we need/want this. Comment out the code for now.
parent dce696a2
......@@ -46,6 +46,10 @@ func (d Dnssec) Sign(state request.Request, zone string, now time.Time) *dns.Msg
mt, _ := response.Typify(req, time.Now().UTC()) // TODO(miek): need opt record here?
if mt == response.Delegation {
// This reverts 11203e44. Reverting with git revert leads to conflicts in dnskey.go, and I'm
// not sure yet if we just should fiddle with inserting DSs or not.
// Easy way to, see #1211 for discussion.
/*
ttl := req.Ns[0].Header().Ttl
ds := []dns.RR{}
......@@ -56,6 +60,7 @@ func (d Dnssec) Sign(state request.Request, zone string, now time.Time) *dns.Msg
req.Ns = append(req.Ns, ds...)
req.Ns = append(req.Ns, sigs...)
}
*/
return req
}
......
......@@ -95,7 +95,8 @@ func TestSigningCname(t *testing.T) {
}
}
func TestZoneSigningDelegation(t *testing.T) {
// Disabled for now, see #1211.
func testZoneSigningDelegation(t *testing.T) {
d, rm1, rm2 := newDnssec(t, []string{"miek.nl."})
defer rm1()
defer rm2()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment