[systemd-devel] How do you set the machine's domain name with systemd?

Reindl Harald h.reindl at thelounge.net
Sun Feb 10 11:49:34 PST 2013



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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130210/8e9562f5/attachment.pgp>


More information about the systemd-devel mailing list