in reply to Strawberry Perl: Windows hosts file not working?

If I put an entry in windows hosts file (127.0.0.1 foo.example.com) then I can ping foo.example.com at command line, but nslookup foo.example.com fails.

nslookup explicitly does NOT use the hosts file, because it is designed to do Name Server LOOKUPs. Almost all other software relies on the name resolution functions that DO use the hosts file.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
  • Comment on Re: Strawberry Perl: Windows hosts file not working?