合肥生活安徽新闻合肥交通合肥房产生活服务合肥教育合肥招聘合肥旅游文化艺术合肥美食合肥地图合肥社保合肥医院企业服务合肥法律

代写ECE4016、Python设计编程代做
代写ECE4016、Python设计编程代做

时间:2024-10-11  来源:合肥网hfw.cc  作者:hfw.cc 我要纠错



ECE4016 Assignment 1
In this assignment, you are required to implement a simple Local DNS Server .
Introduction
The Domain Name System (DNS) is the hierarchical and decentralized naming system used to
identify computers reachable through the Internet or other Internet Protocol (IP) networks. The
resource records contained in the DNS associate domain names with other forms of information.
These are most commonly used to map human-friendly domain names to the numerical IP
addresses computers need to locate services and devices using the underlying network
protocols, but have been extended over time to perform many other functions as well. The
Domain Name System has been an essential component of the functionality of the Internet since
1985. (wikipedia)
Iterative query and Recursive query
Detailed grading rule
The local DNS server should have the following function:Listen and accept the DNS queries
Send response to the clients
Maintain a cache(20 points). If the ip address is queried before, it should be stored in the
cache. if the answer for the query is found in cache, Local DNS Server send this answer to
Client as the DNS response
Support the DNS queries of www.baidu.com through recursive or iterative searching (30
points)
Support the DNS queries of www.example.com through recursive or iterative searching (20
points)
Support the DNS queries of www.baidu.com through public DNS server (15 points)
Support the DNS queries of www.example.com through public DNS server (15 points)
Requirements
Print the ip address of all the servers you pass by during the searching
Use a variable flag to indicate whether ask the public server for the IP address. When the
flag is set to be 0 , ask the public server for the IP address. When the flag is set to be 1 do
the recursive or iterative searching
Make sure your program works under ubuntu 20
Show how to execute your code
The programming language should be Python(version 3.9)
Dnspython is not allowed to use in this lab
The server is required to work on port 1234 of 127.0.0.1
Useful tools
There are some useful tools that may help you in your programming. (Dnspython is not allowed
to use in this lab)
socket
dnslibSimple test by yourself
You can use dig to test your local NDS server.
An example test code:
dig www.example.com @127.0.0.1 -p 1234
dig www.baidu.com @127.0.0.1 -p 1234
Note that this test code will be used in the evaluation of this project, make sure your program
works given this test code.
Submission
Due on 23:59, 13 Oct 2024(Late submission within 5 minitues is allowed without
punishment)
Every 24h late delivery will be deducted 10%, and 48h late delivery will be allowed at most.
After 48h, 0 marks will be given for this assignment
Honesty
We take your honesty seriously. If you are caught copying others' code, you will get an
automatic 0 in this project. Please write your own code.

请加QQ:99515681  邮箱:99515681@qq.com   WX:codinghelp




 

扫一扫在手机打开当前页
  • 上一篇:代做320SC编程、代写Python设计程序
  • 下一篇:代做CS 259、Java/c++设计程序代写
  • 无相关信息
    合肥生活资讯

    合肥图文信息
    新能源捕鱼一体电鱼竿好用吗
    新能源捕鱼一体电鱼竿好用吗
    海信罗马假日洗衣机亮相AWE  复古美学与现代科技完美结合
    海信罗马假日洗衣机亮相AWE 复古美学与现代
    合肥机场巴士4号线
    合肥机场巴士4号线
    合肥机场巴士3号线
    合肥机场巴士3号线
    合肥机场巴士2号线
    合肥机场巴士2号线
    合肥机场巴士1号线
    合肥机场巴士1号线
    合肥轨道交通线路图
    合肥轨道交通线路图
    合肥地铁5号线 运营时刻表
    合肥地铁5号线 运营时刻表
  • 关于我们 | 打赏支持 | 广告服务 | 联系我们 | 网站地图 | 免责声明 | 帮助中心 | 友情链接 |

    Copyright © 2024 hfw.cc Inc. All Rights Reserved. 合肥网 版权所有
    ICP备06013414号-3 公安备 42010502001045