mirror of
https://github.com/coredns/coredns.git
synced 2025-10-31 18:23:13 -04:00
Plugin/BIND - extend the syntax to allow multiple addresses (#1512)
* Extend bind to allow multiple addresses. UTs added. Changes the log for server starting, adding address when available * update readme for bind * fixes after review * minor fix on readme * accept multiple BIND directives in blocserver, consolidate the addresses * fixes after review - format logging server address, variable names
This commit is contained in:
committed by
Miek Gieben
parent
a0834b1dd5
commit
76455c6a0d
@@ -20,11 +20,11 @@ func (tp testPlugin) Name() string { return "testplugin" }
|
||||
|
||||
func testConfig(transport string, p plugin.Handler) *Config {
|
||||
c := &Config{
|
||||
Zone: "example.com.",
|
||||
Transport: transport,
|
||||
ListenHost: "127.0.0.1",
|
||||
Port: "53",
|
||||
Debug: false,
|
||||
Zone: "example.com.",
|
||||
Transport: transport,
|
||||
ListenHosts: []string{"127.0.0.1"},
|
||||
Port: "53",
|
||||
Debug: false,
|
||||
}
|
||||
|
||||
c.AddPlugin(func(next plugin.Handler) plugin.Handler { return p })
|
||||
|
||||
Reference in New Issue
Block a user