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 26.01.2022 um 23:48 schrieb Samuel Sieb <samuel@xxxxxxxx>:
> 
>  The DCHP server is the one that's supposed to be supplying the hostname.

Yes, indeed.  In my test setup here, I use dnsmasq (as libvirt plugin) and find in /var/lib/libvirt/dnsmasq/virbr0.macs entries like:
  {
    "domain": "vm1",
    "macs": [
      "52:54:00:37:f5:03"
    ]
  }

And optionally I can define vor each name an IP address  (either in virsh net-edit default or in default.addhost) that the DHCP picks up.

And in virbr0.status more detailed what is answered to the DHCP request:
  {
    "ip-address": "192.168.122.207",
    "mac-address": "52:54:00:e9:43:0c",
    "hostname": "vm2",
    "client-id": "01:52:54:00:e9:43:0c",
    "expiry-time": 1643242158
  }


But as soon as you make the hostname static on the client, you can configure in dnsmasq as hostname what you like, the client does not change the hostname.

So, Thomas should check with dhclient -v (out of my head, maybe some more parameters, there is also a dry-run, that doesn’t change configuration) what his DHCP delivers.


And in any case better keep away from messing around with /etc/hostname.



Best
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