Mombu the Microsoft Forum

  Mombu the Microsoft Forum > Microsoft > Windows NT Server (TECHNET) > HOSTS file problem


User Name
Password
REGISTER NOW! Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread Display Modes
1 19th March 09:21
lev elbert
External User
 
Posts: 1
Default HOSTS file problem



Hi netters!

My program uses name resolution based on HOSTS file
(SYSTEM32\drivers\etc\hosts)

It looks like:

127.0.0.1 localhost
10.0.0.26 serviceapi

One can ping "serviceapi".

In the program gethostbyname("serviceapi") returns pointer to hostent
structure. All works fine for a couple of months (or more). Then with "no
declaration of war" the server on which program is running starts failing to
resolve the name. gethostbyname returns NULL ping utility prints "Unknown
host serviceapi". Only reboot helps.

I can't change the configuration method - do not have source code for this
program.

Does anybody know what really happens?
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes







Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
Also visit Ogoun the Usenet Archive
666