Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-02-2004, 12:57 AM   #1
LQ Newbie
Registered: Jun 2004
Location: Shanghai,China
Distribution: RH9.0/uclinux
Posts: 6

Rep: Reputation: 0
Can't Use New Hostname Visit Last Pc!, in redhat 9.0,kernel 2.4.20-8

In PC 1,I write a program of CGI to change the hostname or IP address,when I change the IP address or hostname,the program modify the file /etc/sysconfig/network-scripts/ifcfg-eth0 to change IP address and modify /etc/sysconfig/network to change hostname,and I also modify the file /etc/hosts,then I use command: hostname <new_hostname> to make it realize,afte,I use service network restart to restart the services.
After these, I input the hostname in another PC's browser(such as IE,PC 2) to visit PC 1,it seems that the hostname can't be explained to actual IP address while I can visit PC 1 by inputing it's IP address,but after I reboot PC 1 everything is ok.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I get a nice hostname on Redhat 7.3? dariog Linux - Networking 2 12-11-2004 07:42 PM
hostname for Web server on RedHat 9 gschrade Linux - Newbie 9 12-02-2003 09:44 PM
editing hostname under redhat 9.0 poet225 Linux - Newbie 4 10-20-2003 04:41 PM
Automatic hostname in Redhat 9 twood Linux - Networking 3 06-05-2003 04:03 PM
Changing hostname on Redhat 8 bladewalker Linux - Newbie 6 05-21-2003 01:55 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration