]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
etc/config: add freebind=true to IPv6 in default config
authorTomas Krizek <tomas.krizek@nic.cz>
Thu, 16 Jan 2020 13:45:04 +0000 (14:45 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 21 Jan 2020 16:20:38 +0000 (17:20 +0100)
In some environments, e.g. VMs, even the IPv6 loopback may
not be available. Using freebind allows the service to start up with
default configuration without requiring the user to change interfaces.

etc/config/config.personal

index ba4ddc1017ebd9b59c8fe58895d36950a48d536f..791caec48fb7d464f0bc74f4d7a571aa74e145ff 100644 (file)
@@ -3,9 +3,9 @@
 
 -- Network interface configuration
 net.listen('127.0.0.1', 53, { kind = 'dns' })
-net.listen('::1', 53, { kind = 'dns'})
 net.listen('127.0.0.1', 853, { kind = 'tls' })
-net.listen('::1', 853, { kind = 'tls' })
+net.listen('::1', 53, { kind = 'dns', freebind = true })
+net.listen('::1', 853, { kind = 'tls', freebind = true })
 
 -- Load useful modules
 modules = {