{"id":1067243,"date":"2022-04-26T01:00:00","date_gmt":"2022-04-25T23:00:00","guid":{"rendered":"https:\/\/wp-rocket.me\/?p=1067243"},"modified":"2022-09-20T12:12:00","modified_gmt":"2022-09-20T10:12:00","slug":"how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site","status":"publish","type":"post","link":"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/","title":{"rendered":"How to Reduce DNS Lookups to Speed Up Your WordPress Site"},"content":{"rendered":"<p>You\u2019ll most likely hit the back button faster than it takes for a website to load, wouldn\u2019t you agree? Waiting for a site to finish loading is not something we do today. I myself don\u2019t.&nbsp;<\/p><p>As a consumer myself, I don\u2019t enjoy waiting. And as a site owner, I know the pains of high bounce rate and my traffic diminishing as my site takes longer to load. I spent a great deal trying to perfect my site performance so that people would stay on my site and read my content.<\/p><p>So let\u2019s tackle a specific problem regarding web performance.<\/p><p>The problem is how too many DNS lookups can slow down the loading of your pages.<\/p><p>DNS lookup load times are an issue on websites of all sizes. So this concerns everyone who owns a site!&nbsp;<\/p><p>I own several sites of my own and today, I want to share my process for optimizing my site, specifically for DNS lookup. Without being too technical.<\/p><p>This article explains the problem, how to reduce DNS lookups for a WordPress site, and some practical tips to optimize your site\u2019s DNS.<\/p><p>You can follow our guide to getting your WordPress site optimized.&nbsp;<\/p><p><strong>Hint:<\/strong> We used our WP Rocket plugin! And a few bonus tips and tricks at the end.<\/p><p>But first\u2026<\/p><h2 class=\"wp-block-heading\">What Is a DNS Lookup?<\/h2><p>Domain Name Servers (DNSs) are the foundation of the world wide web. They work like phone books for websites, linking them to their IP addresses. In turn, a DNS lookup is the process of finding the correct IP address for a given website URL.&nbsp;<\/p><p>If you are using PageSpeed Insight, DNS lookup is associated with \u201cReduce initial server response time\u201d:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1967\" height=\"476\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Reduce-initial-server-response-time.png\" alt=\"Reduce initial server response time\" class=\"wp-image-4313140\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Reduce-initial-server-response-time.png 1967w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Reduce-initial-server-response-time-310x75.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Reduce-initial-server-response-time-768x186.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Reduce-initial-server-response-time-190x46.png 190w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Reduce-initial-server-response-time-372x90.png 372w\" sizes=\"(max-width: 1967px) 100vw, 1967px\" \/><\/figure><p>Time spent waiting for the initial response, also known as the <a href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-ttfb-server-response-times\/\">Time To First Byte (TTFB)<\/a> starts with the <a href=\"https:\/\/wp-rocket.me\/blog\/reduce-http-requests-speed-wordpress-site\/\">HTTP request<\/a>.&nbsp;<\/p><p>The time it takes for a server to receive the request depends on the time it takes to perform a DNS lookup, the speed of the user\u2019s network, the distance to the server, and any interruptions in the connection.&nbsp;<\/p><p>Since PageSpeed Insight does not help us identify what is causing DNS Lookup, we will need to use other tools, to help us isolate and fix this problem. And for us to know how to fix it, let\u2019s see how DNS lookup works.<\/p><figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"400\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-does-DNS-lookup-work.png\" alt=\"DNS lookup lets you use a human-readable domain to fetch a website\" class=\"wp-image-1067374\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-does-DNS-lookup-work.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-does-DNS-lookup-work-300x150.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-does-DNS-lookup-work-768x384.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption><br><strong><em>A DNS lookup lets you use a human-readable domain to fetch a website.<\/em><\/strong><\/figcaption><\/figure><h3 class=\"wp-block-heading\">How Does DNS Lookup Work?<\/h3><p>When you visit a website, your browser discovers all resources that necessitate a DNS query. After that, it waits for the lookup to complete before downloading any resources.&nbsp;<\/p><p>The greater the number of lookups a website requires, the longer it takes the browser to produce its pages.<\/p><p>Here\u2019s a simple explanation.<\/p><h3 class=\"wp-block-heading\">DNS Lookup Example<\/h3><p>If we take a phone book as \u201coptimization\u201d of DNS lookup, you can look at car repairs and find a name and phone number, and call them.<\/p><p>Once you call them, they will answer \u201cACME car repair\u201d and you found what you were looking for. The same goes with a DNS lookup.<\/p><p>Another example is calling your cell phone provider. Maybe you want to talk to customer service about billing discrepancies. You call, and an automated assistant will tell you to press 1 English 2 for Spanish. For your account information, press 2, and the thing goes on and on. <\/p><p>You just want to talk to customer service, and the automated assistant is trying to figure out what you need and guide you to the right department. While we are most likely to stay on for an hour to talk to customer service about our cellphone bill, your consumer won\u2019t wait for your site to load if there is a long DNS lookup!<\/p><p>If you want the technical answer:<\/p><p>The computer initially checks to see if the website entered is already in its cache or in its hosts&#8217; file. If this is not the case, it approaches the server in charge. This was allocated to it via DHCP or is permanently configured.<\/p><p>\u200b\u200bWhen a client or DNS server asks a DNS server to resolve a domain name, the query might be recursive or non-recursive.<\/p><p>Clients, such as PCs, often perform recursive queries, which instruct the DNS server to return solely with a response and not a referral.<\/p><p>A referral is simply a response. If it does not know the answer, it will point to another server.<\/p><p>DNS servers perform non-recursive or iterative queries, which effectively directs the other DNS server to deliver an answer or the address of another DNS server that may have the answer.<\/p><p>If the server can answer the request, it sends the response to the requester. If not, it contacts another server that is in charge of the domain. The browser may connect with the webserver through the IP network using the IP address provided.<\/p><p>I hope that helps you understand the multiple routes DNS lookup can take for it to work and why fast DNS response time is essential.<\/p><h3 class=\"wp-block-heading\">What Is a Good DNS Response Time?<\/h3><p>A good DNS lookup response time is roughly 40 ms, so aim for that or better.<\/p><p>It&#8217;s worth noting that every website is unique, so this isn&#8217;t a one-size-fits-all timetable.<\/p><p>Higher DNS lookup times, for example, maybe acceptable for a website with a completely local and low traffic website. However, if you have a global audience and want your site to receive a lot of traffic, your DNS response time should be less than 40 ms.<\/p><h2 class=\"wp-block-heading\">How to Check for DNS Lookup Response Time<\/h2><p>The critical part is identifying what is causing the problem. Let\u2019s look at three tools (Pingdom, GTmetrix, and WebPageTest, each with <a href=\"https:\/\/wp-rocket.me\/blog\/pingdom-vs-gtmetrix-vs-webpagetest-different\/\">different features and benefits<\/a>) you can use to identify your DNS lookup response time and how each tool provides that data.&nbsp;<\/p><ul class=\"wp-block-list\"><li><a href=\"#pingdom\">Pingdom<\/a><\/li><li><a href=\"#gtmetrix\">GTmetrix<\/a><\/li><li><a href=\"#webpagetest\">WebPageTest<\/a><\/li><\/ul><p>Note: There could be several reasons for long response time, including server load, network variability, race conditions in your JavaScript that cause the load order to change, etc. If your site is loading inconsistently, you should try running a profile in the performance tab of developer tools a few times with network throttling enabled to see what happens.<\/p><h3 class=\"wp-block-heading\" id=\"pingdom\">Pingdom DNS Lookups<\/h3><p>To check your DNS lookup with <a href=\"https:\/\/tools.pingdom.com\/\">Pingdom<\/a>, go to their tools page and enter your website URL:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1224\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Website-Speed-Test-Pingdom-Tools-6.png\" alt=\"Pingdom tools\" class=\"wp-image-4313183\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Website-Speed-Test-Pingdom-Tools-6.png 2048w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Website-Speed-Test-Pingdom-Tools-6-310x185.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Website-Speed-Test-Pingdom-Tools-6-768x459.png 768w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/figure><p>At a glance, you can see if you are having this issue under the \u201cImprove page performance\u201d section (see below):<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"978\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2019\/03\/DNS-Lookup-pindgom.png\" alt=\"DNS Lookup pindgom\" class=\"wp-image-4313157\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2019\/03\/DNS-Lookup-pindgom.png 2048w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2019\/03\/DNS-Lookup-pindgom-310x148.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2019\/03\/DNS-Lookup-pindgom-768x367.png 768w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/figure><p>You can see \u201cReduce DNS lookup\u201d in red and a score of F. This site does not have any caching, no performance plugins, and a ton that causes issues.&nbsp;<\/p><p>Scroll down to get a better-detailed view of what is causing the DNS lookup issue. The DNS is displayed by the pink bar and is measured in milliseconds. Hover over each file request to see which of the files is causing a DNS lookup and how long it takes to load.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1907\" height=\"1046\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdom-tool-dns.png\" alt=\"Pingdom DNS Lookups\" class=\"wp-image-4313251\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdom-tool-dns.png 1907w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdom-tool-dns-310x170.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdom-tool-dns-768x421.png 768w\" sizes=\"(max-width: 1907px) 100vw, 1907px\" \/><\/figure><figure class=\"wp-block-table\"><table><tbody><tr><td>When you run your website through Pingdom many times, it caches the DNS because it already knows the IP address and does not need to conduct the query again. <\/td><\/tr><\/tbody><\/table><\/figure><p>This is one of the reasons why your website seems quicker after many Pingdom tests. The second test&#8217;s DNS lookup time on the CDN URL is 0 ms, as seen in the screenshot below. This is an area where many people do it wrong.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2523\" height=\"584\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Website-Speed-Test-Pingdom-Tools-1.png\" alt=\"Pingdom DNS Lookups empty\" class=\"wp-image-4313194\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Website-Speed-Test-Pingdom-Tools-1.png 2523w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Website-Speed-Test-Pingdom-Tools-1-310x72.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Website-Speed-Test-Pingdom-Tools-1-768x178.png 768w\" sizes=\"(max-width: 2523px) 100vw, 2523px\" \/><\/figure><p>You can see that the file request section does not show any requests after running multiple tests with Pingdom. No matter what I tried, I could not get this to show up again!<\/p><p>I would use Pingdom tools to quickly identify if you have Reduce DNS lookup problems and a high level and then go through either GTmetrix or WebPageTest tools to dig deeper.<\/p><p>It\u2019s much easier to see what is wrong with your website performance by looking at the Pingdom result compared with the others:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2059\" height=\"708\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdom-dns-test-result.png\" alt=\"Pingdom DNS lookup test results\" class=\"wp-image-4313275\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdom-dns-test-result.png 2059w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdom-dns-test-result-310x107.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdom-dns-test-result-768x264.png 768w\" sizes=\"(max-width: 2059px) 100vw, 2059px\" \/><\/figure><p>Note: If you are using a CDN or a WordPress cache plugin, then tools.pingdom.com will show the caching result. You can try to deactivate CDN or WordPress plugin or purge cache and check again on Pingdom.<\/p><h3 class=\"wp-block-heading\" id=\"gtmetrix\">GTmetrix DNS Lookups<\/h3><p>To check what is causing more prolonged DNS lookup on GTmetrix, enter your URL:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2402\" height=\"1449\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-report-example.png\" alt=\"gtmetrix test result\" class=\"wp-image-4313499\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-report-example.png 2402w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-report-example-310x187.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-report-example-768x463.png 768w\" sizes=\"(max-width: 2402px) 100vw, 2402px\" \/><\/figure><p>Go to the Waterfall tab, and when you hover specific file request, the DNS lookup is labeled&nbsp; with a green bar and is measured in milliseconds.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1341\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-dns-lookup-example.png\" alt=\"gtmetrix dns lookup result\" class=\"wp-image-4313506\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-dns-lookup-example.png 2048w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-dns-lookup-example-298x195.png 298w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-dns-lookup-example-768x503.png 768w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/figure><p>You\u2019ll need to review each file, see which one has a DNS lookup and see their load time. Remember, 40ms or better is what we\u2019re trying to aim for.<\/p><h3 class=\"wp-block-heading\" id=\"webpagetest\">WebPagetest DNS Lookups<\/h3><p>While Pingdom and GTmetrix are great tools, WebPagetest seems to provide more straightforward to read data.<\/p><p>Go to their site and enter your URL:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2844\" height=\"1700\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/WebPageTest-Website-Performance-and-Optimization-Test.png\" alt=\"webpagetest test website\" class=\"wp-image-4313524\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/WebPageTest-Website-Performance-and-Optimization-Test.png 2844w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/WebPageTest-Website-Performance-and-Optimization-Test-310x185.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/WebPageTest-Website-Performance-and-Optimization-Test-768x459.png 768w\" sizes=\"(max-width: 2844px) 100vw, 2844px\" \/><\/figure><p>Once the test is completed, go to \u201cView\u201d and select \u201cDetails\u201d:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1224\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/didyouknowthisabout-irginia-USA-EC2-WebPageTest-Result-1.png\" alt=\"webpage test detailed report\" class=\"wp-image-4313531\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/didyouknowthisabout-irginia-USA-EC2-WebPageTest-Result-1.png 2048w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/didyouknowthisabout-irginia-USA-EC2-WebPageTest-Result-1-310x185.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/didyouknowthisabout-irginia-USA-EC2-WebPageTest-Result-1-768x459.png 768w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/figure><p>They give a short overview of your request information where you may arrange it by the fastest response times by clicking the &#8220;DNS lookup&#8221; column.&nbsp;<\/p><p>This is a much easier way to find the culprit causing a slow reduced DNS lookup.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1936\" height=\"1481\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/webpagetest-dns-lookup-list.png\" alt=\"webpage test dns lookup result\" class=\"wp-image-4313558\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/webpagetest-dns-lookup-list.png 1936w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/webpagetest-dns-lookup-list-255x195.png 255w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/webpagetest-dns-lookup-list-768x588.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/webpagetest-dns-lookup-list-78x60.png 78w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/webpagetest-dns-lookup-list-118x90.png 118w\" sizes=\"(max-width: 1936px) 100vw, 1936px\" \/><\/figure><h2 class=\"wp-block-heading\">How to Reduce DNS Lookups for WordPress<\/h2><p>Many factors contribute to a slow DNS lookup. Here are a few ways to reduce DNS lookups for your site and the best ways to do so.<\/p><h3 class=\"wp-block-heading\">1. Use a Fast DNS Provider or CDN<\/h3><figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"400\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-cdn.png\" alt=\"How CDN helps optimize your server\" class=\"wp-image-1067380\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-cdn.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-cdn-300x150.png 300w, https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/wp-rocket-cdn-768x384.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption><br><strong><em>A CDN caches your website from a cluster of highly optimized servers.<\/em><\/strong><\/figcaption><\/figure><p>The first step to reducing the DNS lookup response time is using a fast DNS service or <a href=\"https:\/\/wp-rocket.me\/blog\/cdn\/\">CDN<\/a>. Like hosting, several DNS service providers are available, but all providers don\u2019t work the same.&nbsp;<\/p><p>If you find a reliable DNS provider, you can switch to them to reduce DNS lookups. You can also check providers&#8217; speed using <a href=\"https:\/\/www.dnsperf.com\/\">DNSPerf<\/a>, <a href=\"https:\/\/www.dnsperf.com\/dns-speed-benchmark\/\">DNS Speed Benchmark<\/a>, or <a href=\"https:\/\/www.ultratools.com\/tools\/dnsHostingSpeed?_ga=2.256170889.343816610.1650379694-46619975.1649419602\">DNS Speed Test<\/a>.<\/p><p>If you are looking for a reliable DNS provider, DNSPerf provides all the different providers and their benchmarks. So it\u2019s easy to see which DNS provider you should go with.<\/p><figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/DNS-Performance-Compare-the-speed-and-uptime-of-enterprise-and-commercial-DNS-services-DNSPerf.png\" alt=\"DNSperf top 10 DNS provider\" class=\"wp-image-4313564\" width=\"798\" height=\"527\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/DNS-Performance-Compare-the-speed-and-uptime-of-enterprise-and-commercial-DNS-services-DNSPerf.png 1823w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/DNS-Performance-Compare-the-speed-and-uptime-of-enterprise-and-commercial-DNS-services-DNSPerf-295x195.png 295w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/DNS-Performance-Compare-the-speed-and-uptime-of-enterprise-and-commercial-DNS-services-DNSPerf-768x507.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/DNS-Performance-Compare-the-speed-and-uptime-of-enterprise-and-commercial-DNS-services-DNSPerf-91x60.png 91w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/DNS-Performance-Compare-the-speed-and-uptime-of-enterprise-and-commercial-DNS-services-DNSPerf-136x90.png 136w\" sizes=\"(max-width: 798px) 100vw, 798px\" \/><figcaption><strong><em>Top 10 DNS providers by DNSPerf<\/em><\/strong><\/figcaption><\/figure><p>Alternatively, if you want to see how well your current DNS provider performs, you can use DNS Speed Benchmark to see which area of the world serves the best. This way, you can stay with your provider based on your targeted countries. See below:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1130\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/DNS-Performance-Compare-the-speed-and-uptime-of-enterprise-and-commercial-DNS-services-DNSPerf-1.png\" alt=\"DNS speed benchmark that shows the area of the world served and result\" class=\"wp-image-4313570\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/DNS-Performance-Compare-the-speed-and-uptime-of-enterprise-and-commercial-DNS-services-DNSPerf-1.png 2048w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/DNS-Performance-Compare-the-speed-and-uptime-of-enterprise-and-commercial-DNS-services-DNSPerf-1-310x171.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/DNS-Performance-Compare-the-speed-and-uptime-of-enterprise-and-commercial-DNS-services-DNSPerf-1-768x424.png 768w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><figcaption><strong><em>DNS Speed Benchmark showing DNS lookup in different areas of the world<\/em><\/strong><\/figcaption><\/figure><p>You can also reduce DNS lookups by using a reliable Content Delivery Network (CDN) such as Cloudflare.<\/p><p>A CDN is a service used as an intermediary between a browser and your website. It uses a cluster of high-performance servers rather than just one like what\u2019s available in a typical hosting plan.<\/p><p>You can use it to cache as much of your website\u2019s content as possible so your site can take advantage of the optimized performance to load your website quickly.<\/p><figure class=\"wp-block-table\"><table><tbody><tr><td>For details, check out <a href=\"https:\/\/wp-rocket.me\/blog\/test-dns-server-response-time-troubleshoot-site-speed\/\">How to Test DNS Server Response Time to Troubleshoot Site Speed<\/a>.<\/td><\/tr><\/tbody><\/table><\/figure><h3 class=\"wp-block-heading\">2. Take Advantage of DNS Caching<\/h3><p>Caching can be used to minimize DNS lookups since fewer lookups are required for each subsequent page load.<\/p><p>The DNS cache acts as storage holding the hostname for a set amount of time. When a browser requests the element, the cache provides the hostname instead of requiring a DNS lookup.&nbsp;<\/p><p>Change the Time to Live (TTL) settings for your DNS records to enable DNS caching.<\/p><p>The length of the DNS cache is determined by the Time To Live (TTL).&nbsp;<\/p><p>Not all DNS records should be cached for the same amount of time. Some commonly-accepted guidelines are:<\/p><ul class=\"wp-block-list\"><li>CNAME Records: 24 hours<\/li><li>A and AAAA Records: Five minutes to an hour<\/li><li>TXT Records: 12 hours<\/li><li>MX Records: 12 hours<\/li><\/ul><p>Your A and AAAA records must be set to lesser numbers. However, CNAME, MX, and TXT records can normally be set to higher values, such as 12 or 24 hours.<\/p><p>When setting up DNS caching, keep in mind that the TTL values will usually be shown in seconds. This will need to be taken into account when defining your values.&nbsp;<\/p><h3 class=\"wp-block-heading\">3. Setting Up DNS Prefetching<\/h3><p>You can reduce latency by setting DNS Lookups to perform in the background with DNS prefetching. Prefetching enabled browsers to perform DNS lookups in the background. The browser will request prefetch elements as a user reads one web page. This is primarily used for links within your content.&nbsp;<\/p><p>You can set this for assets such as Google Analytics, Font Awesome, Google Fonts, and others.<\/p><p>To enable DNS prefetching on your WordPress site, add the following&nbsp;code to the header of your page files:<\/p><pre class=\"wp-block-code\"><code class=\"\">&lt;!-- DNS Prefetching --&gt;\n&lt;link rel=\"dns-prefetch\" href=\"\/\/asset1.com\"&gt;\n&lt;link rel=\"dns-prefetch\" href=\"\/\/asset2.com\"&gt;<\/code><\/pre><p>Don\u2019t forget to replace \u201casset1.com,\u201d and \u201casset2.com\u201d with the appropriate URLs. You can also repeat the last line as needed.<\/p><h3 class=\"wp-block-heading\">4. Enable Keep-Alive<\/h3><p>Another way you can reduce DNS lookups is by enabling keep-alive. It means keeping the connection between a server and browser consistently active to load more asset files at one time.<\/p><p>Without it, resource files are all loaded as separate requests even though there are multiple resources included in a single domain.<\/p><p>For example, one asset from \u201cwebsite1.com,\u201d and three resources from \u201cwebsite2.com\u201d would collectively be four DNS requests.<\/p><p>With keep-alive enabled, those same resources would be loaded as only two total requests.<\/p><p>All major browsers support keep-alive, and it\u2019s enabled by default in most cases. If it\u2019s disabled, you can re-enable it on Apache and Nginx servers.<\/p><h4 class=\"wp-block-heading\">For Apache<\/h4><p>On the Apache server, you should add the following code via your .htaccess file.<\/p><pre class=\"wp-block-code\"><code class=\"\">&lt;ifModule mod_headers.c&gt;\nHeader set Connection keep-alive\n&lt;\/ifModule&gt;<\/code><\/pre><h4 class=\"wp-block-heading\">For NGINX<\/h4><p>To enable keep-alive on your NGINX server, find out the HTTP core module (ngx_http_core_module), search for a line similar to keep-disable, and replace it with the following one.<\/p><pre class=\"wp-block-code\"><code class=\"\">keepalive_disable none;<\/code><\/pre><h3 class=\"wp-block-heading\">5. Reduce the Number of Hostnames<\/h3><p>The easiest way to reduce DNS lookups is to get rid of requests for different hostnames. Run your website through a speed test with a speed test tool like Google PageSpeed Insights. The result will show a list of hostnames and assets that trigger a DNS request.<\/p><p>You can audit this list to reduce the number of requests. For instance, external requests for graphics like each social icon button require a DNS lookup. Therefore, while auditing, look out to see if these resources are essential to your website.<\/p><h3 class=\"wp-block-heading\">6.&nbsp;Locally Host Third-Party Resources<\/h3><p>If your hostnames audit reveals that you still have several external resources, try hosting the resources locally instead. Local hosting also allows for additional control over caching and delivery of these resources and the elimination of the DNS search phase.<\/p><p>Download the files you need from wherever they are now kept and upload them to your web server or CDN to host the resources.&nbsp;<\/p><p>However, if you receive requests for constantly updated scripts, such as font libraries, hosting them locally may not be ideal. Because these resources are often changed, it is best to leave their scripts alone, and other efforts can be made to limit the impact of their DNS lookup.<\/p><p>Here are a few common third-party resources that cause long DNS lookup.<\/p><h4 class=\"wp-block-heading\">Third-Party fonts: Google Fonts or Awesome Fonts<\/h4><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2881\" height=\"1599\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/How-to-Reduce-DNS-Lookups-to-Speed-Up-Your-WordPress-Site-Google-Docs-1.png\" alt=\"Third-Party fonts: Google Fonts css  dns lookup\" class=\"wp-image-4313650\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/How-to-Reduce-DNS-Lookups-to-Speed-Up-Your-WordPress-Site-Google-Docs-1.png 2881w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/How-to-Reduce-DNS-Lookups-to-Speed-Up-Your-WordPress-Site-Google-Docs-1-310x172.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/How-to-Reduce-DNS-Lookups-to-Speed-Up-Your-WordPress-Site-Google-Docs-1-768x426.png 768w\" sizes=\"(max-width: 2881px) 100vw, 2881px\" \/><\/figure><p>Externally hosted fonts like <a href=\"https:\/\/wp-rocket.me\/blog\/self-hosting-google-fonts\/\">Google Fonts<\/a> are also <a href=\"https:\/\/wp-rocket.me\/blog\/third-party-scripts\/\">one of the heaviest third-party resources<\/a> to load. To obtain the CSS file from Google Fonts, you must make an additional DNS request to fonts.googleapis.com. You can then send further queries to fonts.gstatic.com to obtain the font files.&nbsp;<\/p><p>When you host locally, all requests come from the same domain or CDN, and you won&#8217;t need another CSS file because it will be contained within your WordPress theme&#8217;s CSS file. There are advantages and disadvantages to doing so, but see our in-depth post on<a href=\"https:\/\/wp-rocket.me\/blog\/self-hosting-google-fonts\/\"> how to host fonts locally<\/a> for more information.<\/p><p>We occasionally see plugin developers and themes incorporate Font Awesome on WordPress sites. However, sometimes they are added in a way that a plugin like CDN enabler would miss by default and cause it to increase your load time. In this scenario, we recommend contacting the developer to inquire about loading it from your CDN.<\/p><p>Another typical Font Awesome situation is that it is occasionally loaded from the default BootstrapCDN (MaxCDN). While there is nothing wrong with this, it adds a DNS query that you do not require. In most circumstances, it is preferable to load Font Awesome from your own CDN to avoid extra lookup.<\/p><h4 class=\"wp-block-heading\">Locally host Google Analytics<\/h4><p>Google&#8217;s own script issues a caching warning, but this is due to their HTTP caching header expiration being set so short. When you host it yourself, your own CDN or server&#8217;s HTTP caching headers will be applied automatically. In other words, you have complete control over the script&#8217;s caching.<\/p><p>Google Analytics not only generates a DNS search in GTmetrix, but it also generates a &#8220;<a href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/serve-static-assets-with-an-efficient-cache-policy\/\">Serve static assets with an efficient cache policy<\/a>\u201d issue.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2406\" height=\"1498\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/analytics.png\" alt=\"analytics tracking code dns lookup\" class=\"wp-image-4313663\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/analytics.png 2406w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/analytics-310x193.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/analytics-768x478.png 768w\" sizes=\"(max-width: 2406px) 100vw, 2406px\" \/><\/figure><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2844\" height=\"1700\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/PageSpeed-Insights-analytics-js-dns-lookup.png\" alt=\"reduce javascript execution time analytics.js\" class=\"wp-image-4313677\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/PageSpeed-Insights-analytics-js-dns-lookup.png 2844w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/PageSpeed-Insights-analytics-js-dns-lookup-310x185.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/PageSpeed-Insights-analytics-js-dns-lookup-768x459.png 768w\" sizes=\"(max-width: 2844px) 100vw, 2844px\" \/><\/figure><h4 class=\"wp-block-heading\">Videos for Slow Loading<\/h4><p>Third-party requests from the source are generated by embedded videos (usually YouTube or Vimeo).<\/p><p>You can dramatically improve video load time and DNS lookups by slow loading videos and replacing the iframe with a preview picture.<\/p><p>Using a caching plugin, such as WP Rocket, can grab the YouTube thumbnail as the preview image and allow you to lazy load images and videos.&nbsp;<\/p><p>Alternatively, you can use another plugin to help with video lazy loading:&nbsp;<\/p><ul class=\"wp-block-list\"><li><a href=\"https:\/\/wordpress.org\/plugins\/youtube-embed-plus\/\">YouTube by EmbedPlus<\/a><\/li><li><a href=\"https:\/\/wordpress.org\/plugins\/wp-youtube-lyte\/\">WP YouTube Lyte<\/a><\/li><\/ul><h3 class=\"wp-block-heading\">7. Defer the Loading of JavaScript<\/h3><p><a href=\"https:\/\/wp-rocket.me\/blog\/deferred-loading-of-javascript\/\">Deferring JavaScript<\/a> is the best solution, without getting too technical. It will not necessarily speed up DNS lookups, but optimize your above-the-fold content.&nbsp;<\/p><p>As a result, users will notice that your website is loading faster, which improves perceived performance. Furthermore, delaying JavaScript processing allows the crucial material to be loaded first, followed by the non-critical JS.<\/p><p>You may also utilize WP Rocket WordPress plugin, which allows you to quickly defer and delay Javascript loading.<\/p><p>However, it is important to note that you must go through all of the running Java scripts and identify the JS ones you do not want to delay. This is due to the fact that some javascript is required to render material above the fold.<\/p><h3 class=\"wp-block-heading\">8. Avoid Plugins That Are Known For DNS Lookups<\/h3><p>Hotjar, Leadpages, live chat, and other plugins that have tracking scripts.<\/p><p>These eventually result in additional DNS lookups and are typically unfixable.<\/p><p>It&#8217;s a compromise, much as Google AdSense or Google Tag Manager.<\/p><p>So how do you determine if they should stay on your site or not?<\/p><p>Well, ask yourself if you worry more about how the tools are used or how quickly your website loads?&nbsp;<\/p><p>Look through this list of common sluggish plugins and try to avoid them if at all feasible. Aside from avoiding plugins that do DNS lookups, you should also avoid resource-intensive plugins with large JavaScript or CSS files (like Elementor).<\/p><p>Page builders, ultimate addons, social sharing, statistics, portfolio, slider, backup, chat, calendar, contact form, related post, and those performing continual scans + processes are the most sluggish plugins. WooCommerce sites may be very resource-intensive.<\/p><h4 class=\"wp-block-heading\">How to Find the Slowest Plugins and Themes<\/h4><p>It is typical for a typical website to have 20-30 plugins installed.<\/p><p>Some plugins cause the frontend to load slowly, while others create resource-intensive background processes that raise CPU use. As these plugins gather data, create backups, or construct big database tables.<\/p><p>Query Monitor is an excellent WordPress debugging tool. It gives a wealth of data that might assist users in determining what is causing speed and performance difficulties.<\/p><p>Once installed, go to Query Monitor Settings&gt;&gt;Queries&gt;&gt;Queries by Component. There you can see the load time for each plugin you have installed.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2844\" height=\"1700\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Plugins-\u2039-Did-you-know-this-about-\u2014-WordPress-1.png\" alt=\"Using Query Monitor plugin to identify heavy resource plugins\" class=\"wp-image-4313698\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Plugins-\u2039-Did-you-know-this-about-\u2014-WordPress-1.png 2844w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Plugins-\u2039-Did-you-know-this-about-\u2014-WordPress-1-310x185.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Plugins-\u2039-Did-you-know-this-about-\u2014-WordPress-1-768x459.png 768w\" sizes=\"(max-width: 2844px) 100vw, 2844px\" \/><\/figure><p>Other tools like New Relic, GTmetrix, and Chrome Developer Tools might also work, but I believe it is more complex to understand than Query Monitor.&nbsp;<\/p><p>Always go for plugins created by specialists with a strong reputation. These plugins will adhere to WordPress code standards and should not have a detrimental influence on the speed and performance of your site.<\/p><p>Don\u2019t forget about themes and how they might cause your site to load slowly. Check out our article on how select the <a href=\"https:\/\/wp-rocket.me\/blog\/fastest-free-wordpress-themes\/\">fastest WordPress theme<\/a> for your site.<\/p><h3 class=\"wp-block-heading\">9. Reduce DNS Lookups by Using WordPress Plugins<\/h3><p>I briefly talked about reducing the <a href=\"https:\/\/wp-rocket.me\/blog\/wordpress-plugins-many\/\">number of plugins<\/a> you should be using. So, why am I recommending a plugin?&nbsp;<\/p><p>I\u2019m no hypocrite! If you can opt-in for an all-in-one solution to help with your whole <a href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/\">Core Web Vital performance<\/a>, I would definitely recommend it, compared to installing several different plugins to do the same job. But if you\u2019re looking for free options, plugins like Asset Cleanup, and Autoptimize, can help reduce DNS lookups.<\/p><p>While manual approaches are recommended for reducing more effective DNS lookups, various WordPress plugins are also available to assist you to minimize DNS lookups more effectively. Call it lazy on my end, I didn\u2019t want to write whole technical documentation on how to do everything manually!<\/p><p>However, do note that plugins will not be able to cover all elements of DNS lookup reduction, but they can make some stages quicker and more automated, such as CDN hosting and browser caching.<\/p><div id=\"om-nyrydv5iync8zrrulm5i-holder\"><\/div>\n\t<script>(function (d, u, ac) {\n\t\t\tvar s = d.createElement('script')\n\t\t\ts.type = 'text\/javascript'\n\t\t\ts.src = 'https:\/\/a.omappapi.com\/app\/js\/api.min.js'\n\t\t\ts.async = true\n\t\t\ts.dataset.user = u\n\t\t\ts.dataset.campaign = ac\n\t\t\td.getElementsByTagName('head')[0].appendChild(s)\n\t\t})(document, 20440, 'nyrydv5iync8zrrulm5i')<\/script><h2 class=\"wp-block-heading\">Why You Should Install WP Rocket to Reduce DNS Lookup<\/h2><p>Writing a whole tutorial on how to use Asset Cleanup, Autoptimize, and other methods would make this article bit too long for anyone to read.<\/p><p>Let\u2019s take a shortcut!<\/p><p>You can install and enable WP Rocket on your WordPress site to automatically speed up your site. WP Rocket is the easiest way to achieve outstanding speed improvements while stopping to use of different plugins to improve performance, no technical knowledge is required.<\/p><p>Remember all of the screenshots I\u2019ve provided earlier in this article? Those horrible scores just got better, simply by installing WP Rocket.<\/p><p>Take a look at the PageSpeed Insight results, simply by installing WP Rocket, and no CDN installed:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2844\" height=\"1700\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/PageSpeed-Insights-11-1.png\" alt=\"wp rocket wit h pagespeed insight\" class=\"wp-image-4313724\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/PageSpeed-Insights-11-1.png 2844w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/PageSpeed-Insights-11-1-310x185.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/PageSpeed-Insights-11-1-768x459.png 768w\" sizes=\"(max-width: 2844px) 100vw, 2844px\" \/><\/figure><p>You still see \u201cReduce initial server response time\u201d due to my hosting provider, but that can be easily resolved by adding a CDN or changing hosting:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1840\" height=\"1022\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pagespeed-insight-wp-rocket-opportunties.png\" alt=\"pagespeed insight wp rocket opportunties\" class=\"wp-image-4313884\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pagespeed-insight-wp-rocket-opportunties.png 1840w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pagespeed-insight-wp-rocket-opportunties-310x172.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pagespeed-insight-wp-rocket-opportunties-768x427.png 768w\" sizes=\"(max-width: 1840px) 100vw, 1840px\" \/><\/figure><p>GTmetrix shows a better grade and the DNS lookup is now at 13 ms versus 115 ms prior to installing WP Rocket:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1979\" height=\"1686\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-wp-rocket-results.png\" alt=\"gtmetrix wp rocket results\" class=\"wp-image-4313895\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-wp-rocket-results.png 1979w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-wp-rocket-results-229x195.png 229w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-wp-rocket-results-768x654.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-wp-rocket-results-70x60.png 70w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-wp-rocket-results-106x90.png 106w\" sizes=\"(max-width: 1979px) 100vw, 1979px\" \/><\/figure><p>Same goes for Pingdom (see below)<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"689\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Pingdom-result-after-wp-rocket.png\" alt=\"Pingdom result after wp rocket\" class=\"wp-image-4314070\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Pingdom-result-after-wp-rocket.png 2048w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Pingdom-result-after-wp-rocket-310x104.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/Pingdom-result-after-wp-rocket-768x258.png 768w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/figure><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1128\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdomtwp-rocket-results.png\" alt=\"pingdomtwp rocket results\" class=\"wp-image-4313915\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdomtwp-rocket-results.png 2048w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdomtwp-rocket-results-310x171.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdomtwp-rocket-results-768x423.png 768w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/figure><p>And finally, here\u2019s my previous screenshot of my site without WP Rocket, tested with WebPageTest:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1232\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/before-wp-rocket-webpagetest-dns-lookup.png\" alt=\"before wp rocket webpagetest dns lookup\" class=\"wp-image-4313926\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/before-wp-rocket-webpagetest-dns-lookup.png 2048w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/before-wp-rocket-webpagetest-dns-lookup-310x187.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/before-wp-rocket-webpagetest-dns-lookup-768x462.png 768w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/figure><p>Here, you can see the main DNSlookup contributors left are just Google Adsense and the website server:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2486\" height=\"1533\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/webpagetest-wp-rocket.png\" alt=\"webpagetest wp rocket\" class=\"wp-image-4313933\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/webpagetest-wp-rocket.png 2486w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/webpagetest-wp-rocket-310x191.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/webpagetest-wp-rocket-768x474.png 768w\" sizes=\"(max-width: 2486px) 100vw, 2486px\" \/><\/figure><p>While WP Rocket won\u2019t directly reduce DNS lookups in some cases, it complements the strategies above since it helps speed up page load times dramatically.<\/p><p>The reason why each web performance tool score improved drastically is because, with WP Rocket, you can:<\/p><ul class=\"wp-block-list\"><li>Remove unused CSS<\/li><li>Enable browser caching<\/li><li>Use DNS prefetching as mentioned above<\/li><li>Defer JavaScript and delay JavaScript execution<\/li><li>Automatically enable a ton more speed optimization options, such as, optimize Google Fonts<\/li><\/ul><p>While WP Rocket works great out of the box, there are some customizations, depending on your site.<\/p><h3 class=\"wp-block-heading\">How WP Rocket Can Help Reduce Dns Lookup With DNS Prefetching<\/h3><p>One feature I want to highlight is the DNS prefetching. It enables you to resolve domain names performance.&nbsp;<\/p><p>How does this work? By the time the user clicks a link as anticipated, the DNS look has already taken place, thus reducing latency.<\/p><p>There is no way to use third-party content without a DNS lookup for each domain. The Prefetch option doesn&#8217;t remove the need for the lookup; it just processes it sooner.&nbsp;<\/p><p>DNS prefetching can be added to a specific URL by adding the rel=\u201ddns-prefetch\u201d tag to the link attribute. For example:<\/p><pre class=\"wp-block-code\"><code class=\"\">&lt;link rel=\"dns-prefetch\" href=\"\/\/fonts.googleapis.com\"&gt;<\/code><\/pre><p>To prefetch DNS requests with WP Rocket in a few clicks, first install and enable it on your WordPress site<\/p><p>Next, go to Settings &gt; WP Rocket and click on the Preload tab.<\/p><p>Then, scroll down to the Prefetch DNS Requests section and enter the URLs of the resource hostnames into the multi-line text box that you want to prefetch to reduce DNS lookups.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1855\" height=\"1191\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/prefetch-dns-wp-rocket.png\" alt=\"prefetch dns wp rocket\" class=\"wp-image-4313940\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/prefetch-dns-wp-rocket.png 1855w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/prefetch-dns-wp-rocket-304x195.png 304w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/prefetch-dns-wp-rocket-768x493.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/prefetch-dns-wp-rocket-93x60.png 93w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/prefetch-dns-wp-rocket-140x90.png 140w\" sizes=\"(max-width: 1855px) 100vw, 1855px\" \/><\/figure><p>Add the origin host, i.e., the domain on which the file is hosted, like so:<\/p><ul class=\"wp-block-list\"><li>Remove the http or https<\/li><li>Keep the double slash<\/li><\/ul><p>For example, if there is a request like this:<\/p><pre class=\"wp-block-code\"><code class=\"\">https:\/\/fonts.googleapis.com\/css?family=Roboto:900%2C400%2C500%2C300%7CRaleway:700%2C300%7COpen+Sans:300%2C800\n<\/code><\/pre><p>You would enter it as:&nbsp;<\/p><pre class=\"wp-block-code\"><code class=\"\">\/\/fonts.googleapis.com<\/code><\/pre><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1815\" height=\"1235\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/add-to-prefetch-dns.png\" alt=\"add to prefetch dns\" class=\"wp-image-4313947\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/add-to-prefetch-dns.png 1815w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/add-to-prefetch-dns-287x195.png 287w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/add-to-prefetch-dns-768x523.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/add-to-prefetch-dns-88x60.png 88w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/add-to-prefetch-dns-132x90.png 132w\" sizes=\"(max-width: 1815px) 100vw, 1815px\" \/><\/figure><p>You can add external URLs that are used on a site, e.g. some chat plugins, Fontawesome, other fonts, tracking scripts, etc.<\/p><p>Examples would be:<\/p><pre class=\"wp-block-code\"><code class=\"\">\/\/ajax.googleapis.com\n\/\/maps.google.com\n\/\/fonts.google.com\n\/\/www.youtube.com\n\/\/use.fontawesome.com\n\/\/\/api.twitter.com\n<\/code><\/pre><p>Click the following link if you want to know more about <a href=\"https:\/\/docs.wp-rocket.me\/article\/1302-prefetch-dns-requests\">how to use our Prefetch DNS<\/a> feature.<\/p><p>DNS prefetching tells the browser to perform this connection before the file is needed so that it&#8217;s already complete by the time the file is requested.<\/p><p>There are other WP Rocket features that run automatically. <a href=\"https:\/\/docs.wp-rocket.me\/article\/1312-optimize-google-fonts\">Optimize Google Fonts<\/a> for example. While this does not host the fonts locally, it does improve the DNS Lookup.<\/p><h3 class=\"wp-block-heading\">Bonus: RocketCDN<\/h3><p>Our first recommendation to reduce your DNS lookup for your WordPress site was to use a fast DNS provider or a CDN. There&#8217;s a variety of options, and we wrote an article on how to choose a CDN and how to test a DNS provider to make sure you get the maximum performance.&nbsp;<\/p><p>In this article, however, I went with <a href=\"https:\/\/rocketcdn.me\/\">RocketCDN<\/a>, for affordability but also great performance.&nbsp;<\/p><p>While you might able to reduce some with a free Cloudflare account, there&#8217;s nothing like a paid service that can get the job done. But if anyone reading this article can produce same or better results with a free Cloudflare account, feel free to leave a comment below!<\/p><p>You can see how Pingdom tool test shows everything green with 100 score:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1280\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdom-results-with-rocketcdn.png\" alt=\"pingdom results with rocketcdn\" class=\"wp-image-4314078\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdom-results-with-rocketcdn.png 2048w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdom-results-with-rocketcdn-310x195.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdom-results-with-rocketcdn-768x480.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdom-results-with-rocketcdn-96x60.png 96w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pingdom-results-with-rocketcdn-144x90.png 144w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/figure><p>GTMetrix shows 0 DNS lookup compared to WP Rocket 13 ms:&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1342\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-rocketcdn.png\" alt=\"gtmetrix rocketcdn\" class=\"wp-image-4313965\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-rocketcdn.png 2048w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-rocketcdn-298x195.png 298w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-rocketcdn-768x503.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-rocketcdn-92x60.png 92w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/gtmetrix-rocketcdn-137x90.png 137w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/figure><p>And prior to installing RocketCDN WebPageTest shows only Google Adsense and Amazon widgets to be the only ones that are causing the issue.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"995\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/rocketcdn-webpagetest.png\" alt=\"rocketcdn webpagetest\" class=\"wp-image-4313977\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/rocketcdn-webpagetest.png 2048w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/rocketcdn-webpagetest-310x151.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/rocketcdn-webpagetest-768x373.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/rocketcdn-webpagetest-124x60.png 124w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/rocketcdn-webpagetest-185x90.png 185w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/figure><p>If WP Rocket was not enough to provide all the performance you need, using RocketCDN reduced these ad tracking scripts!&nbsp;<\/p><p>Take a look at the PageSpeed Insight and you can see that \u201cReduce initial server response time\u201d is no longer showing up:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1851\" height=\"995\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pagespeed-insight-with-rocketcdn.png\" alt=\"pagespeed insight with rocketcdn\" class=\"wp-image-4313986\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pagespeed-insight-with-rocketcdn.png 1851w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pagespeed-insight-with-rocketcdn-310x167.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/pagespeed-insight-with-rocketcdn-768x413.png 768w\" sizes=\"(max-width: 1851px) 100vw, 1851px\" \/><\/figure><p>Installing RocketCDN along with WP Rocket is just one click away. Simply go to WP Rocket Dashboard and click \u201cGet RocketCDN\u201d, subscribe and that\u2019s it!<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1848\" height=\"926\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/wp-rocket-subscribe-to-rocketcdn.png\" alt=\"wp rocket subscribe to rocketcdn\" class=\"wp-image-4313993\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/wp-rocket-subscribe-to-rocketcdn.png 1848w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/wp-rocket-subscribe-to-rocketcdn-310x155.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/wp-rocket-subscribe-to-rocketcdn-768x385.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/wp-rocket-subscribe-to-rocketcdn-120x60.png 120w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2022\/04\/wp-rocket-subscribe-to-rocketcdn-180x90.png 180w\" sizes=\"(max-width: 1848px) 100vw, 1848px\" \/><\/figure><div id=\"om-ulrdquoprwqcywqbbgci-holder\"><\/div>\n\t<script>(function (d, u, ac) {\n\t\t\tvar s = d.createElement('script')\n\t\t\ts.type = 'text\/javascript'\n\t\t\ts.src = 'https:\/\/a.omappapi.com\/app\/js\/api.min.js'\n\t\t\ts.async = true\n\t\t\ts.dataset.user = u\n\t\t\ts.dataset.campaign = ac\n\t\t\td.getElementsByTagName('head')[0].appendChild(s)\n\t\t})(document, 20440, 'ulrdquoprwqcywqbbgci')<\/script><h2 class=\"wp-block-heading\">Conclusion<\/h2><p>There you have it! Reducing DNS lookups is important in optimizing your site\u2019s performance. Due to abundant third-party services, external requests increase a lot, and it increases the latency for your website visitors.<\/p><p>You can reduce DNS lookups in WordPress much more quickly following all the above steps from this guide.<\/p><p><a href=\"https:\/\/wp-rocket.me\/pricing\/?utm_source=blog&amp;utm_medium=organic&amp;utm_campaign=blog-final-cta-1&amp;utm_content=dns\">Save yourself time and let WP Rocket do the job for you<\/a>: WP Rocket will automatically apply 80% of web performance best practices.<\/p><p>Hopefully, this guide helps you to learn to reduce DNS lookups in easy ways.<\/p><p><br><\/p>","protected":false},"excerpt":{"rendered":"<p>It\u2019s often overlooked, but you can speed up your WordPress page load times to appease almighty Google by reducing DNS lookups. Here\u2019s how to do it.<\/p>\n","protected":false},"author":236121,"featured_media":1067355,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"kia_subtitle":"","footnotes":""},"categories":[63],"tags":[],"class_list":["post-1067243","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-cache"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Reduce DNS Lookups to Speed Up Your WordPress Site<\/title>\n<meta name=\"description\" content=\"It\u2019s often overlooked, but you can speed up your WordPress page load times to appease almighty Google by reducing DNS lookups. Here\u2019s how to do it.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Reduce DNS Lookups to Speed Up Your WordPress Site\" \/>\n<meta property=\"og:description\" content=\"It\u2019s often overlooked, but you can speed up your WordPress page load times to appease almighty Google by reducing DNS lookups. Here\u2019s how to do it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Rocket\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-25T23:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-20T10:12:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-reduce-DNS-lookups.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"460\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jay Kang\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:site\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jay Kang\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"26 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/\"},\"author\":{\"name\":\"Jay Kang\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/ad93d959ec5c9574e61c3e1785b10a5e\"},\"headline\":\"How to Reduce DNS Lookups to Speed Up Your WordPress Site\",\"datePublished\":\"2022-04-25T23:00:00+00:00\",\"dateModified\":\"2022-09-20T10:12:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/\"},\"wordCount\":4449,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-reduce-DNS-lookups.png\",\"articleSection\":[\"Page speed and caching\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/\",\"url\":\"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/\",\"name\":\"How to Reduce DNS Lookups to Speed Up Your WordPress Site\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-reduce-DNS-lookups.png\",\"datePublished\":\"2022-04-25T23:00:00+00:00\",\"dateModified\":\"2022-09-20T10:12:00+00:00\",\"description\":\"It\u2019s often overlooked, but you can speed up your WordPress page load times to appease almighty Google by reducing DNS lookups. Here\u2019s how to do it.\",\"breadcrumb\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/#primaryimage\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-reduce-DNS-lookups.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-reduce-DNS-lookups.png\",\"width\":1100,\"height\":460,\"caption\":\"how to reduce DNS lookups\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wp-rocket.me\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Page speed and caching\",\"item\":\"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Reduce DNS Lookups to Speed Up Your WordPress Site\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wp-rocket.me\/#website\",\"url\":\"https:\/\/wp-rocket.me\/\",\"name\":\"WP Rocket\",\"description\":\"Plugin d&#039;optimisation de sites WordPress\",\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wp-rocket.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wp-rocket.me\/#organization\",\"name\":\"WP Rocket\",\"url\":\"https:\/\/wp-rocket.me\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"width\":150,\"height\":41,\"caption\":\"WP Rocket\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\",\"https:\/\/x.com\/wp_rocket\",\"https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/ad93d959ec5c9574e61c3e1785b10a5e\",\"name\":\"Jay Kang\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3c4d8b8cb46e4f5e6bf44c24c1d70443?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3c4d8b8cb46e4f5e6bf44c24c1d70443?s=96&d=mm&r=g\",\"caption\":\"Jay Kang\"},\"description\":\"I have seven years of experience writing and as an SEO expert. I'm more of an experimentalist than an expert. Performing tests, research, and questioning everything to understand it. I've been working remotely while traveling the world.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Reduce DNS Lookups to Speed Up Your WordPress Site","description":"It\u2019s often overlooked, but you can speed up your WordPress page load times to appease almighty Google by reducing DNS lookups. Here\u2019s how to do it.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/","og_locale":"en_US","og_type":"article","og_title":"How to Reduce DNS Lookups to Speed Up Your WordPress Site","og_description":"It\u2019s often overlooked, but you can speed up your WordPress page load times to appease almighty Google by reducing DNS lookups. Here\u2019s how to do it.","og_url":"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/","og_site_name":"WP Rocket","article_publisher":"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","article_published_time":"2022-04-25T23:00:00+00:00","article_modified_time":"2022-09-20T10:12:00+00:00","og_image":[{"width":1100,"height":460,"url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-reduce-DNS-lookups.png","type":"image\/png"}],"author":"Jay Kang","twitter_card":"summary_large_image","twitter_creator":"@wp_rocket","twitter_site":"@wp_rocket","twitter_misc":{"Written by":"Jay Kang","Est. reading time":"26 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/#article","isPartOf":{"@id":"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/"},"author":{"name":"Jay Kang","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/ad93d959ec5c9574e61c3e1785b10a5e"},"headline":"How to Reduce DNS Lookups to Speed Up Your WordPress Site","datePublished":"2022-04-25T23:00:00+00:00","dateModified":"2022-09-20T10:12:00+00:00","mainEntityOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/"},"wordCount":4449,"commentCount":2,"publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-reduce-DNS-lookups.png","articleSection":["Page speed and caching"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/","url":"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/","name":"How to Reduce DNS Lookups to Speed Up Your WordPress Site","isPartOf":{"@id":"https:\/\/wp-rocket.me\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/#primaryimage"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-reduce-DNS-lookups.png","datePublished":"2022-04-25T23:00:00+00:00","dateModified":"2022-09-20T10:12:00+00:00","description":"It\u2019s often overlooked, but you can speed up your WordPress page load times to appease almighty Google by reducing DNS lookups. Here\u2019s how to do it.","breadcrumb":{"@id":"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/#primaryimage","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-reduce-DNS-lookups.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/how-to-reduce-DNS-lookups.png","width":1100,"height":460,"caption":"how to reduce DNS lookups"},{"@type":"BreadcrumbList","@id":"https:\/\/wp-rocket.me\/blog\/how-to-reduce-dns-lookups-to-speed-up-your-wordpress-site\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wp-rocket.me"},{"@type":"ListItem","position":2,"name":"Page speed and caching","item":"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/"},{"@type":"ListItem","position":3,"name":"How to Reduce DNS Lookups to Speed Up Your WordPress Site"}]},{"@type":"WebSite","@id":"https:\/\/wp-rocket.me\/#website","url":"https:\/\/wp-rocket.me\/","name":"WP Rocket","description":"Plugin d&#039;optimisation de sites WordPress","publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wp-rocket.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wp-rocket.me\/#organization","name":"WP Rocket","url":"https:\/\/wp-rocket.me\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","width":150,"height":41,"caption":"WP Rocket"},"image":{"@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","https:\/\/x.com\/wp_rocket","https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q"]},{"@type":"Person","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/ad93d959ec5c9574e61c3e1785b10a5e","name":"Jay Kang","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3c4d8b8cb46e4f5e6bf44c24c1d70443?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3c4d8b8cb46e4f5e6bf44c24c1d70443?s=96&d=mm&r=g","caption":"Jay Kang"},"description":"I have seven years of experience writing and as an SEO expert. I'm more of an experimentalist than an expert. Performing tests, research, and questioning everything to understand it. I've been working remotely while traveling the world."}]}},"_links":{"self":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/1067243"}],"collection":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/users\/236121"}],"replies":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/comments?post=1067243"}],"version-history":[{"count":0,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/1067243\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media\/1067355"}],"wp:attachment":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media?parent=1067243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/categories?post=1067243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/tags?post=1067243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}