Re: How big can HOSTS be?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Ken, very informative post! I was wondering how to enter a URL to speed
access. In my current HOSTS the format to BLOCK is:

0 whateveraddress.com

I do not use the standard 0.0.0.0, found one zero works fine and helps
keeps file size down

What format is required to make access faster?

Thanks
Vic
___

"Ken Blake, MVP" <kblake@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:i3qit3ln148qmontfqpbkmc62phl8cop3f@xxxxxxxxxx
On Thu, 13 Mar 2008 08:02:30 -0500, "Vic" <nospam@xxxxxxxxxxxxxxxx>
wrote:

I didn't know the HOSTS file could be used to speed things up, I've
only
used it to block addresses. Could you please explain how an entry
can be
used to speed things up?




Although people think of the URL as the address of a web site, the
real address is an IP address, a number in the form 123.456.789.

The URL is just an easily-remembered shortcut to get you to the IP
address. To translate from the URL that you type in your browser to
the actual IP address, your browser goes out to a special web site
caused a DNS server. The URL is looked up there and the DNS server
returns the IP address that the browser then loads.

That's a two-step process that takes time. The primary purpose of the
Host file is not to block addresses, but to speed up that DNS lookup.
The Hosts file essentially asks like a local DNS server for web sites
you frequently visit. If the browser can find the IP address it needs
there, it's much faster than going to a DNS server to get it.

Secondarily, the Hosts file can be used to block addresses, but that's
not it's primary purpose.

--
Ken Blake, Microsoft MVP - Windows Desktop Experience
Please Reply to the Newsgroup


.



Relevant Pages

  • Re: Question on DNS setup change not working.
    ... The hosts file is used by anything which can use the hosts data to ... The BIND DNS server uses its own configuration files to give answers to ... the /etc/nsswitch.conf file lists how various ...
    (Fedora)
  • Re: How big can HOSTS be?
    ... Although people think of the URL as the address of a web site, ... To translate from the URL that you type in your browser to ... The URL is looked up there and the DNS server ... Secondarily, the Hosts file can be used to block addresses, but that's ...
    (microsoft.public.windowsxp.general)
  • Re: Renaming Hosts file doesnt change browser response
    ... I checked out the utilities mentioned in Mike Burgess, MVP hosts site at ... However, if I have a browser open when I rename the hosts file, the ... I thought that renaming the hosts file on the fly ...
    (microsoft.public.windowsxp.general)
  • Renaming Hosts file doesnt change browser response
    ... However, if I have a browser open when I rename the hosts file, the response ... I thought that renaming the hosts file on the fly would ...
    (microsoft.public.windowsxp.general)
  • Re: Hosts file effectiveness
    ... Wildcards don't work in hosts - experimented with that a long time ago, ... override the Domain Name Server's data for the IP address when ANY ... directing the browser to the local hard drive. ... Keep in mind that the Hosts file is strictly a one-to-one mapping and it ...
    (microsoft.public.windowsxp.general)