]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
knot resolver: Load /etc/hosts
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 27 May 2026 12:08:17 +0000 (13:08 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 27 May 2026 12:09:51 +0000 (13:09 +0100)
Fixes: #13994 - Cannot access WUI via FQDN, only IP
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/knot-resolver/config.lua

index 01bde6cff287622050f9f743b662b53fe20e9839..46e7bd2f3af0549b7fd983b22d96c333e548c197 100644 (file)
@@ -199,6 +199,9 @@ function config.load_hosts()
        -- Clear any previously registered hints
        hints.config()
 
+       -- Load /etc/hosts
+       hints.add_hosts("/etc/hosts")
+
        -- Set the TTL to one minute
        hints.ttl(60)