Page 1 of 1 1
Topic Options
#34179 - 2002-12-05 08:51 PM Hosts files
jhansenjr Offline
Fresh Scripter

Registered: 2002-08-31
Posts: 37
Loc: New Jersey
I need to update two entries in a hosts file because the server is moving to a new network.
Is there a way just to search the hosts file for a certain IP address and if it exists change it.
Ex. 10.0.0.1 server1
10.0.0.2 server2
Need to change to
10.0.0.3 server1
10.0.0.4 server2

Thanks

Top
#34180 - 2002-12-05 08:53 PM Re: Hosts files
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
It would be easier to just update the complete hosts file form a central server location. This has already been discussed numerous times and a KiXtart BBS Search for 'copy host' will retrieve the relevant threads.

[ 05. December 2002, 21:05: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#34181 - 2002-12-05 09:00 PM Re: Hosts files
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Howard Bullock has a CLI util on his site that would do a search and replace.

Seek and ye shall find.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.063 seconds in which 0.036 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org