Closed
Bug 532830
Opened 16 years ago
Closed 10 years ago
persistent dns cache
Categories
(Core :: Networking: DNS, enhancement)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: lnxrlz007, Assigned: siddu)
References
Details
(Whiteboard: [wontfix?][see related bug 481503])
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.15) Gecko/2009102815 Ubuntu/9.04 (jaunty) Firefox/3.0.15
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.15) Gecko/2009102815 Ubuntu/9.04 (jaunty) Firefox/3.0.15
Resolving a URL to an IP address takes time. Most (if not all) websites have static IP addresses, so why not store theses in the Bookmarks folder, and use them rather than round tripping to a DNS server every time?
Reproducible: Always
Steps to Reproduce:
1. Go to http://mozilla.com
2. Go to http://63.245.209.10
3. 2 is faster than 1
Actual Results:
Store IP address in Bookmarks, and try that FIRST.
Enhancement, not a bug.
Comment 2•16 years ago
|
||
(In reply to comment #0)
> Resolving a URL to an IP address takes time. Most (if not all) websites have
> static IP addresses, so why not store theses in the Bookmarks folder, and use
> them rather than round tripping to a DNS server every time?
But most dns servers are close to users (if you have a good ISP), and the operating system has a cache as well. I think necko (Firefox's networking layer) also has a cache.
Comment 3•16 years ago
|
||
You always need the name -> vhosts
The DNS query is usually fast and it's cached by the OS.
Windows caches a positive DNS answer for 1 day if the DNS TTL isn't lower and a negative DNS answer for 15min.
( http://support.microsoft.com/?scid=kb%3Ben-us%3B318803&x=10&y=9 )
The small performance advantage isn't it worth if you compare it with the problems that you get with changed server IPs
Comment 5•16 years ago
|
||
also most of the modern DSL routers have a dns cache, and necko should do dns prefetch iirc
Comment 6•16 years ago
|
||
i'm suggesting wontfix because there are many solutions (as reported in previous comments) and bookmarks don't like the natural container for this kind of network information, if anything should cache IPs should be at the network level.
Whiteboard: wontfix?
Comment 7•16 years ago
|
||
Also, many large volume websites are completely load balanced and servers are swapped out all of the time, so storing the ip would be inaccurate X% of the tme. WONTFIX sounds good to me too.
Comment 8•16 years ago
|
||
storing the dns entry along with its ttl (which might be uselessly small, or might be really really large) makes sense. Either with the bookmark or "pinned" directly into some kind of persistent dns cache.
but right now the dns layer doesn't even know what the real ttl is, so this is a big longer term change.
Updated•15 years ago
|
Whiteboard: wontfix? → [wontfix?][see related bug 481503]
Comment 9•15 years ago
|
||
The DNS RTT is a significant startup factor and it can be cached for really tiny amounts of state, so I do think this is worth doing. We probably don't want to do it directly in the bookmark code, but some kind of hinting down to the network layer that this is a popular or persistent host would be a big deal.
Over a longer period of time it isn't realistic to expect the os cache to have that name fresh in its LRU.
but as I said in comment 8, knowing the real ttl is a precursor - we shouldn't be making those up over such large time frames.
| Assignee | ||
Comment 10•12 years ago
|
||
As my first bug to start up with would u please assign me this bug.
Updated•12 years ago
|
Component: Bookmarks & History → Networking: DNS
Product: Firefox → Core
Updated•12 years ago
|
Summary: Store the IP address of web sites in the Bookmarks database → persistent dns cache
Comment 11•12 years ago
|
||
Thanks siddu. We'd have to take this as a persistent store of the dns cache complete with ttl - going right to the bookmark is going to make things inconsistent. The right approach is to probably use the http cache as the backing store - then you don't have to invent an I/O scheme.
if that's more than you were looking for just leave a comment.
Assignee: nobody → siddu244
Comment 12•10 years ago
|
||
timescales here make persistence more trouble than its worth.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•