SpyreStudios

Web Design and Development Magazine

  • Design
  • Showcase
  • Inspirational
  • Tutorials
  • CSS
  • Resources
  • Tools
  • UX
  • More
    • Mobile
    • Usability
    • HTML5
    • Business
    • Freebies
    • Giveaway
    • About SpyreStudios
    • Advertise On SpyreStudios
    • Get In Touch With Us

DNS 101: An Idiot’s Guide for Web Developers

July 29, 2020 by Christopher Jan Benitez

dns 101

As a web developer, you must know the ins and outs of building a website from scratch. Aside from knowing which CMS or web hosting to use, you also need to know how a web domain works and how it connects to your hosted website.

This may seem like a basic topic to discuss in the scheme of things. However, if you read this article through the end, you will learn the important role that Domain Name Service (DNS) plays in making your website more accessible online.

What is DNS?

Before talking about Domain Name Server, let’s talk about life without DNS.

Imagine you want to go to Google on your browser. Instead of typing out google.com on the URL bar, you need to enter http://216.58.192.164/ instead.

If you do that, you will head on to Google exactly like when you entered Google on your web browser.

Now, imagine if all websites are like that. You must memorize the numbers of all the websites you want to visit, which represent their respective IP addresses. It is a series of four numbers between 1 to 255, each of which is separated by a dot. You keep a handy list of these addresses so you don’t forget them.

Thanks to a DNS, things never reached that point. All you need to do ever since is type in the domain name attached to the IP address of the site to visit it.

There are unique ways or “records” you can use to connect a domain name to an IP address:

  • A record – points domain name address to an IP address.
  • CNAME record – points domain name to another domain name, This is commonly used to point the non-HTTPS version to the secure version.
  • TXT record – used to verify the owner of the domain.

You can set these records from your domain registrar.

Parts of a DNS

As mentioned, DNS facilitates the interaction between the hosted site and the domain name. However, how do website visitors come into play in relation to DMS?

how domains work

Source: WPBeginner

There are the three major components you need to know about DNS and server requests from web clients:

Domain namespace

It assumes the inverted tree structure with the root domain at the top. From here, you can see the different levels and subdomains branching off from the root domain. For example, just below the root domain is the top-level domain or TLD, referring to the domain extension, i.e. .com, .org, .net. The second-level domain, which is the domain name access to your site’s IP address, comes next, From here, you can create different subdomains under your chosen domain name, i.e. subdomain1.domain.com, subdomain2.domain.com, etc.

Resolvers

These draw out information from the nameserver according to the user request.

There are two types of resolvers in this case: the stub resolver and recursive resolver. The former is responsible for managing DNS queries coming from local computer applications.

Let’s say a user clicks on your page from the search results. The request will go through the stub resolver first.

The next step is for the stub resolver to pass along the request to the recursive resolvers, which serves as the middleman between the web client and nameservers. If the requested data by the query is cache, the resolvers will deliver the stored data to the web client of the user. Otherwise, it passes the request to the nameservers.

Nameservers

These contain the information about the domain namespace. You can set the details of your namespace.

Resolvers communicate the request to the TLD or authoritative nameservers. From here, resolvers will have to scour different physical servers since the data of your domain namespace is distributed across multiple servers.

The issue here gets worse if there are lots of requests coming in and out from different web clients. The stress put into not only the resolvers but also the servers will almost always result to the slow processing of requests.

Nonetheless, once the data is acquired from the nameserver, it passes it along to the resolvers and back to the web client.

DNS services

As mentioned, the risk of slow loading speed is prevalent in the exchange of information taking place in the DNS. More importantly, the process outlined above is not privacy-respecting. This means online threats can intercept the data passing through the resolvers, nameservers, and your device.

To keep your online activity fast and safe, there are different DNS services available for your choosing. Tools like Cloudflare, Rackspace, and Namecheap are some of the free and more popular ones in this space.

You can set each one up using the Control Panel from your web hosting provider. Each service may have instructions for installing it with the site, so be wary of this information.

For web client users, it’s also useful for them to use a DNS service that allows them to access the web in a secure and faster manner. Smart DNS servers also allow people to unblock geo-restricted content as part of the package.

Liked this article? Please share it by clicking on the button of your favorite social media site!

Related posts:

How to Make Sure Your Website is Secure for Users

Choosing the Right Platform to Manage Multiple Sites at Once

Filed Under: Development Tagged With: web development

Recent Posts

  • What Factors Determine the Best Digital Marketing Agency?
  • 31 Fresh Design Elements for Spring and Easter
  • 10 Templates for Music Concert Flyers
  • How to Build a Web Scraper Using Node.js
  • Best PHP Books, Courses and Tutorials in 2022

Archives

  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • May 2008
  • April 2008

Categories

  • Accessibility
  • Android
  • Apps
  • Art
  • Article
  • Blogging
  • Books
  • Bootstrap
  • Business
  • CSS
  • Design
  • Development
  • Ecommerce
  • Fireworks
  • Flash
  • Freebies
  • Freelance
  • General
  • Giveaway
  • Graphic Design
  • HTML5
  • Icons
  • Illustrator
  • InDesign
  • Infographics
  • Inspirational
  • Interview
  • Jobs
  • jQuery
  • Learning
  • Logos
  • Matrix
  • Minimalism
  • Mobile
  • Motion Graphics
  • Music
  • News
  • Photoshop
  • PHP
  • Promoted
  • Rails
  • Resources
  • Showcase
  • Tools
  • Tutorial
  • Twitter
  • Typography
  • Uncategorized
  • Usability
  • UX
  • Wallpapers
  • Wireframing
  • WordPress
  • Work

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

SpyreStudios © 2022