1. Homepage
  2. Coding
  3. ECE 4016 Computer Networks - Assignment 1: Local DNS Server

ECE 4016 Computer Networks - Assignment 1: Local DNS Server

Order Now
CUHKECE4016Computer NetworksLocal DNS ServerPython

ECE4016 Assignment 1 Assignment Writing Service

In this assignment, you are required to implement a simple Local DNS Server . Assignment Writing Service

Introduction Assignment Writing Service

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) Assignment Writing Service

Iterative query and Recursive query Assignment Writing Service

Detailed grading rule Assignment Writing Service

The local DNS server should have the following function: Assignment Writing Service

Listen and accept the DNS queries Assignment Writing Service

Send response to the clients Assignment Writing Service

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 Assignment Writing Service

Support the DNS queries of www.baidu.com through recursive or iterative searching (30 points) Assignment Writing Service

Support the DNS queries of www.example.com through recursive or iterative searching (20 points) Assignment Writing Service

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) Assignment Writing Service

Requirements Assignment Writing Service

Print the ip address of all the servers you pass by during the searching Assignment Writing Service

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 Assignment Writing Service

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 Assignment Writing Service

Useful tools Assignment Writing Service

There are some useful tools that may help you in your programming. (Dnspython is not allowed to use in this lab) Assignment Writing Service

socket dnslib Assignment Writing Service

Assignment Writing Service

Simple test by yourself Assignment Writing Service

You can use dig to test your local NDS server. An example test code: Assignment Writing Service

dig www.example.com @127.0.0.1 -p 1234 dig www.baidu.com @127.0.0.1 -p 1234 Assignment Writing Service

Note that this test code will be used in the evaluation of this project, make sure your program works given this test code. Assignment Writing Service


联系辅导老师!
私密保护
WeChat 微信
CUHK代写,ECE4016代写,Computer Networks代写,Local DNS Server代写,Python代写,CUHK代编,ECE4016代编,Computer Networks代编,Local DNS Server代编,Python代编,CUHK代考,ECE4016代考,Computer Networks代考,Local DNS Server代考,Python代考,CUHK代做,ECE4016代做,Computer Networks代做,Local DNS Server代做,Python代做,CUHKhelp,ECE4016help,Computer Networkshelp,Local DNS Serverhelp,Pythonhelp,CUHK作业代写,ECE4016作业代写,Computer Networks作业代写,Local DNS Server作业代写,Python作业代写,CUHK编程代写,ECE4016编程代写,Computer Networks编程代写,Local DNS Server编程代写,Python编程代写,CUHK作业答案,ECE4016作业答案,Computer Networks作业答案,Local DNS Server作业答案,Python作业答案,