仓库源文站点原文

DNS: The Phone Book Itself


WHOIS: The "Who Owns This?" Section


Side-by-Side Comparison

Feature DNS (Domain Name System) WHOIS (Who Is)
Main Job Finding an address. Translates a domain name to an IP address. Finding an owner. Provides registration details for a domain.
Analogy The phone book that gives you a number. The listing that tells you who the number belongs to.
What it answers "Where is google.com?" "Who owns google.com?"
Information it gives IP addresses, mail server info, etc. Owner's name, contact info, registrar, registration & expiry dates.
When you use it Every time you visit a website (your browser does this automatically). When you need to investigate a domain, contact the owner, or check if a domain is available.

A Simple Example

Let's say you want to visit example.com.

  1. Your computer uses DNS: It's like your computer shouting, "Hey, everyone, what's the address for example.com?!" A DNS server answers back, "It's 93.184.216.34!" Your browser then uses that number to connect to the website.
  2. You get curious and use WHOIS: You wonder, "Who actually owns example.com?" You go to a WHOIS lookup website (like whois.icann.org), type in the domain, and it tells you the registration company, when it was created, and when it will expire.

In a Nutshell:

They work together to make the internet function, but they serve two completely different purposes.