An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# dnsrelay

计算机网络课程设计-DNS中继服务器的实现

## 要求

设计一个DNS服务器程序,读入“域名-IP地址” 对照表,当客户端查询域名对应的IP地址时, 用域名检索该对照表,实现下列三种情况:
- 检索结果为IP地址0.0.0.0,则向客户端返回“域名不存在”的报错消息(即不良网站拦截功能)
- 检索结果为普通IP地址,则向客户返回这个地址(即DNS服务器功能)
- 表中未检到该域名,则向实际的本地DNS服务器发出查询,并将结果返给客户端(即DNS中继功能)