mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 09:25:41 +08:00
doc: add info for dnsalwaystcp
This commit is contained in:
parent
529786acf6
commit
20616dfd10
@ -119,6 +119,8 @@ glider v0.6.7 usage:
|
||||
config file path
|
||||
-dns string
|
||||
dns forwarder server listen address
|
||||
-dnsalwaystcp
|
||||
always use tcp to query upstream dns servers no matter there is a forwarder or not
|
||||
-dnsmaxttl int
|
||||
maximum TTL value for entries in the CACHE(seconds) (default 1800)
|
||||
-dnsminttl int
|
||||
|
2
conf.go
2
conf.go
@ -50,8 +50,8 @@ func confInit() {
|
||||
flag.StringVar(&conf.RulesDir, "rules-dir", "", "rule file folder")
|
||||
|
||||
flag.StringVar(&conf.DNS, "dns", "", "dns forwarder server listen address")
|
||||
flag.BoolVar(&conf.DNSConfig.AlwaysTCP, "dnsalwaystcp", false, "always use tcp to query upstream dns servers no matter there's a forwarder or not")
|
||||
flag.StringSliceUniqVar(&conf.DNSConfig.Servers, "dnsserver", []string{"8.8.8.8:53"}, "remote dns server")
|
||||
flag.BoolVar(&conf.DNSConfig.AlwaysTCP, "dnsalwaystcp", false, "always use tcp to query upstream dns servers no matter there is a forwarder or not")
|
||||
flag.IntVar(&conf.DNSConfig.Timeout, "dnstimeout", 3, "timeout value used in multiple dnsservers switch(seconds)")
|
||||
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)")
|
||||
|
@ -128,15 +128,25 @@ checkduration=30
|
||||
|
||||
# Setup a dns forwarding server
|
||||
dns=:53
|
||||
|
||||
# global remote dns server (you can specify different dns server in rule file)
|
||||
dnsserver=8.8.8.8:53
|
||||
dnsserver=1.1.1.1:53
|
||||
|
||||
# By default, when glider received udp dns request and there's no forwarder specified,
|
||||
# it will use udp to query upstream dns servers, otherwise, use tcp;
|
||||
# you can set dnsalwaystcp=true to always use tcp no matter there is a forwarder or not.
|
||||
# dnsalwaystcp=false
|
||||
|
||||
# timeout value used in multiple dnsservers switch(seconds)
|
||||
dnstimeout=3
|
||||
|
||||
# maximum TTL value for entries in the CACHE(seconds)
|
||||
dnsmaxttl=1800
|
||||
|
||||
# minimum TTL value for entries in the CACHE(seconds)
|
||||
dnsminttl=0
|
||||
|
||||
# custom records
|
||||
dnsrecord=www.example.com/1.2.3.4
|
||||
dnsrecord=www.example.com/2606:2800:220:1:248:1893:25c8:1946
|
||||
|
Loading…
Reference in New Issue
Block a user