failed to connect to socket '/usr/local/var/run/knot/knot.sock' (not exists)
Hi
I just start using knot dns and libknot on Ubuntu 18.10, but it always try to find socket in '/usr/local/var/run/knot' instead of '/var/run/knot'. I've tried using fedora and it works just fine. Here's my knot.conf file (I didn't change anything from the default)
Here's what happen when I run status knot
root@mfriszky-ThinkPad-L380:/# systemctl status knot
● knot.service - Knot DNS server
Loaded: loaded (/lib/systemd/system/knot.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-01-16 11:36:19 WIB; 31s ago
Docs: man:knotd(8)
man:knot.conf(5)
man:knotc(8)
Main PID: 5730 (knotd)
Tasks: 34 (limit: 4915)
Memory: 6.3M
CGroup: /system.slice/knot.service
└─5730 /usr/sbin/knotd
Jan 16 11:36:19 mfriszky-ThinkPad-L380 knotc[5728]: Configuration is valid
Jan 16 11:36:19 mfriszky-ThinkPad-L380 knotd[5730]: info: Knot DNS 2.7.5 starting
Jan 16 11:36:19 mfriszky-ThinkPad-L380 knotd[5730]: info: binding to interface 127.0.0.1@53
Jan 16 11:36:19 mfriszky-ThinkPad-L380 knotd[5730]: info: binding to interface ::1@53
Jan 16 11:36:19 mfriszky-ThinkPad-L380 knotd[5730]: info: loading 0 zones
Jan 16 11:36:19 mfriszky-ThinkPad-L380 knotd[5730]: warning: no zones loaded
Jan 16 11:36:19 mfriszky-ThinkPad-L380 knotd[5730]: info: starting server
Jan 16 11:36:19 mfriszky-ThinkPad-L380 knotd[5730]: info: server started in the foreground, PID 5730
Jan 16 11:36:19 mfriszky-ThinkPad-L380 knotd[5730]: info: control, binding to '/run/knot/knot.sock'
Jan 16 11:36:19 mfriszky-ThinkPad-L380 systemd[1]: Started Knot DNS server.
However everytime i run knotc conf-read it always says
root@mfriszky-ThinkPad-L380:/# knotc conf-read
error: failed to connect to socket '/usr/local/var/run/knot/knot.sock' (not exists)
Appreciate any help, thanks!