Current time: 07-21-2018, 07:48 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Avoid DNS lookups by linking to IP address?
05-09-2011, 11:07 AM
Post: #1
Question Avoid DNS lookups by linking to IP address?
I set up a bunch of subdomains for serving static resources (e.g., img.domain.com, css.domain.com, js.domain.com), thinking that it would allow for more simultaneous connections--since older browsers default to a 2-connection limit per domain.

However, according to the waterfall view, each subdomain requires its own DNS lookup, which basically negates the benefits that the additional connections were supposed to provide.

This got me thinking... What if I linked directly to the IP addresses of my static resources? Would this remove the delays caused by DNS lookups?

Has anybody tried something like this...and if so, what was the result?
Find all posts by this user
Quote this message in a reply
05-09-2011, 11:34 PM
Post: #2
RE: Avoid DNS lookups by linking to IP address?
Yes, using the IPs will eliminate the DNS lookups but it also means you need unique IP's for each of the resource domains.

Not sure what your usage pattern looks like but at least according to StatsCounter, IE6 and 7 add up to only about 11% of the market now. I'm not sure domain sharding is really worth it at this point.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)