I'm trying to improve the performance of my site. If I replace the domain names of static resources such as images, styles, etc. with corresponding IP address, would I gain performance improvement? If so, are there any down sides to this approach?
Minimize DNS Lookup?
1.9k Views Asked by StackOverflowNewbie At
2
There are 2 best solutions below
0
MarkR
On
If you find that DNS is causing real delays for actual users in the field, you should change your DNS provider.
Your authoritative DNS provider should at least be using anycast to serve the requests from the same contintent as the end-user.
Don't even think about running authoritative DNS in-house. Outsource it every time (NB: Run your own resolvers for your infrastructure, if that makes sense; users' browsers won't be using those).
Related Questions in PERFORMANCE
- Slow performance on ipad erasing image
- Can Apache Ant be told to cache its XML files?
- What are the pros and cons of the picture element?
- DB candidate as CouchDB/Schema replacement
- python member str performance too slow
- Split a large query (2 days) into pieces to increase the speed in Postgres
- Use GUI displayed results of SQL query vs new queries?
- fastest way to map a large number of longs
- Bash regular expression execution hangs on long expressions
- Why is calling a function so slow in Javascript?
- Performance of element-compare in java collections
- "Capture GPU Frame" in XCode -- iOS only?
- Efficiency penalty of initializing a struct/class within a loop
- Change the rotating speed of the circle when the mouse moves using javascript
- Replace foreach to make loop into queryable
Related Questions in DNS
- Configured TTL for A record(s) backing CNAME records
- Redirecting subdomain to directory on Azure
- SPF and DKIM records for Mandrill on DigitalOcean
- How to convert hostname to DNS name?
- Could someone bring Google OAuth2 for Cloud DNS via Rest to light?
- Spoof Captive Portal Screen on an iOS Device using DNS
- DNS_PROBE_FINISHED_NXDOMAIN on Google App Engine website
- How to check if a redirect leads to a different domain
- IP address to Domain Name? DNS?
- error CS1729: The type `ARSoft.Tools.Net.Dns.DnsServer' does not contain a constructor that takes `4' arguments
- Windows, Apache, Acrylic DNS, and wildcard subdomains
- How to configure DNS for microsoft odbc driver for oracle (in 64 bit arch.)
- How to use one time domain name in android?
- logstash dns filter miss
- Redirect website to another website if blocked in particular region
Related Questions in YSLOW
- Web Page Loading Time Long for Rails web page
- YSLOW ETag and Expired headers errors in ASP.NET MVC Website
- Parsing a URL from a list into a subprocess call
- .htaccess - How to set expires to date in past?
- YSlow rule 8 (Make JavaScript and CSS External) vs valid html5
- Subdomains, redirections and YSlow
- Minimize DNS Lookup?
- Best way to allow and control cache
- Are Expire Headers in .htaccess a form of a cookie?
- Yslow, Add Expires headers doesn't work
- Yslow: static components without a far future expiration date
- YSLOW Expiry Headers on MVC 5 Web Site
- Http Authentication using JavaScript for PhantomJS and YSlow Integration
- Using Request, HttpNtlmAuth to make a system call with authentication
- Does yslow have any remote api like pagespeed?
Related Questions in PAGESPEED
- Setting an expiry date or a maximum age in the HTTP headers (Zope infrastructure)
- google PageSpeed Insights inconsistent result
- W3 Total Cache Wordpress plugin disturbing my page layout
- Critical css, above the fold content and rendered views
- Why do Images take forever to load?
- Polymer website "breaks" Pagespeed Insights
- Optimize CSS file size too big
- How to avoid render-blocking css via scroll-down media query
- Avoid render-blocking CSS/JS outside direct control
- Does wordpress site need optimization
- Compression svg file for website optimization
- Google servers see website differently
- .htaccess automatically update to old htaccess after 20 seconds
- Error loading SVG - ERR_CONTENT_DECODING_FAILED
- Long wait time on page load
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You'd gain a small improvement in first time DNS lookup performance but you lose the flexibility that DNS provides: change a host IP without having to change all of the static references to the host, DNS based load balancing, etc. A well designed CDN strategy will serve you much better. Work on balancing concurrent request vs DNS lookups, depending on the number of static resources per page, that'll be between two and four DNS hostnames.