The new hostnamectl command fails if given a fully qualified domain name. For example, the following sequence is incorrect: $ hostnamectl set-hostname host.example.com $ hostname hostexamplecom $ hostname -s hostexamplecom $ hostname -f hostname: No address associated with hostname $ The correct output should be: $ hostnamectl set-hostname host.example.com $ hostname host.example.com $ hostname -s host $ hostname -f host.example.com $
hello, # hostnamectl set-hostname example.com --static # hostname example.com hostname -f hostname: No address associated with hostname edit vi /etc/hosts 127.0.0.1 example.com example hostname -f example.com after I do not know if this is the expected behavior
I'm having the same problem as Andrew McNabb. I try to set; hostnamectl set-hostname an-c03n01.alteeve.ca and it records in /etc/hostname; # cat /etc/hostname an-c03n01alteeveca As Benoit said, if I add '--static', it records the hostname properly; # cat /etc/hostname an-c03n01.alteeve.ca The systemd version is 'systemd-197-1.fc18.1.x86_64.
Fixed in F19.
And the fix will be back ported right?
systemd-201-2.fc18.1 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/systemd-201-2.fc18.1
Package systemd-201-2.fc18.2: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing systemd-201-2.fc18.2' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-5452/systemd-201-2.fc18.2 then log in and leave karma (feedback).
Package systemd-201-2.fc18.4: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing systemd-201-2.fc18.4' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-5452/systemd-201-2.fc18.3 then log in and leave karma (feedback).
Package systemd-201-2.fc18.5: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing systemd-201-2.fc18.5' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-5452/systemd-201-2.fc18.5 then log in and leave karma (feedback).
systemd-201-2.fc18.6 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/FEDORA-2013-5452/systemd-201-2.fc18.6
Package systemd-201-2.fc18.6: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing systemd-201-2.fc18.6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-5452/systemd-201-2.fc18.6 then log in and leave karma (feedback).
systemd-201-2.fc18.6 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.