mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	fix soa min ttl in tests cases (#2451)
This commit is contained in:
		
				
					committed by
					
						 Miek Gieben
						Miek Gieben
					
				
			
			
				
	
			
			
			
						parent
						
							875c11a0cb
						
					
				
				
					commit
					22cacc7cb1
				
			| @@ -16,7 +16,7 @@ var dnsPreserveCaseCases = []test.Case{ | |||||||
| 		Qname: "not-a-service.testns.svc.ClUsTeR.lOcAl.", Qtype: dns.TypeA, | 		Qname: "not-a-service.testns.svc.ClUsTeR.lOcAl.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeNameError, | 		Rcode: dns.RcodeNameError, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("ClUsTeR.lOcAl.	5	IN	SOA	ns.dns.ClUsTeR.lOcAl. hostmaster.ClUsTeR.lOcAl. 1499347823 7200 1800 86400 60"), | 			test.SOA("ClUsTeR.lOcAl.	5	IN	SOA	ns.dns.ClUsTeR.lOcAl. hostmaster.ClUsTeR.lOcAl. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	// A Service | 	// A Service | ||||||
|   | |||||||
| @@ -16,7 +16,7 @@ var dnsEmptyServiceTestCases = []test.Case{ | |||||||
| 		Qname: "svcempty.testns.svc.cluster.local.", Qtype: dns.TypeA, | 		Qname: "svcempty.testns.svc.cluster.local.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeNameError, | 		Rcode: dns.RcodeNameError, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| } | } | ||||||
|   | |||||||
| @@ -15,14 +15,14 @@ var podModeDisabledCases = []test.Case{ | |||||||
| 		Qname: "10-240-0-1.podns.pod.cluster.local.", Qtype: dns.TypeA, | 		Qname: "10-240-0-1.podns.pod.cluster.local.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeNameError, | 		Rcode: dns.RcodeNameError, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	{ | 	{ | ||||||
| 		Qname: "172-0-0-2.podns.pod.cluster.local.", Qtype: dns.TypeA, | 		Qname: "172-0-0-2.podns.pod.cluster.local.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeNameError, | 		Rcode: dns.RcodeNameError, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| } | } | ||||||
|   | |||||||
| @@ -22,28 +22,28 @@ var podModeVerifiedCases = []test.Case{ | |||||||
| 		Qname: "podns.pod.cluster.local.", Qtype: dns.TypeA, | 		Qname: "podns.pod.cluster.local.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeSuccess, | 		Rcode: dns.RcodeSuccess, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	{ | 	{ | ||||||
| 		Qname: "svcns.svc.cluster.local.", Qtype: dns.TypeA, | 		Qname: "svcns.svc.cluster.local.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeSuccess, | 		Rcode: dns.RcodeSuccess, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	{ | 	{ | ||||||
| 		Qname: "pod-nons.pod.cluster.local.", Qtype: dns.TypeA, | 		Qname: "pod-nons.pod.cluster.local.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeNameError, | 		Rcode: dns.RcodeNameError, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	{ | 	{ | ||||||
| 		Qname: "172-0-0-2.podns.pod.cluster.local.", Qtype: dns.TypeA, | 		Qname: "172-0-0-2.podns.pod.cluster.local.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeNameError, | 		Rcode: dns.RcodeNameError, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| } | } | ||||||
|   | |||||||
| @@ -90,7 +90,7 @@ var dnsTestCases = []test.Case{ | |||||||
| 		Qname: "*._not-udp-or-tcp.svc1.testns.svc.cluster.local.", Qtype: dns.TypeSRV, | 		Qname: "*._not-udp-or-tcp.svc1.testns.svc.cluster.local.", Qtype: dns.TypeSRV, | ||||||
| 		Rcode: dns.RcodeNameError, | 		Rcode: dns.RcodeNameError, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	// SRV Service | 	// SRV Service | ||||||
| @@ -201,7 +201,7 @@ var dnsTestCases = []test.Case{ | |||||||
| 		Qname: "*.*.hdlsprtls.testns.svc.cluster.local.", Qtype: dns.TypeSRV, | 		Qname: "*.*.hdlsprtls.testns.svc.cluster.local.", Qtype: dns.TypeSRV, | ||||||
| 		Rcode: dns.RcodeSuccess, | 		Rcode: dns.RcodeSuccess, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	// AAAA | 	// AAAA | ||||||
| @@ -232,7 +232,7 @@ var dnsTestCases = []test.Case{ | |||||||
| 		Qname: "svc1.testns.svc.cluster.local.", Qtype: dns.TypeAAAA, | 		Qname: "svc1.testns.svc.cluster.local.", Qtype: dns.TypeAAAA, | ||||||
| 		Rcode: dns.RcodeSuccess, | 		Rcode: dns.RcodeSuccess, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	// AAAA Service (non-existing service) | 	// AAAA Service (non-existing service) | ||||||
| @@ -240,7 +240,7 @@ var dnsTestCases = []test.Case{ | |||||||
| 		Qname: "svc0.testns.svc.cluster.local.", Qtype: dns.TypeAAAA, | 		Qname: "svc0.testns.svc.cluster.local.", Qtype: dns.TypeAAAA, | ||||||
| 		Rcode: dns.RcodeNameError, | 		Rcode: dns.RcodeNameError, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	// A Service (non-existing service) | 	// A Service (non-existing service) | ||||||
| @@ -248,7 +248,7 @@ var dnsTestCases = []test.Case{ | |||||||
| 		Qname: "svc0.testns.svc.cluster.local.", Qtype: dns.TypeA, | 		Qname: "svc0.testns.svc.cluster.local.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeNameError, | 		Rcode: dns.RcodeNameError, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	// A Service (non-existing namespace) | 	// A Service (non-existing namespace) | ||||||
| @@ -256,7 +256,7 @@ var dnsTestCases = []test.Case{ | |||||||
| 		Qname: "svc0.svc-nons.svc.cluster.local.", Qtype: dns.TypeA, | 		Qname: "svc0.svc-nons.svc.cluster.local.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeNameError, | 		Rcode: dns.RcodeNameError, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	// TXT Schema | 	// TXT Schema | ||||||
| @@ -272,7 +272,7 @@ var dnsTestCases = []test.Case{ | |||||||
| 		Qname: "bogusendpoint.hdls1.testns.svc.cluster.local.", Qtype: dns.TypeA, | 		Qname: "bogusendpoint.hdls1.testns.svc.cluster.local.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeNameError, | 		Rcode: dns.RcodeNameError, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	// A Service does not exist | 	// A Service does not exist | ||||||
| @@ -280,7 +280,7 @@ var dnsTestCases = []test.Case{ | |||||||
| 		Qname: "bogusendpoint.svc0.testns.svc.cluster.local.", Qtype: dns.TypeA, | 		Qname: "bogusendpoint.svc0.testns.svc.cluster.local.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeNameError, | 		Rcode: dns.RcodeNameError, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	// AAAA Service | 	// AAAA Service | ||||||
| @@ -324,21 +324,21 @@ var dnsTestCases = []test.Case{ | |||||||
| 		Qname: "svc.cluster.local.", Qtype: dns.TypeA, | 		Qname: "svc.cluster.local.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeSuccess, | 		Rcode: dns.RcodeSuccess, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	{ | 	{ | ||||||
| 		Qname: "pod.cluster.local.", Qtype: dns.TypeA, | 		Qname: "pod.cluster.local.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeSuccess, | 		Rcode: dns.RcodeSuccess, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	{ | 	{ | ||||||
| 		Qname: "testns.svc.cluster.local.", Qtype: dns.TypeA, | 		Qname: "testns.svc.cluster.local.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeSuccess, | 		Rcode: dns.RcodeSuccess, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| } | } | ||||||
| @@ -383,7 +383,7 @@ var notSyncedTestCases = []test.Case{ | |||||||
| 		Qname: "svc0.testns.svc.cluster.local.", Qtype: dns.TypeA, | 		Qname: "svc0.testns.svc.cluster.local.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeServerFailure, | 		Rcode: dns.RcodeServerFailure, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	5	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| } | } | ||||||
|   | |||||||
| @@ -15,14 +15,14 @@ var kubeApexCases = []test.Case{ | |||||||
| 		Qname: "cluster.local.", Qtype: dns.TypeSOA, | 		Qname: "cluster.local.", Qtype: dns.TypeSOA, | ||||||
| 		Rcode: dns.RcodeSuccess, | 		Rcode: dns.RcodeSuccess, | ||||||
| 		Answer: []dns.RR{ | 		Answer: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	303	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	303	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	{ | 	{ | ||||||
| 		Qname: "cluster.local.", Qtype: dns.TypeHINFO, | 		Qname: "cluster.local.", Qtype: dns.TypeHINFO, | ||||||
| 		Rcode: dns.RcodeSuccess, | 		Rcode: dns.RcodeSuccess, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	303	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	303	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	{ | 	{ | ||||||
| @@ -39,21 +39,21 @@ var kubeApexCases = []test.Case{ | |||||||
| 		Qname: "cluster.local.", Qtype: dns.TypeA, | 		Qname: "cluster.local.", Qtype: dns.TypeA, | ||||||
| 		Rcode: dns.RcodeSuccess, | 		Rcode: dns.RcodeSuccess, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	303	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	303	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	{ | 	{ | ||||||
| 		Qname: "cluster.local.", Qtype: dns.TypeAAAA, | 		Qname: "cluster.local.", Qtype: dns.TypeAAAA, | ||||||
| 		Rcode: dns.RcodeSuccess, | 		Rcode: dns.RcodeSuccess, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	303	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	303	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| 	{ | 	{ | ||||||
| 		Qname: "cluster.local.", Qtype: dns.TypeSRV, | 		Qname: "cluster.local.", Qtype: dns.TypeSRV, | ||||||
| 		Rcode: dns.RcodeSuccess, | 		Rcode: dns.RcodeSuccess, | ||||||
| 		Ns: []dns.RR{ | 		Ns: []dns.RR{ | ||||||
| 			test.SOA("cluster.local.	303	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"), | 			test.SOA("cluster.local.	303	IN	SOA	ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 5"), | ||||||
| 		}, | 		}, | ||||||
| 	}, | 	}, | ||||||
| } | } | ||||||
|   | |||||||
| @@ -151,35 +151,35 @@ func TestReverse(t *testing.T) { | |||||||
| 			Qname: "101.0.0.10.in-addr.arpa.", Qtype: dns.TypePTR, | 			Qname: "101.0.0.10.in-addr.arpa.", Qtype: dns.TypePTR, | ||||||
| 			Rcode: dns.RcodeNameError, | 			Rcode: dns.RcodeNameError, | ||||||
| 			Ns: []dns.RR{ | 			Ns: []dns.RR{ | ||||||
| 				test.SOA("0.10.in-addr.arpa.	5	IN	SOA	ns.dns.0.10.in-addr.arpa. hostmaster.0.10.in-addr.arpa. 1502782828 7200 1800 86400 60"), | 				test.SOA("0.10.in-addr.arpa.	5	IN	SOA	ns.dns.0.10.in-addr.arpa. hostmaster.0.10.in-addr.arpa. 1502782828 7200 1800 86400 5"), | ||||||
| 			}, | 			}, | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			Qname: "example.org.cluster.local.", Qtype: dns.TypePTR, | 			Qname: "example.org.cluster.local.", Qtype: dns.TypePTR, | ||||||
| 			Rcode: dns.RcodeNameError, | 			Rcode: dns.RcodeNameError, | ||||||
| 			Ns: []dns.RR{ | 			Ns: []dns.RR{ | ||||||
| 				test.SOA("cluster.local.       5     IN      SOA     ns.dns.cluster.local. hostmaster.cluster.local. 1502989566 7200 1800 86400 60"), | 				test.SOA("cluster.local.       5     IN      SOA     ns.dns.cluster.local. hostmaster.cluster.local. 1502989566 7200 1800 86400 5"), | ||||||
| 			}, | 			}, | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			Qname: "svc1.testns.svc.cluster.local.", Qtype: dns.TypePTR, | 			Qname: "svc1.testns.svc.cluster.local.", Qtype: dns.TypePTR, | ||||||
| 			Rcode: dns.RcodeSuccess, | 			Rcode: dns.RcodeSuccess, | ||||||
| 			Ns: []dns.RR{ | 			Ns: []dns.RR{ | ||||||
| 				test.SOA("cluster.local.       5     IN      SOA     ns.dns.cluster.local. hostmaster.cluster.local. 1502989566 7200 1800 86400 60"), | 				test.SOA("cluster.local.       5     IN      SOA     ns.dns.cluster.local. hostmaster.cluster.local. 1502989566 7200 1800 86400 5"), | ||||||
| 			}, | 			}, | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			Qname: "svc1.testns.svc.0.10.in-addr.arpa.", Qtype: dns.TypeA, | 			Qname: "svc1.testns.svc.0.10.in-addr.arpa.", Qtype: dns.TypeA, | ||||||
| 			Rcode: dns.RcodeNameError, | 			Rcode: dns.RcodeNameError, | ||||||
| 			Ns: []dns.RR{ | 			Ns: []dns.RR{ | ||||||
| 				test.SOA("0.10.in-addr.arpa.       5     IN      SOA     ns.dns.0.10.in-addr.arpa. hostmaster.0.10.in-addr.arpa. 1502989566 7200 1800 86400 60"), | 				test.SOA("0.10.in-addr.arpa.       5     IN      SOA     ns.dns.0.10.in-addr.arpa. hostmaster.0.10.in-addr.arpa. 1502989566 7200 1800 86400 5"), | ||||||
| 			}, | 			}, | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
| 			Qname: "100.0.0.10.cluster.local.", Qtype: dns.TypePTR, | 			Qname: "100.0.0.10.cluster.local.", Qtype: dns.TypePTR, | ||||||
| 			Rcode: dns.RcodeNameError, | 			Rcode: dns.RcodeNameError, | ||||||
| 			Ns: []dns.RR{ | 			Ns: []dns.RR{ | ||||||
| 				test.SOA("cluster.local.       5     IN      SOA     ns.dns.cluster.local. hostmaster.cluster.local. 1502989566 7200 1800 86400 60"), | 				test.SOA("cluster.local.       5     IN      SOA     ns.dns.cluster.local. hostmaster.cluster.local. 1502989566 7200 1800 86400 5"), | ||||||
| 			}, | 			}, | ||||||
| 		}, | 		}, | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user