Use hostnamectl, assuming your systemd version is new enough: http://www.freedesktop.org/software/systemd/man/hostnamectl.html
On Sun, Feb 10, 2013 at 11:49 AM, Reindl Harald <h.rei...@thelounge.net> wrote: > > > Am 10.02.2013 20:41, schrieb Adam Nielsen: >> $ cat /etc/hostname >> korath >> >> $ hostname >> korath >> >> $ hostname -s >> localhost >> >> $ hostname -f >> localhost.localdomain >> >> Why is the short name being reported as localhost? How can I change the >> domain to my actual domain name instead of >> "localdomain"? According to all the documentation, the domain name should >> not be specified in /etc/hostname - so >> where should it go? > > besides that this is more a question for your distributions > list and not the DEVEL upstream-list: > > [root@srv-rhsoft:~]$ cat /etc/hostname > srv-rhsoft.rhsoft.net > > [root@srv-rhsoft:~]$ hostname > srv-rhsoft.rhsoft.net > [root@srv-rhsoft:~]$ hostname -s > srv-rhsoft > [root@srv-rhsoft:~]$ hostname -d > rhsoft.net > [root@srv-rhsoft:~]$ hostname -f > srv-rhsoft.rhsoft.net > > [root@srv-rhsoft:~]$ rpm -q systemd > systemd-197-1.fc18.2.x86_64 > > > _______________________________________________ > systemd-devel mailing list > systemd-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/systemd-devel > -- David Strauss | da...@davidstrauss.net | +1 512 577 5827 [mobile] _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel