Software Development with Go by Nanik Tolaram

Software Development with Go by Nanik Tolaram

Author:Nanik Tolaram
Language: eng
Format: mobi, pdf
ISBN: 9781484287316
Publisher: Apress
Published: 2022-12-30T01:45:34.019000+00:00


Figure 10-1 dnsmessage.Message with DNS query data

Figure 10-2 shows the response received from the DNS forwarder when the bytes are unpacked. As you can see, the Answers field is populated with the answer to the query.

Figure 10-2 dnsmessage.Message with DNS response data

Summary

In this chapter, you learn more details about using UDP. One of the features of the IP stack is to check the availability of a server using the ICMP protocol. You also learned about using UDP to write a DNS forwarder server that uses the net/dns package standard library to process DNS requests and responses. You now have a better understanding of the features of the standard library than the capability that is provided; at the same time, it shows how versatile the libraries are in allowing us to develop useful network tools.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.