mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	middleware/auto: add (#333)
Add auto-load middleware that automatically picks up zones. Every X seconds it will scan for new zones. Add tests and documentation. Make 'make test' use -race.
This commit is contained in:
		| @@ -22,7 +22,6 @@ func fakeStubServerExampleNet(t *testing.T) (*dns.Server, string) { | ||||
| 	} | ||||
| 	// add handler for example.net | ||||
| 	dns.HandleFunc("example.net.", func(w dns.ResponseWriter, r *dns.Msg) { | ||||
| 		t.Logf("writing response for example.net.") | ||||
| 		m := new(dns.Msg) | ||||
| 		m.SetReply(r) | ||||
| 		m.Answer = []dns.RR{test.A("example.net.	86400	IN	A	93.184.216.34")} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user