From 467a89c4ba8b5713b4a9660ec34f48a364ff9761 Mon Sep 17 00:00:00 2001 From: Torben Nehmer Date: Tue, 24 Aug 2021 16:49:17 +0200 Subject: [PATCH] Cleanup - Default DNS at localhost - updated gitignore - updated default config yml --- .gitignore | 5 +++++ default-config.yml | 2 +- service/config.go | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) 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/") }