8.8.8.8, A DNS Number for Faster Browsing (2024)

InfoQ Homepage News 8.8.8.8, A DNS Number for Faster Browsing

Integrating AI into Hybrid Architectures with HPE Ezmeral (Webinar May 2nd)

This item injapanese

Dec 04, 20094min read

by

  • Abel Avram

Write for InfoQ

Feed your curiosity. Help 550k+ global senior developers each month stay ahead.Get in touch

Google is offering two DNS servers for public use, namely 8.8.8.8 and 8.8.4.4, in an attempt to further speed up browsing.

A DNS server is used to translate a web name, a literal identifier, into a numerical identifier used by the underlying network protocols. An average user needs hundreds of such translations to be done in a typical browsing day, according to Google. Many web pages are complex these days incorporating content from multiple domains, each domain being in need of a domain name resolution. The name resolution process - connecting to a DNS server, finding the numerical ID and returning the response – increases the browsing latency resulting sometimes in completely loading a page in seconds, even 11 seconds as this example shows.

Google finds this DNS latency unacceptable and has opened up two globally distributed DNS servers to public use hoping to improve browsing speed. They are trying to address three main issues:

  • Speed: Resolver-side cache misses are one of the primary contributors to sluggish DNS responses. Clever caching techniques can help increase the speed of these responses. Google Public DNS implements pre-fetching: before the TTL on a record expires, we refresh the record continuously, asynchronously and independently of user requests for a large number of popular domains. This allows Google Public DNS to serve many DNS requests in the round trip time it takes a packet to travel to our servers and back.
  • Security: DNS is vulnerable to spoofing attacks that can poison the cache of a name server and can route all its users to a malicious website. Until new protocols like DNSSEC get widely adopted, resolvers need to take additional measures to keep their caches secure. Google Public DNS makes it more difficult for attackers to spoof valid responses by randomizing the case of query names and including additional data in its DNS messages.
  • Validity: Google Public DNS complies with the DNS standards and gives the user the exact response his or her computer expects without performing any blocking, filtering, or redirection that may hamper a user's browsing experience.

Google says their DNS servers are better because they are

  • Provisioning servers adequately to handle the load from client traffic, including malicious traffic.
  • Preventing DoS and amplification attacks. Although this is mostly a security issue, and affects closed resolvers less than open ones, preventing DoS attacks also has a benefit for performance by eliminating the extra traffic burden placed on DNS servers. For information on the approaches we are using to minimize the chance of attacks, see the page on security benefits.
  • Load-balancing for shared caching, to improve the aggregated cache hit rate across the serving cluster.
  • Pre-fetching name resolutions, to overcome the limits of conventional, passive caching and aim to serve the majority of requests out of cache. We are experimenting with a DNS pre-fetching technique which we think offers a significant opportunity for DNS speed-up. Below, we give an overview of the benefits, limitations, and challenges in implementing pre-fetching, and how we hope to meet those challenges with additional techniques such as traffic prioritization and cache partitioning.
  • Providing global coverage for proximity to all users.

On a similar but different note, Google has unveiled how Chrome deals with name resolution to increase browsing speed even more. Jim Roskind, a Chrome Software Engineer, gave some tips:

  • When a page is loaded, Chrome analyzes all links and gets the IPs in advance by asking the operating system to resolve the names. When the operating system has done that, the response is thrown away because the response is now in OS’ cache. So, when an user clicks on a link, the browser will ask for the corresponding IP and that will be returned from the cache without having to resolve it again.
  • Another solution is to monitor the mouse. When an user wants to click on a link, it takes him some 200ms to hover over the link and actually click it. In this time, Chrome tries to get the link’s IP.
  • Another solution implemented in Chrome is to keep a long lasting cache of previous resolved names, so when the user revisits a particular page, Chrome already has a list of IPs prepared to be used.
  • Chrome asks the operating system to solve the home’s page IP before the browser is loaded by the OS. When the browser’s loading is finished, the home page can be quickly loaded because its IP is already saved in OS’ cache. This shaves down 250-500 ms from the start-up time.

For the future: some 1-2% of the TCP/IP packets are lost in transmission and the TCP/IP stack has a 3 seconds time-out on Windows after which it starts resending it. When the first packet is lost, the user waits expecting for the page to be load, but the target website hasn’t actually been contacted. 3 seconds is way too much for Google, so they will implement a mechanism in Chrome to either resend a TCP/IP packet which was not answered or to open up a new connection when the server does not answer in a reasonable time.

This content is in the Chrome OS topic

Related Topics:
  • Development
  • DevOps
  • Chrome
  • Web Browser
  • Web Development
  • Google
  • Chrome OS
  • Internet
  • Operating Systems
  • Infrastructure
  • Architecture
  • Related Editorial

      • Related Sponsored Content

      • Kubernetes Cookbook: Building cloud native applications (By O'Reilly)
    • Related Sponsor

      Your cloud, simplified. DoiT delivers technology and cloud expertise to buy, optimize and manage AWS, Google Cloud, and Microsoft Azure with ease. Learn More.

    The InfoQ Newsletter

    A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example

    We protect your privacy.

    8.8.8.8, A DNS Number for Faster Browsing (2024)

    FAQs

    Does using Google's DNS 8.8 8.8 make my internet faster? ›

    Though there's no guarantee Google DNS works faster, the answer is likely yes. One user did a speed test and changed their DNS settings. They found that the Google domain name system server set to 8.8.8.8—Google's first DNS server—was 10.3% faster than the default server.

    What does using 8.8.8.8 for DNS do? ›

    In 2009, Google provided two easy-to-remember public DNS servers (8.8. 8.8 and 8.8. 4.4). The company aims to make the Internet and the DNS system faster, safer, more secure, and more reliable for all Internet users.

    What DNS should I use for faster internet? ›

    What are the best DNS servers to use?
    • Cloudflare. Primary DNS (preferred DNS): 1.1.1.1. ...
    • Google Public DNS. Primary DNS (preferred DNS): 8.8.8.8. ...
    • Quad9. Primary DNS (preferred DNS): 208.67.222.222. ...
    • NextDNS. Primary DNS (preferred DNS): 45.90.28.190. ...
    • NordVPN. Primary DNS (preferred DNS): 103.86.96.100.
    Jan 15, 2024

    What is the fastest response DNS? ›

    Cloudflare's 1.1. 1.1 DNS service has been ranked as the fastest DNS resolver globally by the independent DNS monitor DNSPerf. Cloudflare's network extends to 310 cities worldwide, enabling quick DNS response times for users globally, hence recommended for excellent speed and stability.

    Is 1.1 1.1 or 8.8 8.8 faster? ›

    While Google's 8.8.8.8 DNS server is more popular, according to DNSPerf, Cloudflare's 1.1.1.1 DNS server is faster. In addition, the 1.1.1.1 DNS server does not store user data, offering more privacy.

    Is 1.1 1.1 still the fastest DNS? ›

    The independent DNS monitor DNSPerf ranks 1.1. 1.1 the fastest DNS service in the world. Since nearly everything you do on the Internet starts with a DNS request, choosing the fastest DNS directory across all your devices will accelerate almost everything you do online.

    Can I use 1.1 1.1 and 8.8 8.8 at the same time? ›

    For example, you can use 1.1. 1.1 for the first server and 8.8. 8.8 for the second one.

    Should I change DNS on my router? ›

    Switching to a third-party DNS service can both speed up your internet activity and protect against tricky DNS-based attacks.

    What happens if I change my DNS server? ›

    Changing the default DNS settings on your computer can improve your online privacy, security, and browsing speed. If you're a parent, changing your DNS server can also block your children from seeing any inappropriate content. Plus, changing your DNS will allow you to access content that is blocked in your country.

    How do I change my DNS to make my WiFi faster? ›

    Best DNS servers you can try
    1. OpenDNS.
    2. Google.
    3. Cloudflare.
    4. Quad9.
    5. Open System Preferences, then select Network. Click on the Advanced button.
    6. Next, go to the DNS tab.
    7. Click the plus (+) sign on this tab, then type your preferred DNS server address.
    8. Press OK, and you're set!
    Sep 22, 2021

    What are the correct DNS settings for my network? ›

    Open the Command Prompt. Type ipconfig /all and press Enter. Look for the DNS Servers entry to check your DNS settings and verify that they are correct. If you don't see the correct DNS servers, double check your DNS settings in the Network and Sharing Center.

    How to get faster internet speed? ›

    Steps to improve your internet speed:
    1. Move your router.
    2. Power cycle your equipment.
    3. Secure your WiFi.
    4. Upgrade to faster internet.
    5. Use the latest WiFi technologies.
    6. Replace your equipment.
    7. Update your firmware.
    8. Get a WiFi extender.
    Dec 8, 2023

    What is the fastest root server? ›

    F-Root is now the fastest for roughly one quarter of the countries we tested from. See the below table to see how many countries experience a given root server as the fastest. Figure 7: F-Root is now the fastest for roughly one quarter of the countries we tested from, the most out of all the root servers.

    How to fix slow DNS? ›

    Best practices for ensuring good DNS performance include using providers that support CDN, considering the use of self-managed DNS, increasing DNS TTL parameters, and using CNAME flattening or DNS prefetch. A combination of these approaches can help eliminate slow DNS problems and help improve your bottom line.

    Does Google DNS increase speed? ›

    DNS itself is unlikely to directly affect your download or upload speeds.

    Does Google DNS affect internet speed? ›

    Although DNS is not directly related to your Internet speed, it can influence how fast an individual webpage appears on your computer.

    Can DNS improve internet speed? ›

    One of the things that can make a big difference in your internet speed is this thing called DNS. Basically, it's what makes your computer understand website names. So, if you tweak your DNS settings, you could really improve how fast your internet is and how easy it is to browse.

    Does Google DNS slow down the Internet? ›

    In some cases, for ISP-based resolvers as well as public resolvers such as Google Public DNS, the resolver may not be in close proximity to the users. In such cases, the browsing experience could be slowed down somewhat. Google Public DNS is no different from other DNS providers in this respect.

    Top Articles
    Latest Posts
    Article information

    Author: Terence Hammes MD

    Last Updated:

    Views: 6126

    Rating: 4.9 / 5 (49 voted)

    Reviews: 80% of readers found this page helpful

    Author information

    Name: Terence Hammes MD

    Birthday: 1992-04-11

    Address: Suite 408 9446 Mercy Mews, West Roxie, CT 04904

    Phone: +50312511349175

    Job: Product Consulting Liaison

    Hobby: Jogging, Motor sports, Nordic skating, Jigsaw puzzles, Bird watching, Nordic skating, Sculpting

    Introduction: My name is Terence Hammes MD, I am a inexpensive, energetic, jolly, faithful, cheerful, proud, rich person who loves writing and wants to share my knowledge and understanding with you.