On Thu, Oct 1, 2026 at 3:50 AM Chris Green <[email protected]> wrote:
>
> Jeffrey Walton <[email protected]> wrote:
> > On Wed, Sep 30, 2026 at 11:46 AM Chris Green <[email protected]> wrote:
> > >
> > > What's the 'right' way to set a system's domain name permanenty (i.e.
> > > doesn't get lost when you reboot) on Debian systems?
> >
> > hostnamectl(1), but that's assuming you are running a typical Debian
> > install. See
> > <https://www.freedesktop.org/software/systemd/man/latest/hostnamectl.html>
> > and <https://www.freedesktop.org/software/systemd/man/latest/hostname.html>.
> >
> > If you are not running a typical install, then you need to state what
> > you are using from Debian.
> >
> But hostnamectl doesn't set a domain does it? There's certainly nothing
> about setting domain name in the man page for hostnamectl.
hostnamectl has the ability to handle FQDNs in systemd v201 (or so),
though Systemd drops the trailing dot (".").
You can also set a domain in Systemd's domain search path in
systemd-resolved. Also see
<https://wiki.archlinux.org/title/Systemd-resolved>.
Jeff