On Thu, Oct 1, 2026 at 8:27 AM Jeffrey Walton <[email protected]> wrote:

> 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 (".").
>

I was able to set the domain name with: hostnamectl hostname
hp-pavilion.home.arpa

If I ping hp-pavilion it resolves as 127.0.1.1. If I ping hp-pavilion.home.arpa
it resolves the IPv6 address of my WLAN NIC. If I ping hp-pavilion.home.arpa
using the -4 switch it resolves the IPv4 address of my WLAN NIC.


>
> 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
>
>

-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀

Reply via email to