diff --git a/extra/config.ini.example b/extra/config.ini.example index 3a1aeee..efc13ce 100644 --- a/extra/config.ini.example +++ b/extra/config.ini.example @@ -22,3 +22,7 @@ Port = 6379 Password = "" DB = 0 TTL = 10 #In seconds + +[Dns] +XfrIPs = ["*"] #Array of slaves IPs +Nameservers = ["ns1.example.org", "ns2.example.org", "ns1.example.com"] #Arry of NS urls. (the first one is the master) \ No newline at end of file diff --git a/utils/structs.go b/utils/structs.go index 18a9ef6..f188909 100644 --- a/utils/structs.go +++ b/utils/structs.go @@ -27,6 +27,12 @@ type Redis struct { TTL int `ini:"TTL"` } +//DNS : Struct for XFR and NS +type DNS struct { + XfrIPs []string + Nameservers []string +} + //Conf : Struct for the whole config.ini file when it will be parsed by go-ini type Conf struct { AppMode string `ini:"app_mode"`