Try these questions to test your knowledge of this chapter:
- Which function fills in an address needed for socket programming in a portable and protocol-independent way?
- Which socket programming function can be used to convert an IP address back into a name?
- A DNS query converts a name into an address, and a reverse DNS query converts an address back into a name. If you run a DNS query on a name, and then a reverse DNS query on the resulting address, do you always get back the name you started with?
- What are the DNS record types used to return IPv4 and IPv6 addresses for a name?
- Which DNS record type stores special information about email servers?
getaddrinfo()always return immediately? or can it block?
- What happens when a DNS response is too large to fit into a single UDP packet?
The answers are in Appendix A, Answers to Questions.