Since the demise of rc.conf I have been unable to find out how to set the system's domain name. I tried "hostnamectl set-hostname hostname.domain" but it just set the hostname to "hostnamedomain". I also tried setting it manually through the hostname utility but it broke GUI applications (could not connect to display error). No luck with google or tge wiki either. Any ideas?
Last edited by jiggpig (2013-02-04 16:16:55)
alcoves wonder creates the wonder unto the ages; never lose that.
First of all, see "man archlinux" for how to set the hostname.
Second, is Bash treating the period as a special character? Try "hostnamectl set-hostname hostname\.domain".
Thirdly, my hostname is just set to "archsystem". Are you thinking of what goes in "/etc/hosts"?
# # /etc/hosts: static lookup table for host names # #<ip-address> <hostname.domain.org> <hostname> 127.0.0.1 localhost.localdomain localhost archsystem ::1 localhost.localdomain localhost # End of file
Last edited by drcouzelis (2013-02-04 04:18:47)
@drcouzelis, I thought that nss-hostname(or whatever it is called) rendered the editing of the hosts file obsolete...
It looks like that works. I didn't try that since the systemd documentation says that /etc/hostname should not have dots in it. Thank you!
No, escaping the dot did not fix it.