IP Address, DNS and DHCP Explained for Beginners
IP addresses identify devices, DNS translates names, and DHCP helps devices receive network settings automatically. Understanding how the three fit together makes basic network troubleshooting much easier.
By Goalbi Academy
Published on 5 min read
Networking can feel complicated because several things happen almost instantly when a computer connects to Wi-Fi or Ethernet. Three concepts appear everywhere: IP addresses, DNS and DHCP. Once you understand what job each one performs, many everyday network problems become much easier to reason about.
Start with the network path
When your laptop opens a website, it needs a usable network configuration, a way to reach other networks, and a way to translate a human-friendly name such as example.com into an IP address. DHCP, IP addressing and DNS participate in those steps.
What is an IP address?
An IP address identifies a network interface so devices can communicate using Internet Protocol. In a home or office network, devices commonly receive private IPv4 addresses such as 192.168.x.x or 10.x.x.x. Those addresses are not the same as the public IP address the internet sees at the edge of the network.
An IPv4 address alone is not the whole configuration. A device also needs information such as the subnet mask or prefix, default gateway and DNS servers.
What is the default gateway?
The default gateway is normally the router or network device that knows how to forward traffic beyond the local network. If your computer can communicate with local devices but cannot reach the internet, the gateway or upstream connection is one area to investigate.
What does DHCP do?
DHCP stands for Dynamic Host Configuration Protocol. It allows devices to receive network settings automatically rather than requiring someone to type an address, gateway and DNS server manually on every device.
When DHCP works normally, a new device joins the network and is assigned configuration from the available address pool. If DHCP fails, a computer may have no useful address or may assign itself an automatic address that does not allow normal network access.
What does DNS do?
DNS is the naming system that allows people and applications to use names instead of memorising numerical IP addresses. When you enter a website name, your device asks a DNS resolver for the address associated with that name.
DNS can fail even when the internet connection itself is working. That is why a computer may be able to reach an IP address but fail to open a site by name.
How they work together
- The device joins the network.
- DHCP supplies an IP address, subnet information, gateway and DNS server information.
- The user enters a hostname or application requests a service name.
- DNS resolves that name to an IP address.
- The computer sends traffic toward the destination, using the local network and gateway as required.
Useful Windows commands
ipconfig /all ping 8.8.8.8 nslookup example.com ipconfig /flushdns
ipconfig /all shows network configuration. ping can test reachability in some scenarios. nslookup asks DNS to resolve a name. ipconfig /flushdns clears the local DNS resolver cache, although clearing the cache should not be the first response to every problem. For a focused explanation, see computer skills before an IT career.
A simple troubleshooting approach
Suppose a browser says a site cannot be reached. First check whether the computer has a sensible IP configuration. Can it reach the default gateway? Can it reach another known IP? Can DNS resolve a name? These checks separate local configuration, internet reachability and name-resolution problems.
Common beginner misunderstandings
- Thinking IP address and Wi-Fi password are related values.
- Assuming DNS is 'the internet' rather than one service used to find addresses.
- Changing to random DNS servers before proving DNS is the problem.
- Manually assigning an IP without understanding the subnet and gateway.
- Assuming ping failure always proves a host is offline; firewalls can block ICMP.
- Confusing the router's private address with the public address used on the internet.
Static addresses and DHCP reservations
Servers and infrastructure often need predictable addresses. That does not always mean manually typing a static address. A network can use DHCP reservations so the DHCP service always assigns the same address to a known device. Explore what a server is for more detail.
Why these concepts matter beyond networking
Database servers, web applications, cloud resources and remote administration all depend on network identity and name resolution. A SQL Server connection problem may turn out to be DNS or firewall related. A cloud private endpoint can depend on correct DNS. Basic networking therefore helps in almost every technical career. The companion article on cloud database deployment models develops this point.
Related training
Computer & IT Foundations introduces practical IP addressing, DNS, DHCP, Wi-Fi, Ethernet and basic command-line troubleshooting before students move into specialist IT subjects.
View the Computer & IT Foundations course
Need help choosing the right course?
If you are not sure where to begin, contact Goalbi Academy and tell us your current experience level and what you want to learn.
References
Domain Name System (DNS) in Windows and Windows Server
About the author
Goalbi Academy
Institutional author
Goalbi Academy provides practical technology education through instructor-led training and educational resources.
Related training
Related articles
All articlesIT Foundations
Computer Skills You Need Before Starting a Career in IT
You do not need to be an expert before starting in IT, but basic computer confidence matters. These are the everyday skills that make technical courses, labs and troubleshooting much easier.
5 min read
IT Foundations
What Is a Server? A Beginner-Friendly Explanation
A server is not defined by its shape. It is a computer or service that provides resources or functionality to other systems. The same idea can exist on physical hardware, a virtual machine or a managed cloud platform.
4 min read