From the course: Hands-On Linux: Build Real Command Line Confidence from Scratch
Unlock this course with a free trial
Join today to access over 25,600 courses taught by industry experts.
DNS, IP addresses, and connectivity troubleshooting - Linux Tutorial
From the course: Hands-On Linux: Build Real Command Line Confidence from Scratch
DNS, IP addresses, and connectivity troubleshooting
You type google.com and a website loads, but your computer doesn't know what google.com is. It needs an IP address, a number. Something has to translate the name into a number. That something is DNS. Let's pull it apart so when things break, you know exactly where to look. Let's talk about IP addresses, the basics. Every device on a network has an IP address. It's how your machines find each other. So we can check yours by typing in IP-BRADDR. You'll see something like 192.168.1. As you can see here, mine's a .10 and so forth. That's a private IP address. It only works inside your local network. Your router has a public IP that the rest of the internet sees. To find your public IP, you can type in curl-s ifconfig-me. The number is what the world sees. Your router does a translation between your private and public IP. That's called network address translation, but that's a topic for another day. Now for DNS, what it stands for is domain name system. It's basically a phone book. You…