systemd-resolved-rs 0.2.0

A compatibility-oriented reimplementation of systemd-resolved
1
2
3
4
import json, socket, sys
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
sock.connect("/run/systemd/resolve/io.systemd.Resolve.Monitor")
# actually we can just look at `src/bin/resolvectl.rs` `interactive_parameters` or `DumpServerState` to see how it's handled.