Ahoj,

I'm tinkering with running knot-resolver for DNS-over-TLS (only). My kresd@1
is listening on the public interface by using a drop-in override file,
following kresd.systemd(7) (kresd-tls.socket.d/override.conf).

Thing is, I would like knot to not listen on port 53 on any interface, not
even localhost. But this is precisely what it does.

I naively tried to stop it from doing so, first with a
kresd.socket.d/override.conf with:

    [Socket]
    ListenStream=

But that failed with journalctl -u kresd.socket containing `kresd.socket:
Unit has no Listen setting (ListenStream=, ListenDatagram=, ListenFIFO=,
...). Refusing.`

And also by trying to disable that "socket-unit", with a
[email protected]/override.conf containing:

    [Service]
    Sockets=
    Sockets=kresd-tls.socket
    Sockets=kresd-control@%i.socket

But that did nothing.

Finally, using `systemctl mask kresd.socket` I get it to stop listening on
(localhost) port 53. But then instead systemd find itself in "degraded"
mode...

Any tip on how to accomplish this cleanly?

-- 
https://lists.nic.cz/cgi-bin/mailman/listinfo/knot-dns-users

Reply via email to