ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalITEC3125Dns
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    ITEC3125

    Cyber Security

    Progress0 / 39 done
    Topics39
    1Fundamental Concepts of Security2Types of Attacks3Social Engineering Attacks4Classification Traits of Malwares5Circulation6Infection7Concealment8Payload Capabilities
    9SQL Injection10Cross Site Scripting11Security Management & Cryptography
    12Cookies13DoS14Man in the Middle15Replay16Developing Security Policy17Deploy and Manage Security Settings18Security Through Design19Security Through Anti Malware20Fundamentals of Cryptography21OSI Reference Model22AES23Standard Network Devices24Network Security Hardware25Firewalls26Types of Firewalls27Spam Filters28Virtual Private Networks29Intrusion Detection and Prevention Study30DNS
    31Network Address Translation (NAT)32Network Access Control (NAC)33Network Protocols34TCP/IP
    35Wireless Network Attacks36Types of Attacks37Mobile Devices Security38Cloud Security Challenges and Solution39IoT Security Challenges
    8 min read
    Topic 30 of 39
    Topic Study Note Illustration
    30

    DNS

    The Domain Name System (DNS) is a fundamental component of the internet that translates human-readable domain names (like www.example.com ) into IP addresses (such as 192.0.2.1 )...

    Domain Name System (DNS): Overview, Functionality, and Security

    The Domain Name System (DNS) is a fundamental component of the internet that translates human-readable domain names (like www.example.com) into IP addresses (such as 192.0.2.1) that computers can understand. Without DNS, we would have to remember complex numerical IP addresses instead of simple domain names for websites, email services, and other internet-based resources. Essentially, DNS acts as the phonebook of the internet, allowing users to access websites by name rather than by numerical IP address.


    How DNS Works

    DNS operates in a client-server model where the client (usually a web browser or email client) sends a request to a DNS server to resolve a domain name into an IP address. The process of converting domain names to IP addresses is known as name resolution.

    Here is a simplified overview of the DNS resolution process:

    1. DNS Query Initiation:

      • When you type a domain name (e.g., www.example.com) into your browser, the browser first checks if it has a cached IP address for that domain from previous lookups.
      • If the IP address is not in the cache, the browser sends a query to a DNS resolver (typically provided by your ISP or a third-party DNS service).
    2. Recursive Query to Resolver:

      • The DNS resolver is responsible for querying other DNS servers to resolve the domain name to an IP address. The resolver may cache the result for future queries to improve speed and reduce load.
    3. Root DNS Server:

      • If the resolver doesn't have the requested IP address, it starts by querying one of the root DNS servers. Root DNS servers know where to find authoritative DNS servers for top-level domains (TLDs) like .com, .org, .edu, etc.
    4. TLD DNS Server:

      • The root server responds with a referral to the TLD DNS server for the domain's extension (e.g., .com for www.example.com).
    5. Authoritative DNS Server:

      • The TLD DNS server then points the resolver to the authoritative DNS server for the specific domain (e.g., example.com).
      • The authoritative DNS server is the final source of truth, as it contains the actual DNS records for the domain.
    6. Final Resolution:

      • The authoritative DNS server responds with the IP address for the domain (e.g., 192.0.2.1 for www.example.com).
    7. Caching and Return:

      • The resolver caches the IP address for a period of time (determined by the TTL, or Time-to-Live) to improve performance on future requests.
      • The DNS resolver sends the IP address back to the client (e.g., your browser), which can now use it to connect to the website's server.

    DNS Records

    DNS records store information about domain names and their associated resources. There are several types of DNS records, each serving a different function. Some of the most common DNS record types are:

    1. A Record (Address Record):

      • The most common record type, an A record maps a domain name to an IPv4 address.
      • Example: example.com -> 192.0.2.1
    2. AAAA Record (IPv6 Address Record):

      • Similar to the A record, the AAAA record maps a domain name to an IPv6 address.
      • Example: example.com -> 2001:0db8:85a3:0000:0000:8a2e:0370:7334
    3. CNAME Record (Canonical Name Record):

      • A CNAME record maps an alias domain name to the canonical (real) domain name. For example, www.example.com may be an alias for example.com.
      • Example: www.example.com -> example.com
    4. MX Record (Mail Exchange Record):

      • MX records specify the mail servers responsible for receiving email for a domain.
      • Example: example.com -> mail.example.com
    5. NS Record (Name Server Record):

      • NS records identify the authoritative name servers for a domain. These are used to delegate the responsibility of DNS resolution for the domain to other DNS servers.
      • Example: example.com -> ns1.example.com
    6. PTR Record (Pointer Record):

      • PTR records are used for reverse DNS lookups, where the IP address is mapped back to a domain name.
      • Example: 192.0.2.1 -> example.com
    7. TXT Record (Text Record):

      • TXT records are used to store arbitrary text, often used for verification or security purposes (e.g., SPF records for email security).
      • Example: example.com -> "v=spf1 include:_spf.google.com ~all"
    8. SRV Record (Service Record):

      • SRV records are used to define the location of specific services within a domain, such as a VoIP server or other application-specific service.
      • Example: _sip._tcp.example.com -> sipserver.example.com

    DNS Caching

    To improve performance and reduce the load on DNS servers, DNS responses are cached both by the DNS resolver and by the client device (e.g., browser). The Time-to-Live (TTL) for a DNS record determines how long it can be cached before it needs to be refreshed.

    • Resolver Cache: A DNS resolver caches DNS records from previous queries. When a new request is made for a domain, the resolver first checks its cache to see if it has a valid record.

    • Client Cache: Your web browser or operating system also maintains a DNS cache to store IP addresses of recently visited websites. This reduces the need for repeated DNS lookups when accessing the same site multiple times.


    DNS Security and Vulnerabilities

    While DNS is critical for the operation of the internet, it also has several potential security risks and vulnerabilities. These include:

    1. DNS Spoofing (Cache Poisoning):

      • DNS spoofing or cache poisoning is an attack where an attacker injects malicious DNS records into the cache of a DNS resolver. This can cause users to be directed to malicious websites, even if they type the correct domain name.
      • Example: An attacker could redirect users trying to visit example.com to a fake site that looks identical but is designed to steal their credentials.
    2. DNS Amplification Attacks:

      • A DNS amplification attack is a type of DDoS (Distributed Denial of Service) attack where an attacker exploits DNS servers to flood a target with a large volume of traffic. By sending small DNS queries with a fake IP address, the attacker can amplify the traffic sent to the victim.
    3. Man-in-the-Middle Attacks:

      • In a Man-in-the-Middle (MitM) attack, an attacker intercepts DNS queries and responses, potentially altering the IP address being returned or hijacking the communication to redirect users to malicious sites.
    4. DNS Hijacking:

      • In DNS hijacking, an attacker gains control over the DNS settings of a domain, often through compromising a registrar account. This allows them to change the DNS records and direct users to malicious servers.
      • It can also refer to the redirection of DNS queries by an attacker, preventing legitimate users from accessing the proper resources.

    DNS Security Best Practices

    To mitigate the security risks associated with DNS, several best practices can be implemented:

    1. DNSSEC (DNS Security Extensions):

      • DNSSEC adds a layer of security to DNS by using cryptographic signatures to verify the authenticity of DNS records. This helps protect against DNS spoofing and ensures that the DNS responses come from legitimate sources.
    2. Use Secure DNS Servers:

      • Instead of relying on your ISP's DNS servers, consider using reputable public DNS services (e.g., Google DNS, Cloudflare DNS, OpenDNS) that offer enhanced security features and performance.
    3. Enable DNS Query Logging:

      • Keeping logs of DNS queries and responses can help detect suspicious activities and identify potential attacks. This is especially important in enterprise environments.
    4. Limit Zone Transfers:

      • Zone transfers are used to replicate DNS records across multiple servers. Limiting who can perform these transfers can help prevent attackers from obtaining the full list of DNS records.
    5. Implement Split-Horizon DNS:

      • Split-Horizon DNS is the practice of using different DNS records based on the source of the request. For example, internal network users might receive different DNS responses than external users. This can help secure sensitive internal resources.
    6. Use Firewall Rules for DNS:

      • Configuring firewalls to restrict DNS traffic to trusted sources can help prevent DNS-related attacks, such as amplification attacks.

    Conclusion

    The Domain Name System (DNS) is a crucial part of the internet infrastructure, enabling the translation of domain names into IP addresses and facilitating seamless access to online resources. Understanding how DNS works and the potential security risks associated with it is important for safeguarding internet communications. By implementing DNS security best practices such as DNSSEC, secure DNS services, and monitoring DNS traffic, users and organizations can significantly reduce the risks of DNS-related attacks and ensure the integrity of their online experiences.

    ← Previous topic 29
    Intrusion Detection and Prevention Study
    Next topic 31 →
    Network Security: Network Address Translation (NAT)

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    8mremaining
    1.4kwords
    Intermediatelevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Cyber Security