Current version: 0.1.0
netdog is a small helper program for wicked, to apply network settings received from DHCP. It
generates /etc/resolv.conf
, generates and sets the hostname, and persists the current IP to a
file.
It contains two subcommands meant for use as settings generators:
node-ip
: returns the node's current IP address in JSON formatgenerate-hostname
: returns the node's hostname in JSON format. If the lookup is unsuccessful, the IP of the node is used.
The subcommand set-hostname
sets the hostname for the system.
This text was generated using cargo-readme, and includes the rustdoc from src/main.rs
.