Fix pubsub, documentation, version
This commit is contained in:
@ -14,17 +14,16 @@ port = 53
|
||||
[resolv]
|
||||
# Domain-specific nameservers configuration, formatting keep compatible with Dnsmasq
|
||||
# Semicolon separate multiple files.
|
||||
resolv-file = "/etc/resolv.conf"
|
||||
resolv-file = "etc/resolv.conf"
|
||||
timeout = 5 # 5 seconds
|
||||
# The concurrency interval request upstream recursive server
|
||||
# Match the PR15, https://github.com/kenshinx/godns/pull/15
|
||||
interval = 200 # 200 milliseconds
|
||||
|
||||
setedns0 = false #Support for larger UDP DNS responses
|
||||
|
||||
[redis]
|
||||
enable = true
|
||||
host = "127.0.0.1"
|
||||
host = "192.168.1.71"
|
||||
port = 6379
|
||||
db = 0
|
||||
password =""
|
||||
@ -35,7 +34,7 @@ servers = ["127.0.0.1:11211"]
|
||||
[log]
|
||||
stdout = true
|
||||
file = "./godns.log"
|
||||
level = "INFO" #DEBUG | INFO |NOTICE | WARN | ERROR
|
||||
level = "DEBUG" #DEBUG | INFO |NOTICE | WARN | ERROR
|
||||
|
||||
|
||||
|
||||
@ -50,9 +49,9 @@ maxcount = 0 #If set zero. The Sum of cache itmes will be unlimit.
|
||||
#If set false, will not query hosts file and redis hosts record
|
||||
enable = true
|
||||
host-file = "/etc/hosts"
|
||||
redis-enable = false
|
||||
redis-enable = true
|
||||
redis-key = "godns:hosts"
|
||||
ttl = 600
|
||||
refresh-interval = 5 # 5 seconds
|
||||
refresh-interval = 60 # 5 seconds
|
||||
|
||||
|
||||
|
56
etc/godns.example.conf
Normal file
56
etc/godns.example.conf
Normal file
@ -0,0 +1,56 @@
|
||||
#Toml config file
|
||||
title = "GODNS"
|
||||
version = "0.2.0"
|
||||
author = "kenshin, tystuyfzand"
|
||||
|
||||
debug = false
|
||||
|
||||
[server]
|
||||
host = ""
|
||||
port = 53
|
||||
|
||||
[resolv]
|
||||
# Domain-specific nameservers configuration, formatting keep compatible with Dnsmasq
|
||||
# Semicolon separate multiple files.
|
||||
resolv-file = "/etc/resolv.conf"
|
||||
timeout = 5 # 5 seconds
|
||||
# The concurrency interval request upstream recursive server
|
||||
# Match the PR15, https://github.com/kenshinx/godns/pull/15
|
||||
interval = 200 # 200 milliseconds
|
||||
# When defined, this is preferred over regular DNS. This requires a resolver to be active besides this, only for the initial lookup.
|
||||
# A hosts file entry will suffice as well.
|
||||
# dns-over-https = "https://cloudflare-dns.com/dns-query"
|
||||
setedns0 = false #Support for larger UDP DNS responses
|
||||
|
||||
[redis]
|
||||
enable = true
|
||||
host = "127.0.0.1"
|
||||
port = 6379
|
||||
db = 0
|
||||
password =""
|
||||
|
||||
[memcache]
|
||||
servers = ["127.0.0.1:11211"]
|
||||
|
||||
[log]
|
||||
stdout = true
|
||||
file = "./godns.log"
|
||||
level = "INFO" #DEBUG | INFO |NOTICE | WARN | ERROR
|
||||
|
||||
[cache]
|
||||
# backend option [memory|memcache|redis]
|
||||
backend = "memory"
|
||||
expire = 600 # 10 minutes
|
||||
maxcount = 0 #If set zero. The Sum of cache items will be unlimit.
|
||||
|
||||
[hosts]
|
||||
#If set false, will not query hosts file and redis hosts record
|
||||
enable = true
|
||||
host-file = "/etc/hosts"
|
||||
redis-enable = false
|
||||
redis-key = "godns:hosts"
|
||||
ttl = 600
|
||||
# Refresh interval can be high since we have automatic updating via push and fsnotify
|
||||
refresh-interval = 300
|
||||
|
||||
|
Reference in New Issue
Block a user