A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Networking and the Internet with Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

hosts file locked or deleted from dns cache?



 
 
Thread Tools Display Modes
  #1  
Old February 20th 09, 02:45 PM posted to microsoft.public.windowsxp.network_web
Dole Bludger
external usenet poster
 
Posts: 2
Default hosts file locked or deleted from dns cache?

I have configured a server with the name and ip address in my hosts file on
my PC. I use windows explorer to put on my desktop icon "property" -
Target: the following command:

//myserver/start/mybat.bat


That works fine, but on some occassions it seems to me that my hosts file
contents simply disappears from my dns cache ( I could not find myserver in
output of ipconfig /displaydns). Of course, when it happens I could not ping
myserver, and I get message something like host unknown.

I do not know what and how something on my PC cause that host file on
c:\windows\system32\drivers\etc\hosts simply does not work as expected.


Can I somehow debug and see what the problems is? Whether some program
locks hosts file or its content is simply deleted?

When I do repair of my local area connection, everything seems to be OK.

The problems is that I have to have admin account to do that.

Ads
  #2  
Old February 20th 09, 05:09 PM posted to microsoft.public.windowsxp.network_web
Jack \(MVP-Networking\).
external usenet poster
 
Posts: 964
Default hosts file locked or deleted from dns cache?

Hi
Are you using static IPs (or IP reservation) to make sure that the computers
are always available at the same address?
Jack (MS, MVP-Networking)


"Dole Bludger" wrote in message
...
I have configured a server with the name and ip address in my hosts file on
my PC. I use windows explorer to put on my desktop icon "property" -
Target: the following command:

//myserver/start/mybat.bat


That works fine, but on some occassions it seems to me that my hosts file
contents simply disappears from my dns cache ( I could not find myserver
in
output of ipconfig /displaydns). Of course, when it happens I could not
ping
myserver, and I get message something like host unknown.

I do not know what and how something on my PC cause that host file on
c:\windows\system32\drivers\etc\hosts simply does not work as expected.


Can I somehow debug and see what the problems is? Whether some program
locks hosts file or its content is simply deleted?

When I do repair of my local area connection, everything seems to be OK.

The problems is that I have to have admin account to do that.


  #3  
Old February 20th 09, 05:09 PM posted to microsoft.public.windowsxp.network_web
Jack \(MVP-Networking\).
external usenet poster
 
Posts: 964
Default hosts file locked or deleted from dns cache?

Hi
Are you using static IPs (or IP reservation) to make sure that the computers
are always available at the same address?
Jack (MS, MVP-Networking)


"Dole Bludger" wrote in message
...
I have configured a server with the name and ip address in my hosts file on
my PC. I use windows explorer to put on my desktop icon "property" -
Target: the following command:

//myserver/start/mybat.bat


That works fine, but on some occassions it seems to me that my hosts file
contents simply disappears from my dns cache ( I could not find myserver
in
output of ipconfig /displaydns). Of course, when it happens I could not
ping
myserver, and I get message something like host unknown.

I do not know what and how something on my PC cause that host file on
c:\windows\system32\drivers\etc\hosts simply does not work as expected.


Can I somehow debug and see what the problems is? Whether some program
locks hosts file or its content is simply deleted?

When I do repair of my local area connection, everything seems to be OK.

The problems is that I have to have admin account to do that.


  #4  
Old February 20th 09, 10:01 PM posted to microsoft.public.windowsxp.network_web
John Wunderlich
external usenet poster
 
Posts: 1,466
Default hosts file locked or deleted from dns cache?

=?Utf-8?B?RG9sZSBCbHVkZ2Vy?=
wrote in :

I have configured a server with the name and ip address in my
hosts file on my PC. I use windows explorer to put on my desktop
icon "property" - Target: the following command:

//myserver/start/mybat.bat


That works fine, but on some occassions it seems to me that my
hosts file contents simply disappears from my dns cache ( I could
not find myserver in output of ipconfig /displaydns). Of course,
when it happens I could not ping myserver, and I get message
something like host unknown.

I do not know what and how something on my PC cause that host file
on c:\windows\system32\drivers\etc\hosts simply does not work as
expected.


The purpose for the entry that you put in the "Hosts" file was to
provide resolution for a UNC reference (i.e. \\myserver\...). The
"Hosts" file is not the place to put this. You should place this entry
in the "LMHosts" file in the same directory (Take the lmhosts.sam file,
modify it, and save it without the .sam extension).

For more information:
"How to Write an LMHOSTS File for Domain Validation and Other Name
Resolution Issues"
http://support.microsoft.com/kb/314108/EN-US/

"Differences Between the HOSTS and LMHOSTS Files in Windows NT"
(applies to XP as well)...
http://support.microsoft.com/kb/105997

HTH,
John
  #5  
Old February 20th 09, 10:01 PM posted to microsoft.public.windowsxp.network_web
John Wunderlich
external usenet poster
 
Posts: 1,466
Default hosts file locked or deleted from dns cache?

=?Utf-8?B?RG9sZSBCbHVkZ2Vy?=
wrote in :

I have configured a server with the name and ip address in my
hosts file on my PC. I use windows explorer to put on my desktop
icon "property" - Target: the following command:

//myserver/start/mybat.bat


That works fine, but on some occassions it seems to me that my
hosts file contents simply disappears from my dns cache ( I could
not find myserver in output of ipconfig /displaydns). Of course,
when it happens I could not ping myserver, and I get message
something like host unknown.

I do not know what and how something on my PC cause that host file
on c:\windows\system32\drivers\etc\hosts simply does not work as
expected.


The purpose for the entry that you put in the "Hosts" file was to
provide resolution for a UNC reference (i.e. \\myserver\...). The
"Hosts" file is not the place to put this. You should place this entry
in the "LMHosts" file in the same directory (Take the lmhosts.sam file,
modify it, and save it without the .sam extension).

For more information:
"How to Write an LMHOSTS File for Domain Validation and Other Name
Resolution Issues"
http://support.microsoft.com/kb/314108/EN-US/

"Differences Between the HOSTS and LMHOSTS Files in Windows NT"
(applies to XP as well)...
http://support.microsoft.com/kb/105997

HTH,
John
 




Thread Tools
Display Modes

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

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






All times are GMT +1. The time now is 10:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.