On Sun, 20 Apr 2025 08:40:11 +0200, <[email protected]> wrote:
> On Sun, Apr 20, 2025, at 2:38 AM, Gabriel Somlo wrote:
> > Trying to figure out what component to file this under, or whether I'm
> > "in luck" and this is already a known problem and I can just add
> > myself to the cc list... :)
> >
> > I have a f42 machine with a static DHCP lease and a DNS A record
> > associated with its statically-leased IP address.
> >
> > When I boot the machine and immediately log into it via ssh, running
> > `hostname` will keep returning "fedora" for 5-10 seconds, before
> > starting to return the FQDN (e.g. "FOO.EXAMPLE.COM") if I keep
> > retrying the `hostname` command.
>
> this sounds like you're getting a transient hostname from somewhere and
> don't have a static hostname or such? What is the output you get from
> `hostnamectl`?
immediately after reboot and root login via ssh:
root@fedora:~# hostnamectl
Static hostname: (unset)
Transient hostname: fedora
Icon name: computer-desktop
...
... and after retrying a few minutes later:
root@fedora:~# hostnamectl
Static hostname: (unset)
Transient hostname: FOO42.EXAMPLE.COM
Icon name: computer-desktop
...
IOW, same as plain `hostname`. After 30-ish seconds from boot and root
login, the transient hostname is set to something useful, after which
sendmail can be properly (re)started.
On Sun, 20 Apr 2025 07:01:43 +0100, <[email protected]> wrote:
> I wonder if this is user error?
> On all my servers I set the FQDN using hostnamctl.
> hostnamctl hostname foo.example.com --static
> I always see the correct FQDN, and dhcp will allocate the ip address.
Please keep in mind that this is a "cattle" machine started from an
image shared with a bunch of other machines. The only thing
distinguishing between them is the static dhcp lease and associated dns
name that are stored *externally* to the machine(s).
I need sendmail for things like logwatch to percolate into my inbox, via
a .forward file added to /root during kickstart.
This used to work great for *years*, across many versions of Fedora,
until it regressed recently due to what I believe is some sort of race
condition between systemd and sendmail...
Thanks,
--Gabriel
--
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue