Mystery of DNS

Mystery of DNS

ยท

3 min read

Imagine, you type something in your browser in the form of chaicode.com.which will be easily understandable by a human because as a human we can remember names, Images, and audio very easily but not in the case of numbers we are not good at remembering them. Similarly, the computer or a browser/server is not capable of understanding human language like chaicode.com They only understand the number formatting. For that, we assign them an IP address. And for giving an appropriate IP address the DNS comes into the picture.



So, Now the question is What is DNS? ๐Ÿค”

The DNS stands for Domain Name System. It is like an address phonebook, which is very similar to your contacts on the phone. Whenever you type a particular website address(chaicode.com) in your browser, it will automatically call the right server address which is known as the IP address(192.231.11).



DNS Record Types

DNS records are instructions stored in a zone file that map domain names to specific information, ensuring proper routing of internet traffic. Here are the most common types of DNS records:

  1. A Record (Address Record)
    Maps a domain name to an IPv4 address, directing traffic to the correct server.
    Example: example.com โ†’ 192.168.1.1

  2. AAAA Record (IPv6 Address Record)
    Maps a domain name to an IPv6 address, supporting the modern IP addressing standard for a larger pool of addresses.
    Example: example.com โ†’ 2607:f0d0:1002:51::4

  3. CNAME Record (Canonical Name Record)
    Points one domain or subdomain to another domain (alias), simplifying DNS management.
    Example: blog.example.com โ†’ example.com

  4. MX Record (Mail Exchange Record)
    Specifies the mail server responsible for receiving emails for a domain.
    Example: example.com โ†’ mail.example.com

  5. TXT Record (Text Record)
    Stores arbitrary text data, often used for verification (e.g., SPF, DKIM) or additional metadata.
    Example: example.com โ†’ "v=spf1 include:example.com ~all"

  6. PTR Record (Pointer Record)
    Used for reverse DNS lookup, mapping an IP address back to a domain name.
    Example: 192.168.1.1 โ†’ example.com

  7. NS Record (Name Server Record)
    Identifies the authoritative name servers for a domain, directing queries to the correct DNS server.
    Example: example.com โ†’ ns1.example.com

  8. SOA Record (Start of Authority Record)
    Provides administrative information about a domain, including the primary name server and email of the administrator.
    Example: example.com โ†’ ns1.example.com, admin@example.com

  9. SRV Record (Service Record)
    Specifies the location of servers for specific services like SIP or LDAP.
    Example: _sip._tcp.example.com โ†’ sipserver.example.com

Why DNS is Important?๐Ÿค”๐Ÿค”

1. User-Friendly Navigation

DNS converts domain names into human-readable representations, removing the need to memorize complicated numerical IP addresses. Because of this, people can browse websites easily and intuitively.

2. Faster Browsing Experience

DNS servers expedite the loading of pages and guarantee a smooth surfing experience by rapidly locating the right IP address for a requested website.

3. Error-Free Access

DNS lowers the possibility of mistakes while inputting web addresses, saving time and preventing annoyance by automatically mapping domain names to their matching IP addresses.

4. Global Scalability

With millions of servers across the globe, DNS's decentralized architecture ensures efficiency and dependability while enabling the internet to expand and handle growing traffic without experiencing bottlenecks.

5. Enhanced Website Performance

DNS makes load balancing possible, which divides traffic across several servers to avoid overloading, speed up websites, and ensure steady dependability even during periods of high traffic.

ย