aboutsummaryrefslogtreecommitdiff
path: root/cmd/resolver/main.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2019-04-12 23:07:58 +0700
committerShulhan <ms@kilabit.info>2019-07-05 00:37:21 +0700
commitb412fb5853219fee7c0fcad7bab8a72d846d7bc5 (patch)
tree59ec94fe15ad69a92920c4378a6ecc5c6109ef48 /cmd/resolver/main.go
parent3bb229101b114153606f7ecec8911c811188bc30 (diff)
downloadrescached-b412fb5853219fee7c0fcad7bab8a72d846d7bc5.tar.xz
all: refactoring with latest update on dns package
All the server core functionalities (caches and forwarding) now implemented inside "dns.Server". The main function of this package are for reading options from configuration file (or from command line options) and watching changes from system resolv.conf. There are also some major changes on configuration file. * "server.parent" option now use URI format instead of IP:PORT. This will allow parent name servers to be UDP, TCP, and/or DoH simultaneusly. * "server.doh.parent" and "server.parent.connection" are removed, redundant with new "server.parent" format. * "cache.threshold" is renamed to "cache.prune_threshold".
Diffstat (limited to 'cmd/resolver/main.go')
-rw-r--r--cmd/resolver/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/resolver/main.go b/cmd/resolver/main.go
index 6af3f47..b47eba3 100644
--- a/cmd/resolver/main.go
+++ b/cmd/resolver/main.go
@@ -132,7 +132,7 @@ func lookup(opts *options, ns string, timeout time.Duration, qname []byte) *dns.
log.Fatal("! Pack:", err)
}
- res, err := cl.Query(req, nil)
+ res, err := cl.Query(req)
if err != nil {
log.Println("! Lookup: ", err)
return nil