setting computer name

Javier Gonzalez gonzo at linuxmail.org
Tue Feb 24 23:23:23 UTC 2004


This is a bit trivial, but I figured somebody is bound to respond. I've been trying to set up a name for my laptop for the first time. So, I tried using hostname to change the name of my computer, and then I logged out to see if it would change the name in the graphical greeter. It actually did, but then it would tell me that it could not find the name I had given to my computer.
I went ahead and check /etc/hosts, and it has the following in it:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost

So it really did not change the name. I also checked out /etc/host.conf and found the following:

order hosts,bind

however it did not have 'multi on', which I saw as being needed according to the Linux how-to help guides.

The conflict that I see is that I am using DHCP, and I switch from servers in a daily basis. I checked /etc/resolv.conf and I had something like the following

; generated by /sbin/dhclient-script
search your.isp.domain.name
nameserver 10.25.0.1
nameserver 10.25.1.2

Is there anyway for me to name my computer without incurring in further problems.

Regards,

-G
-- 
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org 
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze





More information about the users mailing list