Tweak DNS Settings for Faster Internet Access
A handful of DNS hacks for speeding up access to web sites.
You use the Web by typing in hostnames such as http://www.oreilly.com, but web servers and Internet routers can’t understand plain English words, so they need those letters translated into numeric IP addresses. Whenever you type in a hostname, such as http://www.oreilly.com, it needs to be resolved to its IP address, such as 208.201.239.37. DNS servers provide that name resolution automatically and behind the scenes as you surf the Web.
There are several ways you can hack your DNS settings so that you can get faster web access.
Speed Up Web Access with a HOSTS File
It takes time to send your request to a
DNS server, have the server look up the proper IP address to resolve the name, and then
send the IP address back to your PC. You can eliminate that delay by
creating or editing a local
HOSTS
file on your own PC that contains
hostnames and their corresponding IP addresses. When you create one,
XP will first look into the HOSTS file to see if
there’s an entry for the hostname, and, if it finds
it, it will resolve the address itself. That way, you
won’t have to go out to a DNS server and wait for
the response before visiting a web site. The
HOSTS file is a plain text file you can create
or edit with a text editor like Notepad.
You’ll find an existing
HOSTS
file in
C:\System32\Drivers\Etc\HOSTS. The file has no
extension; it is named only HOSTS. Open it in Notepad and enter ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access