DNS and DHCP MCQ Test: Networking Services Simplified

Questions: 30

Questions
  • 1. What does DNS stand for?

    • a) Domain Network Service
    • b) Domain Name System
    • c) Digital Network System
    • d) Distributed Name System
  • 2. Which of the following is the primary function of DNS?

    • a) To assign IP addresses to devices
    • b) To resolve domain names to IP addresses
    • c) To secure network traffic
    • d) To manage network traffic
  • 3. What is the role of a DNS resolver?

    • a) To store IP addresses for quick access
    • b) To send requests to authoritative DNS servers
    • c) To block harmful websites
    • d) To route domain names to DNS servers
  • 4. Which DNS record type maps a domain name to an IPv4 address?

    • a) A record
    • b) AAAA record
    • c) MX record
    • d) CNAME record
  • 5. What does the "MX" record in DNS represent?

    • a) Mail Exchange record
    • b) Master Exchange record
    • c) Multiple Extension record
    • d) Media Exchange record
  • 6. What type of DNS record is used to associate a domain name with an IPv6 address?

    • a) A record
    • b) AAAA record
    • c) CNAME record
    • d) PTR record
  • 7. Which protocol does DNS primarily use for communication?

    • a) TCP
    • b) UDP
    • c) HTTP
    • d) FTP
  • 8. What is a DNS cache used for?

    • a) To store domain names for future queries
    • b) To block unwanted traffic
    • c) To encrypt DNS queries
    • d) To filter IP addresses
  • 9. What is the purpose of a DNS server?

    • a) To store and manage the domain name database
    • b) To monitor network security
    • c) To route data packets between networks
    • d) To perform encryption
  • 10. Which type of DNS query is made when a user directly requests an IP address for a domain?

    • a) Iterative query
    • b) Recursive query
    • c) Non-recursive query
    • d) Forward lookup
  • 11. Which of the following is a DHCP message type that is sent by a client to request an IP address from a DHCP server?

    • a) DHCP Discover
    • b) DHCP Offer
    • c) DHCP Request
    • d) DHCP Acknowledge
  • 12. What is the purpose of DHCP relay agents?

    • a) To relay DHCP messages between clients and servers
    • b) To route traffic between different subnets
    • c) To block unauthorized IP address assignments
    • d) To handle DNS queries
  • 13. What is a DHCP scope?

    • a) A set of available IP addresses that a DHCP server can assign
    • b) A list of DHCP servers in the network
    • c) A method for encrypting DHCP traffic
    • d) A technique for segmenting the network
  • 14. What happens when a DHCP server cannot assign an IP address due to a lack of available addresses?

    • a) The client receives a default IP address
    • b) The client will be assigned a private IP address
    • c) The client cannot access the network
    • d) The DHCP server will continue to attempt to assign an address
  • 15. What is the purpose of a DHCP Reservation?

    • a) To ensure a specific device always receives the same IP address
    • b) To assign a temporary IP address to devices
    • c) To restrict access to a network based on IP address
    • d) To automatically configure DNS settings
  • 16. What does the term "DNS poisoning" refer to?

    • a) Corrupting the DNS cache with incorrect IP address information
    • b) Encrypting DNS traffic
    • c) Filtering DNS queries to block malicious sites
    • d) Assigning incorrect IP addresses to devices
  • 17. Which of the following is an advantage of using DHCP over static IP assignment?

    • a) Reduces manual configuration and errors
    • b) Ensures greater security for network traffic
    • c) Requires less bandwidth for IP assignment
    • d) Assigns IP addresses faster
  • 18. What is the purpose of DNS recursion?

    • a) To search for the IP address associated with a domain name across multiple DNS servers
    • b) To filter malicious DNS queries
    • c) To monitor DNS traffic
    • d) To configure DNS settings on devices
  • 19. What is the primary function of a CNAME record in DNS?

    • a) To alias one domain name to another
    • b) To map a domain name to an IP address
    • c) To assign a specific mail server for a domain
    • d) To associate a domain name with an IPv6 address
  • 20. How can DNS security be enhanced to prevent DNS attacks?

    • a) By implementing DNSSEC (DNS Security Extensions)
    • b) By disabling DNS caching
    • c) By using static DNS records only
    • d) By restricting DNS queries to internal users only
  • 21. What is the main advantage of using DHCP over manual IP address configuration?

    • a) Simplifies network management by automating IP address allocation
    • b) Provides more security by assigning unique IP addresses
    • c) Reduces the chances of IP conflicts
    • d) Speeds up network traffic
  • 22. Which of the following tools is used for testing and troubleshooting DNS?

    • a) ipconfig
    • b) nslookup
    • c) ping
    • d) traceroute
  • 23. What type of DNS record is typically used for load balancing across multiple servers?

    • a) A record
    • b) CNAME record
    • c) MX record
    • d) SRV record
  • 24. What does a DNS TTL (Time to Live) value indicate?

    • a) The time duration for which DNS information is cached
    • b) The number of DNS servers in a query
    • c) The time it takes for DNS queries to be resolved
    • d) The priority level of a DNS record
  • 25. What happens when a DHCP lease expires?

    • a) The device loses its assigned IP address and must request a new one
    • b) The device retains the IP address until the server is reset
    • c) The device is automatically assigned a new static IP address
    • d) The device will continue using the same IP address without interruption
  • 26. What is an authoritative DNS server?

    • a) A server that provides the definitive answer to DNS queries for a domain
    • b) A server that filters unwanted DNS requests
    • c) A server that handles DNS caching
    • d) A server that blocks specific websites
  • 27. What is a key feature of Dynamic DNS (DDNS)?

    • a) It allows automatic updating of DNS records when IP addresses change
    • b) It prevents DNS caching
    • c) It improves DNS query performance
    • d) It resolves DNS errors automatically
  • 28. Which of the following best describes the role of a DHCP client?

    • a) To request an IP address from the DHCP server
    • b) To assign static IP addresses to devices
    • c) To filter DNS queries
    • d) To act as a DNS resolver
  • 29. How does a DNS resolver function in the context of a recursive query?

    • a) It queries multiple DNS servers until it gets an authoritative response
    • b) It stores DNS records locally for faster lookup
    • c) It sends requests to only local DNS servers
    • d) It filters DNS requests based on security rules
  • 30. What is the primary function of a DNS forwarder?

    • a) To send DNS queries to another DNS server for resolution
    • b) To block malicious DNS queries
    • c) To encrypt DNS queries
    • d) To perform DNS lookups locally

Ready to put your knowledge to the test? Take this exam and evaluate your understanding of the subject.

Start Exam