[systemd-devel] How do you set the machine's domain name with systemd?
David Strauss
david at davidstrauss.net
Sun Feb 10 16:58:31 PST 2013
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.reindl at 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 at srv-rhsoft:~]$ cat /etc/hostname
> srv-rhsoft.rhsoft.net
>
> [root at srv-rhsoft:~]$ hostname
> srv-rhsoft.rhsoft.net
> [root at srv-rhsoft:~]$ hostname -s
> srv-rhsoft
> [root at srv-rhsoft:~]$ hostname -d
> rhsoft.net
> [root at srv-rhsoft:~]$ hostname -f
> srv-rhsoft.rhsoft.net
>
> [root at srv-rhsoft:~]$ rpm -q systemd
> systemd-197-1.fc18.2.x86_64
>
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
--
David Strauss
| david at davidstrauss.net
| +1 512 577 5827 [mobile]
More information about the systemd-devel
mailing list