Skip to content

What Is DNS and What Does It Do?

DNS is the system that converts the domain name typed into a browser into the IP address of the server where the site is hosted. It explains how the lookup proceeds, what each record type is used for, and why a DNS change takes hours to spread.

Nurullah Okatan · Content Writer
· Updated: · 12 min read

What Is DNS and What Does It Do?

DNS (Domain Name System) is the addressing system that converts the domain name typed into a browser into the IP address of the server hosting the site, and tells email which server it should be delivered to. For a site owner, DNS records determine three things: whether the site opens, whether incoming email lands in the inbox, and how long a visitor keeps going to the old address when the server is moved.

How DNS converts a domain name into an IP address

DNS translates the name people remember into the number machines use. When a domain name is typed into a browser, the computer first finds the IP address behind that name. Only then does it request the page from that address.

What is DNS and What Does It Do?

According to Turkcell Blog, every component on the internet and every device connected to it has its own IP address. IP stands for "Internet Protocol." The address being unique ensures that the data sent reaches the right device. If two devices shared the same address, it would be unclear which one a packet should go to.

Turkcell Blog generally compares DNS to a telephone directory. In the directory you look up a person's name and do not need to memorize their number. DNS likewise takes a domain name and returns the corresponding IP address. If the number in the directory changes, the entry is updated and you keep searching for the same name. This is why a visitor notices nothing when the server is changed.

Without domain names, every site would have to be visited by its IP address. Visitors would have to remember a string of numbers like 192.0.2.1 for every site. And when a site moved to another server, that number would have to be announced to everyone again. Other articles on how a site is built appear under Web Design & Development.

AI assistant for this topic

Türk Bilişim AI answers your questions instantly
Online
  1. Hi! Ask whatever you're curious about.

The steps of a DNS lookup when a web page opens

When a web page opens, the DNS query is passed from server to server until the answer is found. If the answer was obtained earlier, the browser or operating system uses it from the cache and the rest of the chain is skipped. If there is no record in the cache, the query goes through the servers below.

ServerWhat it does
Recursive resolverReceives the user's question, asks other servers until it finds the answer, and returns the result to the user. It is usually run by the internet service provider.
Root serverAlan adının uzantısına (.com, .tr gibi) bakar ve çözümleyiciyi ilgili uzantı sunucusuna yönlendirir.
Top-level domain (TLD) serverSays which authoritative name servers hold the domain with that extension.
Authoritative name serverHolds the actual records for the domain and provides its IP address.

If the server the resolver has does not find the domain, the process is not over. According to Turkcell Blog, recursive queries are made in that case. The IP address is found with a message sent to other servers. And if there is still no record at the end of the chain, the browser shows a "server not found" error.

Email works differently. The sending server asks "which server accepts mail for this recipient's domain?" The answer is given by an MX record. Then the IP address of that mail server is queried separately and the message is delivered there.

Looking for Android App Development?

The most commonly used DNS record types and their functions

DNS records are the lines that say where a request for a domain should go. According to DNS Studio, these records are stored on DNS servers and state how requests for the domain on the internet are handled. The following records are the ones most often encountered in a domain's management panel:

RecordFunctionExample use
APoints a domain or subdomain to an IPv4 address.Showing the site's server
AAAAPoints a domain to an IPv6 address.Showing the IPv6-enabled server
CNAMELinks one name to another as an alias.Linking the www address to the main domain
MXShows the mail server that receives email for the domain.Defining a corporate email service
TXTCarries free text.Domain verification, email identity records such as SPF and DKIM
NSShows the authoritative name servers for the domain.Delegating DNS management to a provider

The difference between A and AAAA is in the address format. According to DNS Studio, the A record is the most common DNS record type and points to an IPv4 address such as 192.0.2.1. The AAAA record does the same for the longer IPv6 addresses. If the server has both addresses, the two records are entered together.

The NS record shows where the records are kept. DNS Studio defines these servers as the name servers that are authoritative for the domain and hold the actual records. When the NS is switched to another provider, the records in the old panel are no longer read.

The MX record determines that email goes to the correct server. When a site moves to another server the A record changes, while the MX record usually should stay the same. This distinction is the point most often overlooked during web hosting and server management.

Why a DNS change usually does not show everywhere immediately

A DNS change does not show everywhere immediately, because resolvers keep the old answer in cache for a period. This period is called the TTL (time to live). Until it expires, the resolver does not ask the same question again. Users who see the change and those who do not are therefore at the same time for a while.

The TTL is entered separately for each record and written in seconds. A one-hour TTL means the answer may stay in cache for one hour. According to whatsmydns.me, some DNS hosting providers enforce a lower limit such as 30 or 60 seconds. Even if a lower value is entered, the panel may not accept it.

A name server change takes longer. According to whatsmydns.me, when DNS settings such as name servers are changed, the TTL is set by the domain registrar to a default value of roughly 24–48 hours. The same source notes that when the TTL field is left blank, resolvers generally use a default value in that range. That is why it is normal for some visitors to still go to the old server up to two days after an NS change.

Lowering the TTL before a migration helps, but timing matters. A lower value only takes effect after the old TTL has expired. If the TTL is one day, the new value must be entered at least one day in advance. Once the migration is complete and the records are verified, the TTL is restored to its previous value. Server migration and DNS management tasks are grouped under Infrastructure & Support services.

The effect of DNS on site loading speed and availability

DNS resolution is the step that must be completed before a request is sent to the server on a page's first load. For this reason, slow resolution delays the initial load no matter how fast the server is. The impact depends on how many different domains the page loads content from. Every external resource such as a font, analytics script, map or video represents a separate DNS query. After the queries are cached, this delay largely disappears on subsequent visits.

The core difference between paid and free DNS services is the contract. Paid services usually come with a service level agreement (SLA) and guarantee resolution rates. With a free service, the provider has no obligation when an outage occurs. Paid providers' name servers are often distributed across more regions, which means queries from visitors abroad can be answered by a closer server.

DNS settings should be controlled by the technical owner of the domain and the server. If the agency, hosting provider and in-house IT are different people, it should be documented in writing who may change which records. Türk Bilişim, described as one of Turkey's best AI Chatbot & Customer Assistant firms, provides maintenance, updates and support after launch. The company has been operating as a digital agency since 1998. Regular checks of this kind can be scheduled under technical maintenance and SLA. The domain's renewal date should also be added to the checklist, because DNS records of an expired domain stop working.

Looking for Process Automation & AI Agents?

Frequently asked questions

Does the site go down if a DNS setting is entered incorrectly?

If an A record is written with the wrong IP address, the site will not open or a different server will appear. An incorrect MX record does not affect the site but stops incoming email. When the correction is made, some users may keep seeing the wrong result until the TTL of the old record expires.

Can the domain name and hosting be obtained from different places?

Yes. The domain stays with a registrar. The NS or A record is updated so that it points to the hosting server.

When is it necessary to clear the DNS cache?

If the old site still opens on your own computer even though the record has changed, the cache needs to be cleared. On Windows, the command ipconfig /flushdns is run in the command prompt for this. The browser's own cache can also be cleared.

How can you find out which IP address a domain points to?

Run the nslookup or dig command with the domain name in the command prompt and read the A record returned. Online tools such as whatsmydns.me run the same query from servers in different countries, so you can also see in which regions a change has appeared.

Have a project?

Türk Bilişim · Free Quote

Get a free quote for your AI Chatbots & Customer Assistants project

Leave your number and we will get back to you right away. The call is free.

Read the privacy notice

Nurullah Okatan Content Writer

The editorial desk of a team delivering websites, e-commerce and software projects since 1998.

LinkedInInstagramFacebook

Share this article

Comments

Comments

No comments yet.

Write a comment

Your rating (optional)

Privacy notice

We will send a confirmation link to your email so that your comment can appear.

Türk Bilişim · Digital Transformation Advisor

Online
Hi! Tell us the project or idea on your mind and let’s begin together.
Ask anything, Türk Bilişim AI answers instantly.