Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: how to set etc/hosts file in windows 7


28 Nov 2009   #1

windows7
 
 
how to set etc/hosts file in windows 7

I updated the Windows\System32\drivers\etc\hosts file to include static ip addresses of computers on my local network; just like I do it in Vista and XP. But now I tried to access the computers by name, it complains that host 'xyz' cannot be resolved. Why?

Simon

My System SpecsSystem Spec
.

28 Nov 2009   #2

7600.20510 x86
 
 

Maybe you have Bonjour service on your pc? Check for mdnsresponder.exe in task manager.

Are you able to access the remote pcs by ip address?

make sure that

127.0.0.1 localhost

it the first entry in the hosts file. Must be first.
My System SpecsSystem Spec
28 Nov 2009   #3

Windows 8.1 Pro (x64)
 
 

You should not need to do that unless the other computers are not Windows computers. Windows automatically resolves computer names to IPs for those that respond to NetBIOS. Are you positive the items added to the hosts file were in fact saved? Are they correct? The hosts file is no different in how it was in previous versions of Windows.
My System SpecsSystem Spec
.


28 Nov 2009   #4

7600.20510 x86
 
 

It's cool to do that like for instance if you just want to type

router

or

bedroompc

in the browser url box and hit enter, you're there. Necessity? No. Simplicty? Yes.
My System SpecsSystem Spec
28 Nov 2009   #5

windows7
 
 

127.0.0.1 localhost
::1 localhost
192.168.0.110 pmachine
Bonjour Service is running under the 'Services' tab, how do i disable it?
My System SpecsSystem Spec
28 Nov 2009   #6

windows7
 
 

The other machine is a linux server
My System SpecsSystem Spec
28 Nov 2009   #7

windows7
 
 

Access to remote address by ip works fine
My System SpecsSystem Spec
28 Nov 2009   #8

Win 8 Release candidate 8400
 
 

Quote   Quote: Originally Posted by simonc View Post
I updated the Windows\System32\drivers\etc\hosts file to include static ip addresses of computers on my local network; just like I do it in Vista and XP. But now I tried to access the computers by name, it complains that host 'xyz' cannot be resolved. Why?

Simon
Hi and welcome

how about a description or screenshot of the hosts file?

thanks

Kenn J++
My System SpecsSystem Spec
28 Nov 2009   #9

windows7
 
 

hi Kenn,

I posted earlier there are only 3 lines
127.0.0.1 localhost
::1 localhost
192.168.0.110 pmachine

file location is Windows\System32\drivers\etc\hosts
someone had mentioned that bonjour service messes up the hostname mapping, are you aware?
My System SpecsSystem Spec
28 Nov 2009   #10

windows7
 
 

http://pmachine/simon

Got a message DNS error - cannot find server from Google chrome
My System SpecsSystem Spec
Reply

 how to set etc/hosts file in windows 7




Thread Tools



Similar help and support threads for2: how to set etc/hosts file in windows 7
Thread Forum
Hosts File General Discussion
Solved Hosts file-S?? System Security
HOSTS File - Create a "Edit HOSTS file" Shortcut Tutorials
Hosts File : Use in Windows 7 / Vista Tutorials
HOSTS file Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:51 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33