Re: W2K doesn't do lookup in hosts

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Puzzled wrote:
On Sun, 23 Dec 2007 11:38:41 -0800,
Kurt <kurtl@xxxxxxxxxxxxxxxxx> wrote:

Puzzled wrote:
I'm trying to get my w2k box to do name lookups in hosts so that
i can call ping without supplying an ip address. Right now i can
'ping 192.168.0.10' and it works, but with 'ping server', it only
shrugs and complains. (Eventually i'll install a central dns
service, but i'd like to get the local-hosts-file method working
first)

TIA for any insights.
There are two copies of the HOSTS file and I can never remember which one it the actual one being used. Do a search for hosts and make sure both files have the same records, then try again.

A search fails to turn up another one. There's an LMHOSTS file,
which has the same records, but not another HOSTS file - only the
one in winnt/system32/drivers/etc. That's true of both my w2k
boxes.
Huh, how 'bout that. I did the same and you're right. I'm sure I remember there being a second copy, maybe from the W2K days, but I don't have a system around to check. I suspect that's the one then. It should work. I've used that trick to resolve names on routed private networks where the local DNS server doesn't have records for hosts on the other.

Kurt
.



Relevant Pages

  • Re: Problem with local network
    ... reason try and apply a local machine address to the loopback. ... > When I ping to any of the PC's I get the following:- ... Your /etc/nsswitch.conf looks like it's set up to query your hosts file ... your /etc/resolv.conf file starts off with your local DNS server ...
    (Fedora)
  • Re: W2K doesnt do lookup in hosts
    ... i can call ping without supplying an ip address. ... 'ping 192.168.0.10' and it works, but with 'ping server', it only ... shrugs and complains. ... There are two copies of the HOSTS file and I can never remember which one it the actual one being used. ...
    (microsoft.public.win2000.networking)
  • Re: Cant see out to .co.uk from inside my .local domain (forward l
    ... Well I removed the entry from my hosts file and issued a ping command to both ... network only from the server which I changed the hosts file for. ... Indeed is it even a DNS issue. ...
    (microsoft.public.windows.server.sbs)
  • Re: Hosts file ignored
    ... >> any of the entries I have made to the server's hosts file. ... >> I have verified that the DataBasePath registry key at ... >> I am not running a DNS server on my system. ... >> I can ping IP addresses without any problem, both on the LAN and on ...
    (microsoft.public.windows.server.general)
  • Hosts file ignored
    ... I have a really interesting problem with my hosts file. ... Successfully flushed the DNS Resolver Cache. ... I am not running a DNS server on my system. ... I can ping IP addresses without any problem, both on the LAN and on ...
    (microsoft.public.windows.server.general)