DHCP vs DNS: What They Do and How They Work Together (CompTIA A+ Guide)

If you’re studying for the CompTIA A+ exam, understanding the difference between DHCP and DNS is non-negotiable. These two protocols are the invisible backbone of every network you’ll ever troubleshoot — and the exam (codes 220-1101 and 220-1102) absolutely tests your ability to tell them apart, explain what each one does, and diagnose problems when either one fails. Let’s break this down so it actually sticks.

What Is DHCP and Why Does It Matter?

Dynamic Host Configuration Protocol (DHCP) is the service responsible for automatically assigning IP addresses and network configuration details to devices on a network. Without DHCP, every device would need a manually configured IP address — imagine doing that for hundreds of laptops in a school or office. DHCP eliminates that headache entirely.

When a device connects to a network, it broadcasts a request asking for configuration. The DHCP server responds with a lease — a temporary assignment of an IP address along with:

  • Subnet mask — defines the network segment the device belongs to
  • Default gateway — the router address used to reach other networks and the internet
  • DNS server addresses — tells the device where to send name resolution requests
  • Lease duration — how long the device can keep that IP address before renewing

This four-step process is called DORA: Discover, Offer, Request, Acknowledge. The exam loves to test this sequence, so know it cold.

DHCP Troubleshooting Scenarios the Exam Tests

When DHCP fails, devices typically fall back to an APIPA address — an automatic private IP address in the range 169.254.0.0/16. If you ever see an IP address starting with 169.254, that’s your first clue: the device couldn’t reach the DHCP server. This is a classic CompTIA A+ troubleshooting scenario. The fix usually involves checking physical connectivity, restarting the DHCP service, or verifying that the DHCP scope hasn’t run out of available addresses.

What Is DNS and Why Does It Matter?

Domain Name System (DNS) is the protocol that translates human-readable domain names — like certcy.app — into the IP addresses that computers actually use to communicate. Without DNS, you’d have to memorize numerical IP addresses for every website you visit. DNS is often described as the “phone book of the internet,” and while that analogy is a little dated, it captures the idea perfectly.

Here’s what happens when you type a web address into your browser:

  1. Your device checks its local DNS cache first
  2. If not cached, it queries the DNS server provided by DHCP
  3. The DNS server looks up the domain name and returns the corresponding IP address
  4. Your device connects to that IP address directly

DNS operates on port 53, using both UDP (for standard queries) and TCP (for larger transfers like zone transfers). The exam expects you to know this port number.

Common DNS Record Types to Know

The CompTIA A+ exam doesn’t go as deep into DNS records as the Network+ does, but you should understand the basics:

  • A record — maps a hostname to an IPv4 address
  • AAAA record — maps a hostname to an IPv6 address
  • CNAME record — creates an alias from one domain name to another
  • MX record — directs email traffic to the correct mail server

DHCP vs DNS: The Key Differences

Here’s where a lot of students get tripped up — DHCP and DNS solve completely different problems, but they work together as part of the same networking workflow. Think of it this way:

  • DHCP gives your device an identity on the network (an IP address and configuration)
  • DNS helps your device find other devices by name (translates names to IP addresses)

The critical connection between them: DHCP tells your device which DNS server to use. So if DHCP is broken, your device doesn’t just lose its IP — it may also lose the ability to resolve domain names, because it never received the DNS server address in the first place. That’s why a single DHCP failure can look like both a connectivity problem and a name resolution problem simultaneously.

Real-World Scenario: “I Can’t Get to the Internet”

A user calls you saying they can’t access any websites. Here’s how you diagnose it systematically:

  1. Check the IP address — if it’s 169.254.x.x, DHCP has failed. Fix DHCP first.
  2. If the IP looks normal, try pinging a known IP address (like 8.8.8.8, Google’s DNS server)
  3. If the ping to 8.8.8.8 works but websites don’t load, the problem is DNS, not connectivity
  4. Try pinging a domain name — if that fails but the IP ping works, DNS is the culprit

This step-by-step thinking is exactly what the A+ exam rewards. It’s not enough to know what these protocols are — you need to know how to isolate which one is failing.

Test Your Knowledge

Try these practice questions before your next study session:

Question 1: A technician notices that a workstation has been assigned the IP address 169.254.45.12. Which of the following is the most likely cause?

  • A. The DNS server is offline
  • B. The DHCP server did not respond to the client’s request
  • C. The default gateway is misconfigured
  • D. The subnet mask is incorrect

Answer: B. An address in the 169.254.0.0/16 range is an APIPA address, automatically assigned when a device cannot reach a DHCP server. This is the first thing to check when you see that address range on a Windows machine.

Question 2: A user can successfully ping the IP address 8.8.8.8 but cannot load any websites by name. Which service is most likely failing?

  • A. DHCP
  • B. HTTP
  • C. DNS
  • D. APIPA

Answer: C. If a user can reach an IP address directly but cannot resolve domain names to IP addresses, the DNS service is the problem. DHCP is working (the device has a valid IP), but name resolution has broken down.

Want more practice? Certcy has 110+ questions like these — download free.

Study Tips: How to Lock This In Before Exam Day

  • Memorize the DORA sequence — Discover, Offer, Request, Acknowledge. Write it out until it’s automatic.
  • Know port 53 for DNS — and understand why it uses both UDP and TCP.
  • Connect APIPA to DHCP failure — this scenario appears in troubleshooting questions regularly.
  • Practice the ping diagnostic flow — IP ping vs. domain name ping is a core A+ troubleshooting skill.
  • Understand the dependency — DHCP provides the DNS server address, so DHCP failure can cascade into DNS issues.

Frequently Asked Questions

Which CompTIA A+ exam domain covers DHCP and DNS?

DHCP and DNS concepts appear primarily in Domain 2: Networking on the Core 1 exam (220-1101). This domain makes up 20% of the Core 1 exam, so networking fundamentals — including these two protocols — carry significant weight. You can practice with Certcy’s free CompTIA A+ questions covering all 8 domains to make sure you’re prepared across the board.

Do I need to know the DHCP DORA process step by step for the exam?

Yes, you should know the DORA process in order: Discover, Offer, Request, Acknowledge. The exam may present a scenario where a step in the process fails and ask you to identify what’s happening. Understanding each step — not just the acronym — helps you answer those scenario-based questions correctly.

What’s the difference between a static IP and a DHCP-assigned IP?

A static IP address is manually configured on a device and never changes unless someone edits it. A DHCP-assigned IP is automatically leased by a DHCP server and may change when the lease expires or the device reconnects to the network. Servers, printers, and network devices often use static IPs so other devices can always find them at the same address. End-user workstations and mobile devices typically use DHCP for convenience.

Can a network work without DNS?

Yes — devices can communicate using IP addresses directly without DNS. However, from a practical standpoint, no modern user environment works without it. Every time someone opens a browser, sends an email, or connects to a cloud service, DNS is resolving names behind the scenes. A network without DNS is technically functional but completely unusable for day-to-day tasks, which is why DNS troubleshooting is such a critical A+ skill.

Ready to put this knowledge to the test? Certcy is the free mobile app built specifically for CompTIA A+ prep — with 110+ expert-written questions across all 8 domains, gamified learning with XP and achievement badges, and an AI-personalized study plan that targets your weak spots. Whether you’re commuting, on a lunch break, or grinding before bed, Certcy fits your schedule. Download Certcy free today and start turning study time into exam confidence.

Get Free Study Tips in Your Inbox

Weekly exam strategies, domain breakdowns, and Certcy updates. No spam, unsubscribe anytime.

Ready to Pass Your Certification?

Practice with 310+ expert-written questions across CompTIA A+, ISC2 CC, and SSCP.
Free to start — no credit card required.


Download Certcy Free

Scroll to Top