lakshay989 / dns-resolver Goto Github PK
View Code? Open in Web Editor NEWThis program will listen for incoming DNS requests. When it receives one, it will check its local cache (a hash table) and, if it has a valid response in its cache for the query, will send a result back right away. Otherwise, it will do what we all do, and ask google, store Google's response in the local cache, then send back the response.