Re: setting computer name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Javier Gonzalez wrote:

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.

It changed the hostname

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:


The hostname command does not update the /etc/hosts file. That is an action for the SA as part of the network administration, and can be done from the redhat-config-network tool, or from the command line by manually editing the /etc/hosts file.

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






[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux