Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hosts file changes

Status
Not open for further replies.

180990

MIS
Jul 12, 2000
51
CA
I made some changes to hosts file in /etc/hosts.
My question is Do I need to reboot my SCO for those changes to take effect?
I tride to ping host on the network from sco with new address in hosts file but it still refers to the old settings. Is there another place that I need to make changes?
Or reboot is recomended.
Thanks for any help
Wesley
 
Did you update the interface file (if needed) and restart network services?

I guess it would depend on what you updated? If you updated the field for any network card, then yes, you would have to update the interface file and restart network services, otherwise you might need a route in the config file to reach that IP.
 
Does the ping work if you use the IP address not the name?
Normally any changes in the hosts file work straight away.
 
Let me tell you what I'm trying to do. In recent days we've changed our e-mail server ip address. Which is run on another platform. On SCO box I have a job that runs every night and it sends an e-mail once it is finished with log file attached to message. After we changed ip of an e-mail server we are not receiving any e-mail from SCO box.
So I went to hosts file and updated existing mail server addresses with new ip's.
When I ping the server usig new ip it finds it ok, but when I use name in ping line it shows old ip address of e-mail server.
I was wondering if there is any way that I can refresh or flush the dns cache or arp table using command line without restarting the server.

Thanks for any tips and have good day.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top