HOSTS file

C

Creative Door

I've created a Hosts file in the drivers, etc folder, and put in some
entries such as 127.0.0.1 localhost
127.0.0.1 www.website.com

if i try pinging localhost it goes through to 127.0.0.1
if i ping www.website.com it pings websites actual ip address, and opens the
page in IE
what am i doing wrong?
 
S

Simon Geary

Are you trying to redirect all connections to www.website.com to 127.0.0.1?
If so, you could try running ipconfig /flushdns to clear out the cache and
then stop and start the netlogon service to reload the new hosts file
entries.
 
C

Creative Door

will stopping the netlogon service cause everyone to get logged off the
server ( its a windows terminal server)
and yes i'm trying to redirect www.website.com to 127.0.0.1
 
C

Creative Door

Ok, I tried flush dns, and restarting net logon, its still by passing the
hosts file...
 
A

Ace Fekay [MVP]

In
Creative Door said:
Ok, I tried flush dns, and restarting net logon, its still by passing
the hosts file...

I didn't think you could do that with the loopback. Why not just use the
actual IP?

--
Regards,
Ace

Please direct all replies to the newsgroup so all can benefit.
This posting is provided "AS IS" with no warranties.

Ace Fekay, MCSE 2000, MCSE+I, MCSA, MCT, MVP
Microsoft Windows MVP - Active Directory
 
C

Creative Door

I'm trying to use a hosts file to block access well known ad/pop-up sites
"Ace Fekay [MVP]"
 
A

Ace Fekay [MVP]

In
Creative Door said:
I'm trying to use a hosts file to block access well known ad/pop-up
sites "Ace Fekay [MVP]"


There are so many sites out there it would tough to keep up with them. If
you have something like web activity monitor on the machines, you can stop
them that way, or even better a Proxy or ISA server. I know one other person
that did it this way and he wound up making the hosts file so large (because
of all the sites) that it took forever for the machine to boot since it
loads the hosts file into cache.

--
Regards,
Ace

Please direct all replies to the newsgroup so all can benefit.
This posting is provided "AS IS" with no warranties.

Ace Fekay, MCSE 2000, MCSE+I, MCSA, MCT, MVP
Microsoft Windows MVP - Active Directory
 
D

Dadd

The problem is in the search order used by W2K. It looks
to the DNS server before it goes to the hosts file. I am
not sure if you can change the order or not. It was
possible to do it in NT 4.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top