Question: Design a program which will take the subsequent inputs at the command line:
1. the IP address of the DNS server
2. the domain name to look up
3. the type of query (e.g, A, NS, MX)
And you need to use google's dns server (8.8.8.8) instead of default local DNS server for sending request for fetching the information in dig(domain information groper) format output.
N.B- UDP may be used for communication and raw scokets and no libraries.
I'm not sure how to solve the question. Can anyone help me?