dns: added new config dnscachelog and default to false

This commit is contained in:
nadoo committed 2021-05-30 12:18:05 +08:00
1 parent ceb8b82df8
commit 3092d857ff
8 files changed
+29 -30

No files matched your search

+1
View File
@@ -65,6 +65,7 @@ func parseConfig() *Config {
flag.IntVar(&conf.DNSConfig.MaxTTL, "dnsmaxttl", 1800, "maximum TTL value for entries in the CACHE(seconds)")
flag.IntVar(&conf.DNSConfig.MinTTL, "dnsminttl", 0, "minimum TTL value for entries in the CACHE(seconds)")
flag.IntVar(&conf.DNSConfig.CacheSize, "dnscachesize", 4096, "size of CACHE")
flag.BoolVar(&conf.DNSConfig.CacheLog, "dnscachelog", false, "show query log of dns cache")
flag.StringSliceUniqVar(&conf.DNSConfig.Records, "dnsrecord", nil, "custom dns record, format: domain/ip")
// service configs