diff --git a/.gitignore b/.gitignore index 2431e29..8be8c16 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,8 @@ dyndns # Dependency directories (remove the comment below to include it) # vendor/ + +# Non-Example configs +conf.yml +users/* +!users/example.yml \ No newline at end of file diff --git a/default-config.yml b/default-config.yml index 95e1501..d07d855 100644 --- a/default-config.yml +++ b/default-config.yml @@ -1,7 +1,7 @@ service: dns: defaultttl: 60 - server: 10.10.11.254:53 + server: 127.0.0.1:53 users: configdir: users/ webapi: diff --git a/service/config.go b/service/config.go index 077b511..7662e9e 100644 --- a/service/config.go +++ b/service/config.go @@ -28,7 +28,7 @@ func init() { } func SetConfigDefaults() { - viper.SetDefault("Service.DNS.Server", "10.10.11.254:53") + viper.SetDefault("Service.DNS.Server", "127.0.0.1:53") viper.SetDefault("Service.DNS.DefaultTTL", 60) viper.SetDefault("Service.Users.ConfigDir", "users/") }