mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-27 08:14:18 -04:00 
			
		
		
		
	correct test and code (#3184)
This commit is contained in:
		
				
					committed by
					
						 John Belamaric
						John Belamaric
					
				
			
			
				
	
			
			
			
						parent
						
							338d148c78
						
					
				
				
					commit
					59e74eb15d
				
			| @@ -20,7 +20,7 @@ func (e *External) serveApex(state request.Request) (int, error) { | ||||
| 		addr := e.externalAddrFunc(state) | ||||
| 		for _, rr := range addr { | ||||
| 			rr.Header().Ttl = e.ttl | ||||
| 			rr.Header().Name = state.QName() | ||||
| 			rr.Header().Name = dnsutil.Join("ns1", e.apex, state.QName()) | ||||
| 			m.Extra = append(m.Extra, rr) | ||||
| 		} | ||||
| 	default: | ||||
|   | ||||
| @@ -59,7 +59,7 @@ var testsApex = []test.Case{ | ||||
| 			test.NS("example.com.	5	IN	NS	ns1.dns.example.com."), | ||||
| 		}, | ||||
| 		Extra: []dns.RR{ | ||||
| 			test.A("example.com.	5	IN	A	127.0.0.1"), | ||||
| 			test.A("ns1.dns.example.com.	5	IN	A	127.0.0.1"), | ||||
| 		}, | ||||
| 	}, | ||||
| 	{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user