On 1/17/22 05:40, Tim via users wrote: > On Sun, 2022-01-16 at 15:53 -0600, Thomas Cameron wrote: >> All of a sudden with F35, no matter what the address of the VM is, >> its hostname is set to fedora. Just fedora. Not >> fedora.tc.camerontech.com. > I see your pain, that doesn't really work well when you have several > Fedora PCs, does it? (I'm Spartacus, and I'm Spartacus, too.) > > My quirky humour would have put into the install routine a "name your > computer" question. And if you didn't, it'd randomly pick a name from > a list to each computer (George, Fred, Jenny, etc) for you. > > >> I want F35 to have the same behavior as previous versions of Fedora >> and RHEL and Ubuntu and so on. I don't want to manually set >> /etc/hostname and monkey with hostnamectl because if the VM gets a >> new address, I don't want to have to go and change /etc/hostname or >> anything. >> >> I've been poking around with /etc/NetworkManager/NetworkManager.conf > > What about customising the dhcp client config? So it accepts the > hostname name supplied from your DHCP server, or derived from your > reverse DNS lookup, and passes it to whatever is setting the hostname > on Fedora these days. > > Like you, that's what I expect to happen, *unless* the user specifies > otherwise. dhcp server of libvirt is dnsmasq. It would provide hostnames when it has matching dhcp-record with IP and name (and hwaddr). With libvirt, that would be set by <ip><dhcp><host name='whatever'> in network configuration xml. I think it should use also /etc/hosts of the host. But dnsmasq can assign lease just by name if hwaddr is not present in static leases. But that requires static hostname on Fedora side to be sent to the server. How does virsh net-dumpxml <network> look like? -- Petr Menšík Software Engineer Red Hat, http://www.redhat.com/ email: pemensik@xxxxxxxxxx PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB _______________________________________________ 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