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.
@ghen, you are right about this. But when I have seen this fudging things up, it usually ends up the hostname being the comment (in this case #hostname). Do you think that it is actually setting it as a blank line?
WonderWoofy
https://bbs.archlinux.org/profile.php?id=60312
2012-10-20T07:37:51Z
karol wrote:The important thing is you're running it in VirtualBox, right? https://wiki.archlinux.org/index.php/Ar … lBox_GuestIIRC the hostname error is harmless.Woohoo! Works now. And thanks for mentioning the hostname error. It still happens but at least I can forget about it now.
carebearboy
https://bbs.archlinux.org/profile.php?id=50226
2011-07-24T18:03:39Z
Thank you very much, that was it!I tried removing /etc/hostname and it just went fine. However $HOSTNAME was not defined anymore after that so I tried to define it in /etc/rc.conf and that worked properly.
tuvistavie
https://bbs.archlinux.org/profile.php?id=57105
2012-09-30T17:50:07Z
/etc/hostname (or old style, HOSTNAME in rc.conf)
Allan
https://bbs.archlinux.org/profile.php?id=11253
2012-08-13T22:57:28Z
Thanks, moetunes! My /etc/hostname has already been set to mybox .## /etc/hosts: static lookup table for host names##<ip-address> <hostname.domain.org> <hostname>127.0.0.1 localhost.localdomain localhost# End of fileThis should be correct. Unfortunately, the problem is still there. Could /etc/hosts be innocent, after all?
Forwarding to a dynamic ip isn't possible, it must be fixed, and providing a static lease to the machine also "deletes" the hostname.
niccoboss
https://bbs.archlinux.org/profile.php?id=63233
2012-08-27T16:58:35Z
How do you propagate changes to your hostname from your Linux machine (I am using Linux Mint 13) to your router (I am using DG834Gv2)?
I changed the hostname in /etc/hostname and restarted. The router still resolves the old hostname to my IP address.
Thanks.
Just a short Tutorial today. It’s surprising how many people do not know this. To change the hostname under Linux, open a terminal window. Type the following code.
sudo nano /etc/hosts
and change the text to your new hostname. Changes will take effect on Restart.