https://github.com/discretetom/dnsrelay
homework of computer network, a simple dns relay server
https://github.com/discretetom/dnsrelay
Last synced: about 2 months ago
JSON representation
homework of computer network, a simple dns relay server
- Host: GitHub
- URL: https://github.com/discretetom/dnsrelay
- Owner: DiscreteTom
- License: mit
- Created: 2019-07-01T06:43:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-12T00:52:59.000Z (almost 6 years ago)
- Last Synced: 2025-02-05T06:38:58.461Z (4 months ago)
- Language: Python
- Homepage:
- Size: 4.06 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dnsrelay
计算机网络课程设计-DNS中继服务器的实现
## 要求
设计一个DNS服务器程序,读入“域名-IP地址” 对照表,当客户端查询域名对应的IP地址时, 用域名检索该对照表,实现下列三种情况:
- 检索结果为IP地址0.0.0.0,则向客户端返回“域名不存在”的报错消息(即不良网站拦截功能)
- 检索结果为普通IP地址,则向客户返回这个地址(即DNS服务器功能)
- 表中未检到该域名,则向实际的本地DNS服务器发出查询,并将结果返给客户端(即DNS中继功能)