mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	middleware/file: add nsec for wildcard expansion (#382)
A NSEC record is need to deny any other name that might exist. Also don't blindly perform the interface conversion when getting glue for NS records as they now may include RRSIG - also add tests for that.
This commit is contained in:
		| @@ -29,6 +29,17 @@ var dnssecTestCases = []test.Case{ | ||||
| 		}, | ||||
| 		Extra: []dns.RR{test.OPT(4096, true)}, | ||||
| 	}, | ||||
| 	{ | ||||
| 		Qname: "miek.nl.", Qtype: dns.TypeNS, Do: true, | ||||
| 		Answer: []dns.RR{ | ||||
| 			test.NS("miek.nl.	1800	IN	NS	ext.ns.whyscream.net."), | ||||
| 			test.NS("miek.nl.	1800	IN	NS	linode.atoom.net."), | ||||
| 			test.NS("miek.nl.	1800	IN	NS	ns-ext.nlnetlabs.nl."), | ||||
| 			test.NS("miek.nl.	1800	IN	NS	omval.tednet.nl."), | ||||
| 			test.RRSIG("miek.nl.	1800	IN	RRSIG	NS 8 2 1800 20160426031301 20160327031301 12051 miek.nl. ZLtsQhwaz+lHfNpztFoR1Vxs="), | ||||
| 		}, | ||||
| 		Extra: []dns.RR{test.OPT(4096, true)}, | ||||
| 	}, | ||||
| 	{ | ||||
| 		Qname: "miek.nl.", Qtype: dns.TypeMX, Do: true, | ||||
| 		Answer: []dns.RR{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user