Skip to content

Commit

Permalink
✏更新 DNS
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcaffebabe committed Sep 27, 2020
1 parent 02651be commit 6c20cf0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Binary file added assets/屏幕截图 2020-09-27 110937.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 11 additions & 4 deletions 计算机网络/应用层.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,22 @@
提供了主机名和 IP 地址之间相互转换的服务

![20203710332](/assets/20203710332.jpg)
![屏幕截图 2020-09-27 110937](/assets/屏幕截图%202020-09-27%20110937.png)

DNS 可以使用 UDP 或者 TCP 进行传输,使用的端口号都为 53。大多数情况下 DNS 使用 UDP 进行传输,这就要求域名解析器和域名服务器都必须自己处理超时和重传从而保证可靠性

只有当返回的响应超过512字节或者主域名服务器向辅助域名服务器传送变化的数据时采用TCP协议

根域名 -> gTLD Server -> Name Server

域名解析记录:

- A记录(Address) 用来指定域名对应的IP地址
- MX记录(Mail Exchange) 用来指定邮件服务器
- CNAME记录(Canonical Name) 别名解析就是为一个域名设置多个别名
- NS记录 为某个域名指定DNS解析服务器
- TXT记录 添加一段文字说明

## FTP

FTP 使用 TCP 进行连接,它需要两个连接来传送一个文件:
Expand Down Expand Up @@ -123,7 +134,3 @@ SMTP 只能发送 ASCII 码,而互联网邮件扩充 MIME 可以发送二进
TCP连接建立后,客户端生成一个HTTP请求报文,发送给服务器
服务器接收到之后,返回一个响应报文
客户端接收到响应之后,进行渲染,显示web页面

# CDN

> 内容分发网络

0 comments on commit 6c20cf0

Please sign in to comment.