This document contains two DNS client-side code snippets in C/C++. The first code connects to a DNS server, gets a domain name from the user, formats it into a proper DNS query, sends the query to the server, receives the response, and analyzes the response. The second code fragment analyzes the DNS response in more detail by extracting fields like name, type, class, and checking error codes. It prints out information about errors, failures or format issues found in the response.