DOMAIN NAMES AND IP ADDRESSES How the Web Works, lesson 2 Every computer on the internet has a number address. Domain names are the easy-to-remember names that point to those numbers. With millions of computers online, how does your phone find the right one when you type google.com? This lesson answers that. Servers: where websites live A website is a set of files stored on a computer that's always on and connected. That computer is a server. Think of a restaurant: the server is the kitchen, your device is the customer. You order, the food comes to you. But first, your device needs to know where the kitchen is. IP addresses: every computer's number Every device on the internet has a number address called an IP address, like this: 172.217.16.142 It's how computers find each other, the way a delivery rider needs your address to find your house. Domain names: names instead of numbers Nobody wants to memorise numbers for every site they visit. A domain name is an easy name that points to an IP address: google.com, jumia.com.ng, bbc.co.uk. It works like your phone's contacts. You tap "Ada", and your phone dials the number saved behind the name. | On your phone | On the internet | |---|---| | Contact name ("Ada") | Domain name (google.com) | | Phone number (0803...) | IP address (172.217.16.142) | | Your contacts list | DNS | DNS: the internet's contact list DNS (Domain Name System) matches domain names to IP addresses. When you visit a site: 1. You type google.com and press Enter. 2. Your device asks DNS for google.com's number. 3. DNS replies: 172.217.16.142. 4. Your device asks the server at that address for the website. 5. The server sends it back, and it appears on your screen. All in a fraction of a second. Reading a web address The full address in your browser bar is a URL: https://www.jumia.com.ng/phones | Part | Meaning | |---|---| | https:// | Sends the site securely. The "s" means secure. | | www. | Optional. Most sites work without it. | | jumia | The name the business chose. | | .com.ng | The ending, called the extension. | | /phones | A specific page, like an aisle in a supermarket. | Common endings - .com: originally for companies, now used by anyone - .org: often organisations and charities - .ng, .com.ng: Nigeria - .gov.ng: Nigerian government only - Newer ones: .shop, .store, .africa, and more Pick whatever fits your brand, as long as the name isn't taken. You rent domains, you don't own them You pay for a domain yearly. Forget to renew, and someone else can take it. Activity 1. Pick three websites you use often and copy their full URLs. 2. Label each part: https://, the name, the extension, and any page after the /. 3. Bonus: write three possible domain names for your own website, using different extensions (e.g. lily.com, john.xyz, johndoe.me). We'll check if they're available in Lesson 4. --- From "Build Your Own Website" by Lily: https://lilyslab.xyz/resources/build-your-own-website/how-the-web-works/domain-names-and-ip-addresses