Skip to main content
  1. Posts/

Networking 101: DNS, DHCP, and Proxies

This post covers DNS, DHCP, and proxies—essential services if you’re building a home lab network. Understanding how these work will help you manage your setup effectively.

DNS: The Address Book of the Internet
#

DNS (Domain Name System) translates domain names like google.com into the IP addresses computers actually use. Here are the key components:

  • DNS Servers: Several types exist:

    • Caching Servers: Provided by your ISP or local network, these store recent lookups to speed up future requests.
    • Recursive Servers: Also from your ISP or local network, these perform full resolution if the answer isn’t in the cache.
    • Root Servers: The foundation of the DNS hierarchy, these 13 servers direct requests to the appropriate TLD server.
    • TLD Servers: Manage top-level domains like “.com” or “.org” and point queries to the authoritative name server.
    • Authoritative Servers: The final stop, these servers hold the actual IP address for a specific domain.
  • DNS Records: These are like entries in the address book, providing various details about a domain:

    • A Record: Maps a domain name to an IPv4 address (e.g., “[invalid URL removed]” -> 142.250.68.139)
    • AAAA Record: Similar to A record, but for IPv6 addresses.
    • CNAME Record: Redirects traffic from one domain to another (e.g., “www.example.com” CNAME “example.com”)
    • MX Record: Directs emails to the correct mail server.
    • SRV Record: Defines the location of specific services like chat or video conferencing.
    • TXT Record: Stores additional text data for the domain.
    • SOA Record: Specifies the authoritative name server for a domain zone.
    • NS Record: Lists other name servers responsible for a zone.

DHCP: Automating Network Configuration
#

DHCP (Dynamic Host Configuration Protocol) automatically assigns IP addresses, subnet masks, default gateways, and name servers to devices on your network, so you don’t have to do it manually.

  • DHCP Process:
    • A device broadcasts a “DHCP Discover” message.
    • The DHCP server offers a lease (temporary IP) with a “DHCP Offer” message.
    • The device requests the offered lease with a “DHCP Request” message.
    • The server acknowledges with a “DHCP Ack” message, finalizing the configuration.
    • Leases expire, requiring renewal or a new lease negotiation.

Proxies: The Middlemen of the Web
#

A proxy server acts as an intermediary between your device and the internet. It can provide various functionalities:

  • Security: Filters malicious content or protects your device’s identity.
  • Caching: Stores frequently accessed data to speed up browsing.
  • Content Filtering: Restricts access to certain websites.
  • Load Balancing: Distributes traffic across multiple servers for better performance.

Summary
#

Knowing how DNS, DHCP, and proxies work gives you better control over your home lab network. You can optimize performance, improve security, and understand how your devices connect to the internet.