Knot Resolver: Resolve DNS names like it's 2021! https://www.knot-resolver.cz/support/
I'm struggling with very weird issue with the view
module. A very simple view configuration fails (so far tested version 2.3 and 2.4):
modules = { 'policy', 'view' }
net.ipv6 = false
net = {'0.0.0.0'}
view:addr('127.0.0.1/32', policy.PASS)
Simple dig for google on localhost fails:
dig google.com @127.0.0.1
; <<>> DiG 9.9.4-RedHat-9.9.4-51.el7_4.2 <<>> google.com @127.0.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 37090
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;google.com. IN A
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Aug 01 12:14:41 UTC 2018
;; MSG SIZE rcvd: 39
With this error:error: /usr/local/lib/kdns_modules/view.lua:94: 'struct kr_request' is not callable
Any hints what could be wrong?
view:addr('10.0.0.0/8', policy.all(policy.PASS))
view
is like adding another layer around policy