1. Ubuntu/18.04LTS/knot-resolver
について、ここに記述してください。
Contents
1.1. Download
https://www.knot-resolver.cz/download/
Knot Resolver 5.1.1 released
Tuesday, May 19, 2020 https://www.knot-resolver.cz/2020-05-19-knot-resolver-5.1.1.html
https://www.knot-resolver.cz/documentation/
Documentation Quickstart
systemctl start kresd@1.service
1.2. run
Jun 15 03:26:13 skr systemd[1]: Starting Knot Resolver daemon... Jun 15 03:26:14 skr kresd[25735]: [system] bind to '127.0.0.1@53' (TCP): Address already i Jun 15 03:26:14 skr kresd[25735]: [system] error while loading config: error occured here Jun 15 03:26:14 skr kresd[25735]: stack traceback: Jun 15 03:26:14 skr kresd[25735]: [C]: in function 'listen' Jun 15 03:26:14 skr kresd[25735]: /etc/knot-resolver/kresd.conf:6: in main chunk Jun 15 03:26:14 skr kresd[25735]: ERROR: net.listen() failed to bind (workdir '/var/lib/kn Jun 15 03:26:14 skr systemd[1]: kresd@1.service: Main process exited, code=exited, status= Jun 15 03:26:14 skr systemd[1]: kresd@1.service: Failed with result 'exit-code'. Jun 15 03:26:14 skr systemd[1]: Failed to start Knot Resolver daemon.
djbdnsを動かしている。
1.3. conf
# cd /etc/knot-resolver/ root@skr:/etc/knot-resolver# ls kresd.conf
$ cat kresd.conf -- SPDX-License-Identifier: CC0-1.0 -- vim:syntax=lua:set ts=4 sw=4: -- Refer to manual: https://knot-resolver.readthedocs.org/en/stable/ -- Network interface configuration net.listen('127.0.0.2', 53, { kind = 'dns' }) net.listen('127.0.0.2', 853, { kind = 'tls' }) -- net.listen('::1', 53, { kind = 'dns', freebind = true }) -- net.listen('::1', 853, { kind = 'tls', freebind = true }) -- Load useful modules modules = { 'hints > iterate', -- Load /etc/hosts and allow custom root hints 'stats', -- Track internal statistics 'predict', -- Prefetch expiring/frequent records } -- Cache size cache.size = 100 * MB
1.4. run ok
root@skr:/etc/knot-resolver# systemctl start kresd@1.service root@skr:/etc/knot-resolver# systemctl status kresd@1.service �� kresd@1.service - Knot Resolver daemon Loaded: loaded (/lib/systemd/system/kresd@.service; disabled; vendor preset: enabled) Active: active (running) since Mon 2020-06-15 03:35:03 JST; 23s ago Docs: man:kresd.systemd(7) man:kresd(8) Main PID: 25769 (kresd) Tasks: 1 (limit: 1129) CGroup: /system.slice/system-kresd.slice/kresd@1.service ��25769 /usr/sbin/kresd -c /usr/lib/knot-resolver/distro-preconfig.lua -c /etc/ Jun 15 03:35:03 skr systemd[1]: Starting Knot Resolver daemon... Jun 15 03:35:03 skr systemd[1]: Started Knot Resolver daemon.