[arch-general] Configure / Set a Hostname

Meyithi mail at meyithi.com
Tue Aug 24 15:02:50 EDT 2010


On 24 August 2010 19:52, Carlos Mennens <carloswill at gmail.com> wrote:

> I have read on Google searches and on all over so many different ways
> to properly set a FQDN on Arch Linux and am more confused than I was
> before I started looking this up. I don't ever get prompted during the
> Arch installer to enter a 'hostname' but rather do so in /etc/rc.conf
> which appears to make no difference because it's superseded by
> /etc/hosts. Can someone tell me if I want my Arch machine called
> "bishop.mydomain.tld", how does one properly and officially achieve
> this task in Arch?
>
> Thanks!
>

You'll get many different answers, but this is how I do it.  You'll get
different results for hostname and hostname -f this way.  Take into
consideration that on a machine that uses DHCP you'll not be able to do this
reliably due to the changing IP unless you can assign it on the
router/gateway.

127.0.0.1             localhost.localdomain           localhost
192.168.1.64        myname.mydomain.com      myname

-- 
Jason Steadman
http://www.meyithi.com/
http://twitter.com/meyithi


More information about the arch-general mailing list