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
- Upsert huge amount of data by EFCore.BulkExtensions
- How can I resolve this error and work smoothly in deep learning?
- Efficiently processing many small elements of a collection concurrently in Java
- Theme Preloader for speed optimization in WordPress
- I need help to understand the time wich my simple ''hello world'' is taking to execute
- Non-blocking state update
- Do conditional checks cause bottlenecks in Javascript?
- Performance of sketch drastically decreases outside of the P5 Web Editor
- sample query for review for improvement on big query
- Is there an indexing strategy in Postgres which will operate effectively for JOINs with ORs
- Performance difference between two JavaScript code snippets for comparing arrays of strings
- C++ : Is there an objective universal way to compare the speed of iterative algorithms?
- How to configure api http request with load testing
- the difference in terms of performance two types of update in opensearch
- Sveltekit : really long to send the first page and intense CPU computation
Related Questions in DNS
- AWS Dns record A not navigate to elb
- I created a domain name from cloudflare, and Hoisted my static site hosted in google firebase, error in adding custom domain in firebase
- I am the domain admin, newbie, how do I connect youtube.com on my domain?
- The problem with raising the DNS server on Ubuntu 20.04 - bind9
- I registered a service in eureka which is resolving through java code. But it is not able to resolve its name when hitting through chrome or postman
- Assigned A record for Subdomain in Cloud DNS to Compute Engine VM instance but not propagated/resolved yet
- Why Bind9 responds with latency for RPZ rule?
- Create aws certification for domain
- Make Bind DNS server to request only root DNS servers of IANA website
- Domain Still Redirecting Despite Transferring Out of Godaddy
- Set up MX records in apache/Ubuntu to point to external mail server
- Changing AWS registred domain back to AWS name servers
- Docker networking forwarding failed
- Can access IP address of domain via mobile but not wifi
- CURL got Could not resolve host: my subdomain
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.