This chapter includes the following example programs:
- lookup.c: Uses getaddrinfo() to look up addresses for a given hostname
- dns_query.c: Encodes and sends a UDP DNS query, then listens for and decodes the response
This chapter includes the following example programs: