Skip to content

Latest commit

 

History

History
 
 

netdog

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

netdog

Current version: 0.1.0

Introduction

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 format
  • generate-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.

Colophon

This text was generated using cargo-readme, and includes the rustdoc from src/main.rs.