Skip to content

Commit ca20073

Browse files
committed
Updated config for the new release, swapped to cloudflares dns as the default for better speeds
1 parent 3049c05 commit ca20073

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

README.md

+15-6
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,17 @@ sourcedirs = [
3737
"sources"
3838
]
3939

40-
# location of the log file
41-
log = "grimd.log"
42-
43-
# what kind of information should be logged, 0 = errors and important operations, 1 = dns queries, 2 = debug
44-
loglevel = 0
40+
# log configuration
41+
# format: comma separated list of options, where options is one of
42+
# file:<filename>@<loglevel>
43+
# stderr>@<loglevel>
44+
# syslog@<loglevel>
45+
# loglevel: 0 = errors and important operations, 1 = dns queries, 2 = debug
46+
# e.g. logconfig = "file:grimd.log@2,syslog@1,stderr@2"
47+
logconfig = "file:grimd.log@2,stderr@2"
48+
49+
# apidebug enables the debug mode of the http api library
50+
apidebug = false
4551

4652
# address to bind to for the DNS server
4753
bind = "0.0.0.0:53"
@@ -56,7 +62,7 @@ nullroute = "0.0.0.0"
5662
nullroutev6 = "0:0:0:0:0:0:0:0"
5763

5864
# nameservers to forward queries to
59-
nameservers = ["8.8.8.8:53", "8.8.4.4:53"]
65+
nameservers = ["1.1.1.1:53", "1.0.0.1:53"]
6066

6167
# concurrency interval for lookups in miliseconds
6268
interval = 200
@@ -88,6 +94,9 @@ togglename = ""
8894
# If not zero, the delay in seconds before grimd automaticall reactivates after
8995
# having been turned off.
9096
reactivationdelay = 300
97+
98+
#Dns over HTTPS provider to use.
99+
DoH = "https://cloudflare-dns.com/dns-query"
91100
```
92101

93102
# Building

config.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type Config struct {
4040
ToggleName string
4141
ReactivationDelay uint
4242
APIDebug bool
43-
DoH string
43+
DoH string
4444
}
4545

4646
var defaultConfig = `# version this config was generated from
@@ -88,7 +88,7 @@ nullroute = "0.0.0.0"
8888
nullroutev6 = "0:0:0:0:0:0:0:0"
8989
9090
# nameservers to forward queries to
91-
nameservers = ["8.8.8.8:53", "8.8.4.4:53"]
91+
nameservers = ["1.1.1.1:53", "1.0.0.1:53"]
9292
9393
# concurrency interval for lookups in miliseconds
9494
interval = 200

0 commit comments

Comments
 (0)