Re: How to get Fedora 35 to use DNS name as hostname?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> Am 17.01.2022 um 16:22 schrieb Sam Varshavchik <mrsam@xxxxxxxxxxxxxxx>:
> 
> 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.

Yes, my wording was way too short. It uses the static hostname to enter the IP generated for the MAC address along with the hostname into the DNS part (in dnsmasq, which is used in Fedora KVM/libwirt) that is used to retrieve the hostname.

But Thomas uses a static host table, so the DNS delivered hostname is independent from any MAC address and any transient or static hostname of the client.   


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

At least dnsmasq does not, but relies on the MAC address alone.

Peter


_______________________________________________
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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux