# Use of numerical URL's - are they faster than using site names?

**URL:** <https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422>\
**Category:** Factual Questions\
**Created:** [February 8, 2007, 10:44pm UTC](https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422 "2007-02-08T22:44:34Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![According\_to\_Pliny](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@According\_to\_Pliny](https://boards.straightdope.com/u/According_to_Pliny)\
**Post date:** [February 8, 2007, 10:44pm UTC](https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422/1 "2007-02-08T22:44:34Z")

</div>

If I type 208.100.26.199 instead of [boards.straightdope.com](http://boards.straightdope.com), then there is a little less wait, right?  
Nobody has to look up the number, because I supplied it.  
I’m not saying it’s much, but doesn’t it apply to each and every item on the page? Every header image and button image and post file url and sig file url, and even smilies?  
So if I created a Host file and put the number there, would it speed up my viewing?

---

<div class="post-metadata">

**Author:** ![Jayrot](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@Jayrot](https://boards.straightdope.com/u/Jayrot)\
**Post date:** [February 8, 2007, 10:51pm UTC](https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422/2 "2007-02-08T22:51:03Z")

</div>

[QUOTE=According to Pliny]  
If I type 208.100.26.199 instead of [boards.straightdope.com](http://boards.straightdope.com), then there is a little less wait, right?  
Nobody has to look up the number, because I supplied it.  
I’m not saying it’s much, but doesn’t it apply to each and every item on the page? Every header image and button image and post file url and sig file url, and even smilies?  
So if I created a Host file and put the number there, would it speed up my viewing?  
[/QUOTE]

Not appreciably. It’s a good idea, but in practice the difference is so negligible.

---

<div class="post-metadata">

**Author:** ![friedo](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@friedo](https://boards.straightdope.com/u/friedo)\
**Post date:** [February 8, 2007, 10:52pm UTC](https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422/3 "2007-02-08T22:52:50Z")

</div>

[QUOTE=According to Pliny]  
If I type 208.100.26.199 instead of [boards.straightdope.com](http://boards.straightdope.com), then there is a little less wait, right?  
Nobody has to look up the number, because I supplied it.  
I’m not saying it’s much, but doesn’t it apply to each and every item on the page? Every header image and button image and post file url and sig file url, and even smilies?  
So if I created a Host file and put the number there, would it speed up my viewing?  
[/QUOTE]

The DNS request to lookup the IP address only goes out on the network once, and is thereafter cached by your operating system (for a little while.) This cache lookup will not be appreciably faster or slower than a hosts file lookup.

---

<div class="post-metadata">

**Author:** ![Kevbo](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@Kevbo](https://boards.straightdope.com/u/Kevbo)\
**Post date:** [February 8, 2007, 11:30pm UTC](https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422/4 "2007-02-08T23:30:32Z")

</div>

At least one ISP (Comcast) has had some pretty serious issues with their DNS at times. So if the DNS you normally use is having a slow response day, the time saving could be appreciable.

---

<div class="post-metadata">

**Author:** ![Mr.Slant](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@Mr.Slant](https://boards.straightdope.com/u/Mr.Slant)\
**Post date:** [February 9, 2007, 4:09am UTC](https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422/5 "2007-02-09T04:09:44Z")

</div>

Remember, this practice will only lead to tears and seat-wetting if the 'Dope changes IPs.

---

<div class="post-metadata">

**Author:** ![friedo](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@friedo](https://boards.straightdope.com/u/friedo)\
**Post date:** [February 9, 2007, 4:25am UTC](https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422/6 "2007-02-09T04:25:29Z")

</div>

[QUOTE=Mr. Slant]  
Remember, this practice will only lead to tears and seat-wetting if the 'Dope changes IPs.  
[/QUOTE]

You mean like it did a couple weeks ago? 🙂

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [February 9, 2007, 5:14am UTC](https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422/7 "2007-02-09T05:14:48Z")

</div>

> [@](#):
>
> Remember, this practice will only lead to tears and seat-wetting if the 'Dope changes IPs.

On the other hand, provided that **Pliny** remembers what he did, he can change that entry as quickly as he wants, without having to wait (potentially) days for the DNS servers to be updated.

---

<div class="post-metadata">

**Author:** ![chrisk](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@chrisk](https://boards.straightdope.com/u/chrisk)\
**Post date:** [February 9, 2007, 10:47am UTC](https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422/8 "2007-02-09T10:47:49Z")

</div>

[QUOTE=Chronos]  
On the other hand, provided that **Pliny** remembers what he did, he can change that entry as quickly as he wants, without having to wait (potentially) days for the DNS servers to be updated.  
[/QUOTE]

Assuming that he can find out the new number by other means before DNS servers are updated. (Since, in a way, disseminating info about IP address changes is one of the functions of DNS.)

---

<div class="post-metadata">

**Author:** ![si\_blakely](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@si\_blakely](https://boards.straightdope.com/u/si_blakely)\
**Post date:** [February 9, 2007, 11:10am UTC](https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422/9 "2007-02-09T11:10:24Z")

</div>

After you have made an initial DNS lookup, your PC caches the result, so there is no advantage after that first lookup.

And your ISP will cache lookups, too.

In the end, DNS replaced _hosts_ files because of ease-of-use, scalability, reliability and management issues. Trading that for a shortterm perceived gain is a backwards step, IMHO.

If your ISP has a slow DNS infrastructure, you could try [opendns.org](http://opendns.org). However, you may have issues with dynamically configured devices trying to set this up.

Si

---

<div class="post-metadata">

**Author:** ![chrisk](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@chrisk](https://boards.straightdope.com/u/chrisk)\
**Post date:** [February 9, 2007, 12:40pm UTC](https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422/10 "2007-02-09T12:40:40Z")

</div>

[QUOTE=si\_blakely]  
After you have made an initial DNS lookup, your PC caches the result, so there is no advantage after that first lookup.

And your ISP will cache lookups, too.

[/QUOTE]

There has to be a limit on the amount of time the cache entry will last without a recheck, though, or you’d never get notified of a DNS change.

---

<div class="post-metadata">

**Author:** ![si\_blakely](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@si\_blakely](https://boards.straightdope.com/u/si_blakely)\
**Post date:** [February 9, 2007, 2:14pm UTC](https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422/11 "2007-02-09T14:14:02Z")

</div>

[QUOTE=chrisk]  
There has to be a limit on the amount of time the cache entry will last without a recheck, though, or you’d never get notified of a DNS change.  
[/QUOTE]  
The TTL (Time To Live) controls this - at least for Backbone DNS. This defines how long it takes for a DNS update to propagate - generally 2xTTL.

Client side caching is shorter though (on the order of minutes, as I recall), but there will not be a DNS lookup for the same address for each reference on a web page, for example. Plus much material will be dragged out of the local browser cache.

My point is that there is almost no advantage to be gained by hostfiling a server after the initial lookup, and the disadvantages outweigh the gain.

Si

---

<div class="post-metadata">

**Author:** ![Absolute](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@Absolute](https://boards.straightdope.com/u/Absolute)\
**Post date:** [February 9, 2007, 2:59pm UTC](https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422/12 "2007-02-09T14:59:15Z")

</div>

Another thing to consider is that many websites (usually those hosted with cheap hosting plans) may share the same IP - the server software looks at the hostname embedded in the incoming request to determine which site to send you.

If you try to visit a site like this with the IP alone, it won’t work.

---

<div class="post-metadata">

**Author:** ![According\_to\_Pliny](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@According\_to\_Pliny](https://boards.straightdope.com/u/According_to_Pliny)\
**Post date:** [February 9, 2007, 9:35pm UTC](https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422/13 "2007-02-09T21:35:23Z")

</div>

I’m not all that confident of the browser caching anything.  
Well, I know it wastes a lot of disk space cachiing Temporary files, but they never seem to be reused.  
On every single thread I look at, I watch it going out to find and reload all the headers and buttons for the hundreth time in an hour.

---

<div class="post-metadata">

**Author:** ![Rysto](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@Rysto](https://boards.straightdope.com/u/Rysto)\
**Post date:** [February 9, 2007, 11:03pm UTC](https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422/14 "2007-02-09T23:03:46Z")

</div>

[QUOTE=According to Pliny]  
I’m not all that confident of the browser caching anything.  
Well, I know it wastes a lot of disk space cachiing Temporary files, but they never seem to be reused.  
On every single thread I look at, I watch it going out to find and reload all the headers and buttons for the hundreth time in an hour.  
[/QUOTE]

I’m 99% certain that it’s the OS that does the caching, not the browser.

---

<div class="post-metadata">

**Author:** ![friedo](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@friedo](https://boards.straightdope.com/u/friedo)\
**Post date:** [February 10, 2007, 12:49am UTC](https://boards.straightdope.com/t/use-of-numerical-urls-are-they-faster-than-using-site-names/391422/15 "2007-02-10T00:49:05Z")

</div>

[QUOTE=Rysto]  
I’m 99% certain that it’s the OS that does the caching, not the browser.  
[/QUOTE]

There’s a few different things going on here.

1. Your OS is responsible for making the network work and that includes looking up DNS names. It is the OS that caches the results of DNS lookups.

2. Your web browser is responsible for the high-level communication between itself and a web server, and it caches images, CSS files, and so on. It’s _extremely_ unlikely that **Pliny** ’s browser is fetching these items over the network on every page request, unless he has deliberately turned all caching off. (I’m not even sure if that’s an option for most browsers.)
