Peter Boy writes:
Usually you set the static hostname once using "hostnamectl set-hostname <FQDN>“. „fedora“ is the transient hostname. DHCP client uses the static hostname to request an IP.But maybe I didn't get what exactly you want to do.
dhcpd's configuration file uses MAC addresses to assign reserved IP addresses to specific DHCP clients. It doesn't matter what hostname the client sends.
I suppose that the DHCP server might keep track of hostnames and for MAC addresses that don't have fixed IP addresses it might use the client's hostname to keep leasing out the same IP address, if possible. But the same can be done with MAC address entirely, instead of hostnames, too.
Attachment:
pgpOx20MeaWeS.pgp
Description: PGP signature
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx 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/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure