Read about DNS here... DNS Lookup - Implementation in C /**dnsclient.c**/ #include"stdio.h" #include"stdlib.h" #include…