aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--environment.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/environment.go b/environment.go
index fad9c4e..b5c226c 100644
--- a/environment.go
+++ b/environment.go
@@ -116,6 +116,9 @@ func LoadEnvironment(dirBase, fileConfig string) (env *Environment, err error) {
// newEnvironment create and initialize options with default values.
func newEnvironment(dirBase, fileConfig string) *Environment {
return &Environment{
+ HostsFiles: make(map[string]*dns.HostsFile),
+ Zones: make(map[string]*dns.Zone),
+
dirBase: dirBase,
pathDirBlock: filepath.Join(dirBase, dirBlock),
pathDirCaches: filepath.Join(dirBase, dirCaches),