IP Addresses, DHCP and DNS Explained

IP Addresses, DHCP and DNS Explained

IP ADDRESSING
DHCP
DNS

IP Addresses, DHCP and DNS Explained

IP addresses identify devices on a network. DHCP automatically assigns network settings, while DNS converts easy-to-remember website names into numerical IP addresses.

Diagram showing DHCP assigning IP addresses and DNS translating website names
DHCP gives devices network settings, while DNS helps them locate websites.

What Is an IP Address?

An Internet Protocol address is a numerical address assigned to a device. It allows information to be delivered to the correct destination.

Example IPv4 Address

192.168.1.25

IPv4 addresses contain four numbers separated by full stops. Each number can range from 0 to 255.

Example IPv6 Address

2001:db8:85a3::8a2e:370:7334

IPv6 was created because the world required more addresses than IPv4 could provide.

Private and Public IP Addresses

Type Purpose Example
Private IP Used inside a home, school or business network. 192.168.1.25
Public IP Used to identify a network on the internet. Assigned by an internet provider
Loopback Used by a computer to communicate with itself. 127.0.0.1

How DHCP Works

DHCP stands for Dynamic Host Configuration Protocol. It automatically gives a device an IP address, subnet mask, default gateway and DNS server.

  1. A device broadcasts a DHCP Discover message.
  2. The DHCP server offers an available IP address.
  3. The device requests the offered address.
  4. The server confirms the lease.

Key idea: Without DHCP, every computer would need to be configured manually. DHCP makes network setup faster and reduces configuration errors.

How DNS Works

DNS stands for Domain Name System. People use names such as example.com, but computers communicate using IP addresses. DNS performs the translation between the two.

Website requested:
example.com

DNS response:
example.com → 93.184.216.34

Useful Troubleshooting Commands

ipconfig
ipconfig /all
nslookup example.com
ping 192.168.1.1

Summary

IP addresses identify devices, DHCP provides network configuration and DNS translates domain names into addresses. These three concepts are essential for understanding how computers access network services.

Why Networking?

Learning Networking is Fun and Beneficial For Future Careers, Projects or just as a hobby.

Discover The Joy of Understanding Hardware and Networking/Network Security and benefit from it now and start your career today!

About Me

Hi this is my Homelab Project that I had created back in November 2025!

I have been Networking for around 16 years, currently studying CompTIA. My goal & passion is to have a career in Network Engineering & Network Security.