• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 382
  • Last Modified:

WIndows 7 Hostfile

what would cause windows 7 to ignore an entry in the hostfile
c:\windows\system32\drivers\etc\hosts
0
sctowne
Asked:
sctowne
1 Solution
 
Paul MacDonaldDirector, Information SystemsCommented:
If the hosts file entry is bad.
0
 
alpharomCommented:
may be if you are using a proxy server for browsing

http://serverfault.com/questions/50934/hosts-file-being-ignored
0
 
David BrennanSenior Integration EngineerCommented:
I presume it's formed the same as the example entries etc?

If it's a TCP/IP application like a web browser then it should use DNS and consult hosts file first. However if it's a NETBT / Netbios application as far as I know then WINS comes into play. is there anything in the lmhosts file?

Are you trying to redirect a connection for some specific reason or are you just adding a bad address to a blacklist - i.e. redirecting to 127.0.0.1 ?

If you give some more details I should be able to help further.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Paul MacDonaldDirector, Information SystemsCommented:
To riff off [alpharom], there could be firewall rules that reroute traffic as well.
0
 
sctowneAuthor Commented:
I have given up on the host file approach and am using a dns forwarder, but still have another problem.
 I can do a nslookup and the ip resolves correctly and I can also ping the ip address, but when I ping just the host name (as opposed to the ip address) it fail immediately.
Any thoughts....?
0
 
Paul MacDonaldDirector, Information SystemsCommented:
Make sure you have a valid DNS server specified and that the DNS server is configured to give you a response for host you're trying to contact.  It may be that the host is not in DNS or that the DNS server doesn't exist or that the DNS server isn't configured to forward resolution requests.
0
 
sctowneAuthor Commented:
Actually my problem is solved now, it turned out to be a firewall issue.

Thank you all who wrote comments
0
 
sctowneAuthor Commented:
Thanks for Everyones help
0
 
Paul MacDonaldDirector, Information SystemsCommented:
"To riff off [alpharom], there could be firewall rules that reroute traffic as well." - me

"Actually my problem is solved now, it turned out to be a firewall issue" - you
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now