What is a “Domain Name Server” and how does it work?

What is a “Domain Name Server” and how does it work?

Question:
What is a “Domain Name Server” and how does it work?

Answer:
The domain name server is a server application that provides a cross-reference or mapping service between symbolic names and their respective IP addresses. DNS is an application layer (layer 7) protocol under OSI’s seven-layer model.

Let us consider the following scenario: User “John” wants to reach the host “maniac.synapse.com”. For discussion purposes, let’s assume that the IP address of “maniac” is 130.200.200.23.John only knows the host as “maniac.syanpse.com”; he does not know the IP address. How can he successfully connect to “maniac”? Here is where DNS comes into the picture.

There are two ways to provide a mapping service between symbolic host names and actual IP addresses. The first is to have each host resolve symbolic names locally. Therefore, each host must maintain a table that provides the mapping between names and addresses. This technique can be termed “flat namespace” and will work well in small network situations.

For large networks and the Internet itself, the flat namespace method simply breaks down. Imagine every host on the Internet having a table that contains the address resolution information for every other host! What’s worse is when a new host is added, all the tables have to be changed!

Enter the Domain Name System. Rather than having a flat namespace, we now are introduced to a “distributed namespace.” Distributed namespace means is that hosts are grouped into domains or zones. In each one of these domains, name resolution is handled by a server(s). This server maintains a name to address mapping tables only for the zone or domain for which it is responsible. The domains can now be logically grouped and interconnected in a hierarchical tree fashion.


Hierarchical Tree Structure of Domains

In the above diagram, the branch to “maniac”, when traced upward, reveals the symbolic host name, i.e. “maniac.synapse.com”.

Typically, a DNS server under the “Synapse” branch provides the name resolution for all local hosts. Let’s suppose that a user under the “Synapse” domain wants to connect to the host “Maniac”. The DNS query will be initiated by the user and answered within the domain by the DNS server.

Now let’s imagine that a user under the “Edu” domain is looking for “maniac.synapse.com”. In this scenario, the DNS request is forwarded by the name-resolver under the user’s local domain upward via the branches of the tree until the “Com” branch is reached. Then the request descends via the “Synapse” and eventually to the DNS server, say “dns1.synapse.com”. The server “dns1” contains the IP address for “maniac” and will reply to the user’s query.

The name resolution process itself can be described as follows:

  1. The user generates a DNS query; for instance, “Where is maniac.synapse.com”
  2. The local name server (the DNS server’s address is known to the user under static IP configuration or is provided in the course of DHCP or dynamic host configuration protocol, which assigns an IP address to the user) will first consult its cache in an attempt to resolve the name. How long a record remains in the DNS server’s memory cache is dependent on the TTL (time to live) parameter.
  3. If the DNS server finds the mapping in its own cache, it answers the user’s query with the IP address information; in this example, the address for “maniac”.
  4. If it does not find the mapping in its cache, the DNS server will reference one or more name server addresses that it maintains, in an attempt to consult them for the right answer.

The DNS server will then query the name server(s) for the mapping information until an authoritative answer is found. If not, a “name not found” message is delivered to the user.

devx-admin

devx-admin

Share the Post:
AI Girlfriend Craze

AI Girlfriend Craze Threatens Relationships

The surge in virtual AI girlfriends’ popularity is playing a role in the escalating issue of loneliness among young males, and this could have serious

AIOps Innovations

Senser is Changing AIOps

Senser, an AIOps platform based in Tel Aviv, has introduced its groundbreaking AI-powered observability solution to support developers and operations teams in promptly pinpointing the

Malyasian Networks

Malaysia’s Dual 5G Network Growth

On Wednesday, Malaysia’s Prime Minister Anwar Ibrahim announced the country’s plan to implement a dual 5G network strategy. This move is designed to achieve a

Advanced Drones Race

Pentagon’s Bold Race for Advanced Drones

The Pentagon has recently unveiled its ambitious strategy to acquire thousands of sophisticated drones within the next two years. This decision comes in response to

Important Updates

You Need to See the New Microsoft Updates

Microsoft has recently announced a series of new features and updates across their applications, including Outlook, Microsoft Teams, and SharePoint. These new developments are centered

AI Girlfriend Craze

AI Girlfriend Craze Threatens Relationships

The surge in virtual AI girlfriends’ popularity is playing a role in the escalating issue of loneliness among young males, and this could have serious repercussions for America’s future. A

AIOps Innovations

Senser is Changing AIOps

Senser, an AIOps platform based in Tel Aviv, has introduced its groundbreaking AI-powered observability solution to support developers and operations teams in promptly pinpointing the root causes of service disruptions

Bebop Charging Stations

Check Out The New Bebob Battery Charging Stations

Bebob has introduced new 4- and 8-channel battery charging stations primarily aimed at rental companies, providing a convenient solution for clients with a large quantity of batteries. These wall-mountable and

Malyasian Networks

Malaysia’s Dual 5G Network Growth

On Wednesday, Malaysia’s Prime Minister Anwar Ibrahim announced the country’s plan to implement a dual 5G network strategy. This move is designed to achieve a more equitable incorporation of both

Advanced Drones Race

Pentagon’s Bold Race for Advanced Drones

The Pentagon has recently unveiled its ambitious strategy to acquire thousands of sophisticated drones within the next two years. This decision comes in response to Russia’s rapid utilization of airborne

Important Updates

You Need to See the New Microsoft Updates

Microsoft has recently announced a series of new features and updates across their applications, including Outlook, Microsoft Teams, and SharePoint. These new developments are centered around improving user experience, streamlining

Price Wars

Inside Hyundai and Kia’s Price Wars

South Korean automakers Hyundai and Kia are cutting the prices on a number of their electric vehicles (EVs) in response to growing price competition within the South Korean market. Many

Solar Frenzy Surprises

Solar Subsidy in Germany Causes Frenzy

In a shocking turn of events, the German national KfW bank was forced to discontinue its home solar power subsidy program for charging electric vehicles (EVs) after just one day,

Electric Spare

Electric Cars Ditch Spare Tires for Efficiency

Ira Newlander from West Los Angeles is thinking about trading in his old Ford Explorer for a contemporary hybrid or electric vehicle. However, he has observed that the majority of

Solar Geoengineering Impacts

Unraveling Solar Geoengineering’s Hidden Impacts

As we continue to face the repercussions of climate change, scientists and experts seek innovative ways to mitigate its impacts. Solar geoengineering (SG), a technique involving the distribution of aerosols

Razer Discount

Unbelievable Razer Blade 17 Discount

On September 24, 2023, it was reported that Razer, a popular brand in the premium gaming laptop industry, is offering an exceptional deal on their Razer Blade 17 model. Typically

Innovation Ignition

New Fintech Innovation Ignites Change

The fintech sector continues to attract substantial interest, as demonstrated by a dedicated fintech stage at a recent event featuring panel discussions and informal conversations with industry professionals. The gathering,

Import Easing

Easing Import Rules for Big Tech

India has chosen to ease its proposed restrictions on imports of laptops, tablets, and other IT hardware, allowing manufacturers like Apple Inc., HP Inc., and Dell Technologies Inc. more time

Semiconductor Stock Plummet

Dramatic Downturn in Semiconductor Stocks Looms

Recent events show that the S&P Semiconductors Select Industry Index seems to be experiencing a downturn, which could result in a decline in semiconductor stocks. Known as a key indicator

Anthropic Investment

Amazon’s Bold Anthropic Investment

On Monday, Amazon announced its plan to invest up to $4 billion in the AI firm Anthropic, acquiring a minority stake in the process. This decision demonstrates Amazon’s commitment to

AI Experts Get Hired

Tech Industry Rehiring Wave: AI Experts Wanted

A few months ago, Big Tech companies were downsizing their workforce, but currently, many are considering rehiring some of these employees, especially in popular fields such as artificial intelligence. The

Lagos Migration

Middle-Class Migration: Undermining Democracy?

As the middle class in Lagos, Nigeria, increasingly migrates to private communities, a PhD scholar from a leading technology institute has been investigating the impact of this development on democratic

AI Software Development

ChatGPT is Now Making Video Games

Pietro Schirano’s foray into using ChatGPT, an AI tool for programming, has opened up new vistas in game and software development. As design lead at business finance firm Brex, Schirano

Llama Codebot

Developers! Here’s Your Chatbot

Meta Platforms has recently unveiled Code Llama, a free chatbot designed to aid developers in crafting coding scripts. This large language model (LLM), developed using Meta’s Llama 2 model, serves

Tech Layoffs

Unraveling the Tech Sector’s Historic Job Losses

Throughout 2023, the tech sector has experienced a record-breaking number of job losses, impacting tens of thousands of workers across various companies, including well-established corporations and emerging startups in areas

Chinese 5G Limitation

Germany Considers Limiting Chinese 5G Tech

A recent report has put forth the possibility that Germany’s Federal Ministry of the Interior and Community may consider limiting the use of Chinese 5G technology by local network providers

Modern Warfare

The Barak Tank is Transforming Modern Warfare

The Barak tank is a groundbreaking addition to the Israeli Defense Forces’ arsenal, significantly enhancing their combat capabilities. This AI-powered military vehicle is expected to transform the way modern warfare

AI Cheating Growth

AI Plagiarism Challenges Shake Academic Integrity

As generative AI technologies like ChatGPT become increasingly prevalent among students and raise concerns about widespread cheating, prominent universities have halted their use of AI detection software, such as Turnitin’s