Skip to content

DNS

一句话解释

DNS (领域 Name 系统) 是 internet's phonebook — 它 translates human-readable 领域 names 到 IP 地址.

用大白话说

DNS (Domain Name System) is what allows you to type "示例.com" instead of "93.184.216.34". It is a distributed database that maps domain names to IP addresses, which are the actual addresses computers use to find each other on the internet.

When you type a URL, the browser first queries a DNS server to resolve the domain to an IP address. This happens before any HTTP connection is made. DNS resolution is usually fast (milliseconds) but can slow down page loads if the DNS server is slow.

DNS records include A records (domain → IPv4 address), AAAA records (domain → IPv6 address), CNAME records (alias to another domain), MX records (mail servers), and TXT records (arbitrary text, used for verification). DNS changes can take time to propagate across the global DNS network.

示例

text
User types: https://example.com
  ↓
DNS lookup: example.com → 93.184.216.34
  ↓
Browser connects to 93.184.216.34 on port 443
  ↓
HTTP request sent, response received and rendered

DNS lookup 步骤 happens 之前浏览器能 连接到 服务器.

相关术语

相关资源

相关课程

解读错误信息

用大白话解释常见错误——什么意思、为什么发生、如何修复。

查看错误

← 返回术语表