On 08/24/2010 03:02 PM, Meyithi wrote:
On 24 August 2010 19:52, Carlos Mennens<carloswill@xxxxxxxxx> 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
127.0.0.1 localhost.localdomain localhost
127.0.0.2 myname.mydomain.com myname
Is what I do