Positive wildcare replies
Reply to queries when you have a wildcard in the zone. This works for DNS and DNSSEC. Thing missing is NODATA responses for that specific wildcard. Add wildcard_test.go as well.
This commit is contained in:
parent
24394f0d4d
commit
09c94fa443
3 changed files with 86 additions and 12 deletions
|
@ -37,6 +37,7 @@ func (z *Zone) nameErrorProof(rr dns.RR) []dns.RR {
|
|||
}
|
||||
}
|
||||
|
||||
// We do this lookup twice, once for wildcard and once for the name proof. TODO(miek): fix
|
||||
ce := z.ClosestEncloser(rr)
|
||||
wildcard := "*." + ce
|
||||
rr.Header().Name = wildcard
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue