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:
Miek Gieben 2016-03-31 09:25:22 +00:00
parent 24394f0d4d
commit 09c94fa443
3 changed files with 86 additions and 12 deletions

View file

@ -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