systemd socket activation binds to loopback interface rather than all interfaces as expected
Versions:
knot-resolver 2.1.1, systemd 238, Fedora 27.
Steps to reproduce:
- systemctl edit kresd.socket
[Socket]
ListenDatagram=53
ListenStream=53
-
systemctl daemon-reload
-
systemctl restart kresd@1.service
-
netstat -peanut | grep 53
Expected results:
Should bind to all active interfaces (0.0.0.0:44 and [::]:53).
Actual results:
Binds to 127.0.0.1:53 and [::1]:53 instead (loopback interface only).
Notes:
Explicitly binding to ListenStream=0.0.0.0:53 is also rewritten to 127.0.0.1:53.