The hostname-control interface

hostname-control allows configuring the system hostname.

Auto-connect: no

Requires snapd version 2.33+.

ⓘ This is a snap interface. See Interface management and Supported interfaces for further details on how interfaces are used.