"My Hostname is changed after the boot.....(FC6)"
Hi all
My name is Sergio, and recently I installed FC6 with a partial success. My PC is connected to internet through a router and I think this could be the problem. I read almost everything posted about this topic in this forum, but anyone give a solution. Below, there are some of the command I've used to check the hostname of my PC When I use the command: uname -a, the answer is: Linux localhost.locald\300\250>2\377\377\377 2.6.22.7-57.fc6 #1 SMP Fri Sep 21 19:45:12 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux when I use the command: hostname, the answer is: localhost.locald\300\250>2\377\377\377 I am going to describe some of my config files in order someone can help me to fix it. /etc/host ::1 localhost.localdomain localhost /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=yes HOSTNAME=localhost.localdomain /etc/sysconfig/network-scripts/ifcfg-eth0 # Intel Corporation 82566DC Gigabit Network Connection DEVICE=eth0 BOOTPROTO=dhcp HWADDR=00:19:D1:7C:0E:65 ONBOOT=yes DHCP_HOSTNAME=localhost.localdomain TYPE=Ethernet /etc/sysconfig/networking/devices/ifcfg-eth0 # Intel Corporation 82566DC Gigabit Network Connection DEVICE=eth0 BOOTPROTO=dhcp HWADDR=00:19:D1:7C:0E:65 ONBOOT=yes DHCP_HOSTNAME=localhost.localdomain TYPE=Ethernet /etc/sysconfig/networking/profiles/default/host # Do not remove the following line, or various programs # that require network functionality will fail. ::1 localhost.localdomain localhost /etc/sysconfig/networking/profiles/default/ifcfg-eth0 # Intel Corporation 82566DC Gigabit Network Connection DEVICE=eth0 BOOTPROTO=dhcp HWADDR=00:19:D1:7C:0E:65 ONBOOT=yes DHCP_HOSTNAME=localhost.localdomain TYPE=Ethernet /etc/sysconfig/networking/profiles/default/resolv.conf ; generated by /sbin/dhclient-script nameserver 192.168.62.1 nameserver 0.0.0.0 /etc/sysconfig/networking/profiles/default/network empty.. I've tried to change: /etc/host to: 1:: localhost.localdomain localhost.localdomain But when a I boot it is replaced by the first describe above. Can someone give me any clue of how to solve this problem? Thank you in advance |
clearly not an intro but a problem. moved to Linux - Newbie.
|
You have a nasty looking hostname!
Try editing the file /etc/hostname to change your hostname to something without all those extra \'s and numbers, like linuxpc Then reboot for the change to take effect. Why are you using IPV6? Most of us have stuck with IPV4 until the rest of the net and routers catch up. Using IPV4 /etc/hosts needs to look something like this: Code:
tg@vaio:~$ cat /etc/hosts Hope this helps |
I have no /etc/hostname file.....
I have no /etc/hostname file to edit. I'm working in FC6, and I think this file belong to other distro. All that ugly symbols ( / \ and number ) were put automatically. I think it was taken as a hostname from the server name of my internet provider, or maybe from my router.
I'm using IPV6, basically, because it was set up during the installation, but I do not understand to much about network connections. Thank you for your help! Quote:
|
Well if your distro doesn't use the /etc/hostname file, it certainly wouldn't hurt anything to create the file..
How-To Change the hostname on a Linux system This link will walk you through all the sections necessary to change a hostname on Linux to ensure you don't miss anything.. |
All times are GMT -5. The time now is 01:24 AM. |