> What's the equivalent to the hosts file for linux? If you're asking where the location of the hosts file on Linux is, it's /etc/hosts. If you're asking where the Windows equivalent of Linux's hosts file is at, it's C:\Windows\System32\drivers\etc\HOSTS The format in both cases is: 81.173.110.10 wiki.wxperl.info Hope this helps, w On Wed, Jan 2, 2013 at 1:27 PM, James Lynes <jmlynesjr@gmail.com> wrote: > What's the equivalent to the hosts file for linux? > > James > > > On Wed, Jan 2, 2013 at 3:20 PM, Michael Roberts <michael@vivtek.com> > wrote: > > > On 1/2/2013 9:16 PM, Steve Cookson wrote: > > > On Wed, Jan 2, 2013 at 4:00 PM, Wallace Winfrey <wwinfrey@gmail.com> > > wrote: > > >> I can still get to the site if I put 81.173.110.10 directly in my > > >> hosts file, but this obviously not a long-term solution, nor one that > > is of > > >> use to anybody not on this mailing list. > > > So if I type 81.173.110.10 into my browser I get: > > > > > > "This IP address is shared. For access to the web site which you look > > > for, enter its address instead of its IP. > > > For questions or problems please contact the server administrator." > > > > > > How do I get past that? > > > > > > Regards > > > > > > Steve > > > > > If you type it into the browser, your browser is asking the server for > > something from that naked IP address, and the server doesn't know what > > to give it, because several sites are served from that IP based on the > > server *name* in the browser. > > > > If you place the name into the hosts file, your browser will send that > > when requesting the URL from that IP, and the server knows which site to > > return. This is effectively what DNS is doing invisibly; you can just > > hardwire the process locally for your own machine. > > > > Michael > > > > >Thread Previous | Thread Next