Question: For this task, you will build a mimic DNS server using Python. You are not allowed to use Python existing DNS modules/libraries such as
For this task, you will build a mimic DNS server using Python. You are not allowed to use Python existing DNS modules/libraries such as dnspython and dns.resolver. Your DNS server must have the following features and functionality. As we have learnt in Module 2, DNS uses UDP as the transport layer protocol. Uses the query and response messages. Capable of supporting two types of resource records, A and CNAME. Capable of supporting Hostname-to-IP-address translation and host aliasing. The server must display a message on the terminal when it is started to indicate it is running. You must also build a client program to test the DNS server. The client program must be able to provide the hostname /alias name in the terminal and send a DNS query to the server. The client process must display the response received from the server in the terminal. Client program should also prompt the user to check whether the user would like to continue with another DNS query or not.
Step by Step Solution
3.32 Rating (152 Votes )
There are 3 Steps involved in it
Building a DNS server and client from scratch is a nontrivial task and involves several steps I can ... View full answer
Get step-by-step solutions from verified subject matter experts
