# Can I back-up the IP addresses of my favourite links?

**URL:** <https://boards.straightdope.com/t/can-i-back-up-the-ip-addresses-of-my-favourite-links/53222>\
**Category:** Factual Questions\
**Created:** [February 5, 2001, 5:46pm UTC](https://boards.straightdope.com/t/can-i-back-up-the-ip-addresses-of-my-favourite-links/53222 "2001-02-05T17:46:31Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crusoe](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@Crusoe](https://boards.straightdope.com/u/Crusoe)\
**Post date:** [February 5, 2001, 5:46pm UTC](https://boards.straightdope.com/t/can-i-back-up-the-ip-addresses-of-my-favourite-links/53222/1 "2001-02-05T17:46:31Z")

</div>

I’ve been having a lot of problems with the DNS at my ISP. It regularly fails to resolve addresses, leaving me twiddling my thumbs. Is there any simple way of maintaining my own “mini DNS” of favourite websites and their IP addresses that I can get my browser to look up if the ISP’s DNS is down? (short of keeping a text file of IP addresses and manually entering them each time, that is)

---

<div class="post-metadata">

**Author:** ![RealityChuck](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/realitychuck/32/195_2.png) [@RealityChuck](https://boards.straightdope.com/u/RealityChuck)\
**Post date:** [February 5, 2001, 5:52pm UTC](https://boards.straightdope.com/t/can-i-back-up-the-ip-addresses-of-my-favourite-links/53222/2 "2001-02-05T17:52:01Z")

</div>

Some of the various free web accelerator programs do this for you.

---

<div class="post-metadata">

**Author:** ![MinkMan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/minkman/32/19170_2.png) [@MinkMan](https://boards.straightdope.com/u/MinkMan)\
**Post date:** [February 5, 2001, 6:01pm UTC](https://boards.straightdope.com/t/can-i-back-up-the-ip-addresses-of-my-favourite-links/53222/3 "2001-02-05T18:01:42Z")

</div>

There’s a file in your C:\Windows directory called HOSTS.SAM. Open the file in Notepad and edit it to add the IP addressses you want to cache locally. One IP address per line followed by the name you want to resolve. Save the file and rename it to HOSTS (without the extention, be sure that Notepad doesn’t tack on a .txt for you. You might have to rename it by hand in Explorer to get rid of the extenstion). Once you restart it should work.

Note, don’t go crazy with the hosts file. If it gets too big, it can slow things down, since every resolution has to be checked. Also, if a website that you have in your HOSTS changes it’s IP address, your computer will still look for it the old one, so keep that in mind when troubleshooting problems.

---

<div class="post-metadata">

**Author:** ![beagledave](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@beagledave](https://boards.straightdope.com/u/beagledave)\
**Post date:** [February 5, 2001, 6:10pm UTC](https://boards.straightdope.com/t/can-i-back-up-the-ip-addresses-of-my-favourite-links/53222/4 "2001-02-05T18:10:35Z")

</div>

yes…you want to create whats called a “host” file…HOW to make one depends on your OS…for Windoze, check [http://www.microsoft.com/windows2000/library/resources/reskit/samplechapters/cnbb/cnbb\_tcp\_kqig.asp](http://www.microsoft.com/windows2000/library/resources/reskit/samplechapters/cnbb/cnbb_tcp_kqig.asp)

"Host Name Resolution Using a Hosts File  
One common way to resolve a host name to an IP address is to use a locally stored database file that contains IP-address-to-host-name mappings. On most UNIX systems, this file is /etc/hosts. On Windows&nbsp;2000 systems, it is the Hosts file in the %SystemRoot%\system32\drivers\etc directory.  
Following is an example of the contents of the Hosts file:

# 

# Table of IP addresses and host names

# 

127.0.0.1 localhost  
139.41.34.1 router  
167.91.45.121 [server1.central.slate.com](http://server1.central.slate.com) s1  
"

* * *

This maps the IP address of a site with the english URL…sort of bypassing your DNS server

BTW, I also use this to block a lot of the common banner ads (thus shortening the time that bannered web sites take to load)

see [http://www.ecst.csuchico.edu/~atman/spam/adblock.shtml](http://www.ecst.csuchico.edu/~atman/spam/adblock.shtml) for how to do this

---

<div class="post-metadata">

**Author:** ![Crusoe](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@Crusoe](https://boards.straightdope.com/u/Crusoe)\
**Post date:** [February 5, 2001, 6:30pm UTC](https://boards.straightdope.com/t/can-i-back-up-the-ip-addresses-of-my-favourite-links/53222/5 "2001-02-05T18:30:41Z")

</div>

Thanks for the information on the files and utilities, everyone. I’ve started tinkering (carefully) with my hosts file, and I’ve also downloaded a web accelerator utility that scans my IE cache, looks up the DNS entries and makes a local copy.

---

<div class="post-metadata">

**Author:** ![ubermensch](https://avatars.discourse-cdn.com/v4/letter/u/bcef8e/32.png) [@ubermensch](https://boards.straightdope.com/u/ubermensch)\
**Post date:** [February 5, 2001, 6:50pm UTC](https://boards.straightdope.com/t/can-i-back-up-the-ip-addresses-of-my-favourite-links/53222/6 "2001-02-05T18:50:51Z")

</div>

another neat thing you can do with the hosts file is (almost) get rid of seeing ads.  
find out the adserver’s address (done easily enough by moving the cursor over the banner ad, or right clicking on it and properties), and edit the hosts file to route that to local host, i.e.:

[adbot.directhit.com](http://adbot.directhit.com) 127.0.0.1

etc. i’ve got probably 200 different adservers in my file. i do get a few ads, but it’s pretty rare. all you see is an error page from IE when it searches for the ad in the banner box.

i know this works for IE, dunno about nutscrape or any other browsers.

---

<div class="post-metadata">

**Author:** ![beagledave](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@beagledave](https://boards.straightdope.com/u/beagledave)\
**Post date:** [February 5, 2001, 7:17pm UTC](https://boards.straightdope.com/t/can-i-back-up-the-ip-addresses-of-my-favourite-links/53222/7 "2001-02-05T19:17:21Z")

</div>

> [@](#):
>
> \*Originally posted by ubermensch \*  
> \*\*another neat thing you can do with the hosts file is (almost) get rid of seeing ads. \*\*

ummm I think I mentioned that earlier in the thread 🙂

---

<div class="post-metadata">

**Author:** ![Sunspace](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/sunspace/32/1250_2.png) [@Sunspace](https://boards.straightdope.com/u/Sunspace)\
**Post date:** [February 5, 2001, 9:16pm UTC](https://boards.straightdope.com/t/can-i-back-up-the-ip-addresses-of-my-favourite-links/53222/8 "2001-02-05T21:16:15Z")

</div>

I’m going to have to try that adquery-redirect-to-localhost trick… so many times I’ve gone to a site, and it gets stuck on download, and I just know that it’s waiting for some bogged-down adserver…

It’s like the old story about the servants who were skimming from the master’s accounts. The master knew about the servants’ actions, but did not move to catch the servants, because he knew that he could then lean on them for the best service.

Likewise, if the ad companies are going to clog our pages with banners, they need for their own survival to be ultra-sensitive to ensuring that their servers can handle the loads requested of them. It won’t take much delay to start people finding ways to block or disable the adservers.

And that’s completely ignoring the privacy issues…

---

<div class="post-metadata">

**Author:** ![Sunspace](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/sunspace/32/1250_2.png) [@Sunspace](https://boards.straightdope.com/u/Sunspace)\
**Post date:** [February 5, 2001, 9:23pm UTC](https://boards.straightdope.com/t/can-i-back-up-the-ip-addresses-of-my-favourite-links/53222/9 "2001-02-05T21:23:46Z")

</div>

Some more thoughts. If you actually _have_ an HTTP server running on localhost, you’ll get its default page in each adbanner if you try this trick. That might be interesting.

In a local network, it might be possible to set up a kind of null host, which would just throw away requests. I’m going to have to think about this…

---

<div class="post-metadata">

**Author:** ![unwashed\_brain](https://avatars.discourse-cdn.com/v4/letter/u/a9adbd/32.png) [@unwashed\_brain](https://boards.straightdope.com/u/unwashed_brain)\
**Post date:** [February 5, 2001, 10:03pm UTC](https://boards.straightdope.com/t/can-i-back-up-the-ip-addresses-of-my-favourite-links/53222/10 "2001-02-05T22:03:35Z")

</div>

nt
