tags:

views:

18

answers:

2

wouldn't using ip instead of host name on a dedicated server make page load faster since you avoid the dns lookup? why isn't this done?

like using <script src="xxx.xxx.xxx.xxx/javascript.js> <img src=same thing <link href=same thing? ??

A: 

It's not done because it's not practical and doesn't bring any sensible performance gain

Gregory Pakosz
It typically takes 120 milliseconds for DNS to lookup the IP address for a given hostname. multiply this by un-parallel files and you get a different conclusion. and wow you responded fast!
jsd911
as Darin said, the dns lookup is cached
Gregory Pakosz
i dont know the yahoo http://developer.yahoo.com/performance/rules.html page says reduce dns lookup. what are they talking about?
jsd911
they just say why which according to you guys is bs. and then don't say how!
jsd911
it says "My guideline is to split these components across at least two but no more than four hostnames" which is likely to be the case for a normal site
Gregory Pakosz
+1  A: 

No, because the DNS lookup is cached.

Darin Dimitrov