Giter Club home page Giter Club logo

dns-server's Introduction

An assignment in Internet Application course.

Requirment:

  1. 实现中文域名的解析,例如:主页.北邮.教育.**(与 www.bupt.edu.cn 对应); 数据库记录示例: 主页.北邮.教育.**,86400,IN,A,192.168.1.25 北邮.教育.**,86400,IN ,MX,邮件服务器.北邮.教育.** 邮件服务器.北邮.教育.**,86400,IN ,A,192.168.1.37
  2. 至少支持 4 个顶级域,至少实现三级域名的解析。程序需要实现的实体有:client、 至少 6 个 DNS server。 4 个顶级域名:**、组织、商业、美国 二-三级域名:自定义(例如:教育.**,北邮.教育.**) DNS server 的部署架构可参考下图的示例:
  3. 支持的 Resource Record 类型:A、MX、CNAME;对于 MX 类型的查询,要求在 Additional Section 中携带对应 IP 地址;
  4. 支持的解析方法:迭代解析;
  5. 支持 cache,打印查询的 trace 记录(查询路径、服务器响应时间);
  6. 传输层协议: client 与 local DNS server 之间:TCP; DNS server 之间:UDP;
  7. 应用层协议:DNS 要求通信过程中使用的所有 DNS 报文必须能够用 wireshark 正确解析;
  8. server 的数据维护方式可采用文件; 2
  9. 书写完整的设计文档,参考 Sample-Project-Report.pdf;
  10. 程序中应包含详细的代码注释,使用良好的编程风格;
  11. 程序运行稳定,支持错误处理,如:命令无效、参数缺失、同名处理、空白字符;

dns-server's People

Contributors

lazysheep666 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.