You are not logged in.
Pages: 1
I see that HOSTNAME="myhost" is in my /etc/rc.conf file.
If I want to change it, do I simply edit the /etc/rc.conf file or do I need to edit other files as well? Or can I just run the hostname command?
Offline
Yes, just edit rc.conf and add your new hostname to /etc/hosts on the same line as localhost.
Offline
If you also want to change the "name" of what gets resoluted to "127.0.0.1", change
127.0.0.1 localhost.localdomain localhost
to something like
127.0.0.1 r0flcopter.localdomain r0flcopter
in /etc/hosts too.
some daemons might listen explicitly on localhost:portxy though, so you have to make yout changes there too (r0flcopter:portxy).. was like that for cups once at least.
Offline
You can just add two lines though:
/etc/hosts
127.0.0.1 localhost.localdomain localhost
127.0.0.1 r0flcopter.localdomain r0flcopter
(cf blocking ads using your /etc/hosts file)
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
you can string them alltogether on one line. I would make sure 'localhost' is included whatever you do -many program look for that.
Offline
Thanks everyone. I've changed it.
Offline
Pages: 1