I probably got the process mixed up a bit but the client still sends the name to the server using the send host-name directive.
If your using DHCP then check the dhclient running process i.e.on one of my CentOS boxes. -cf /var/run/nm-dhclient-eth1.conf which contains send host-name "hostname" How else does the server set the name if it does not get it from the client? |
I'm not using eth, just wlan
so i dont have /etc/sysconfig/network-scripts/ifcfg-eth0 or ifcfg-wlan0 My /etc/resolv.conf is Quote:
Quote:
I also want to tell that. Recently i installed KDE, and removed it. But after that, my hostname was changed to new-host. And the router see it also. How to change that ? Where was that change made ? |
you can look under the /etc/NetworkManager directory to find the config files for NetworkManager.
|
Networkmanager config shows
root@new-host:~# cat /etc/NetworkManager/NetworkManager.conf [main] plugins=ifcfg-rh and that's it. |
dont use both network manager and the ifcfg-eth0 file. they will conflict. remove the network manager.
|
Dear @lieb which both ?
I'm currently using only NM . I don't have ifcfg-eth0 I see: Code:
root@new-host:~# vim /etc/sysconfig/network-scripts/ |
bump. please help
|
There are several ways to do that but I am using the old way. VI is my friend and still working. I am using a remote SSH session to one of my virtual machines but you can perform same steps from the console.
Login with putty.exe Goto /etc/sysconfig/ Type vi network Press i on the keyboard and change the HOSTNAME to your preferred servername Press ESC on the keybord Save the configuration by :wq! Log off or reboot - See more at: http://www.networknet.nl/apps/wp/arc....DF2rDPMj.dpuf |
tairoylance112, i know this method.
But it's not working for me. When i changed hostname in /etc/sysconfig/network I see changes only on that machine. Router and another computers in network see old hostname (new-host etc.) |
I totally lost my post...
BR: We have helped you as much as we can, I'm afraid. Make the changes CONSISTENTLY in the places we've told you to make them: - bash prompt: hostname [hostname] - /etc/sysconfig/networking: HOSTNAME=[hostname] - /etc/hosts: put your hostname/FQDN in the FIRST position, not the last. Like so... # cat /etc/hosts 127.0.0.1 [hostname] [hostname.domain] localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 When monkeying around with DNS or hostnames-things that are affected by sessions and whatnot-reboot after the changes are made. |
I want to wait for solution coz my problem get more weirder.
I looked that, linux centos, after connecting to wifi using new adapter (alfa awus036nha) Inherit windows 7 hostname. Please look here; Quote:
|
All times are GMT -5. The time now is 04:07 AM. |