In this video we’ll be setting the question count in the response, this will always be 1, even though the DNS protocol allows for multiple questions in a single query. That’s because, in practice, every DNS query has only one question.

We’ll also we working out the answer count. This is more complicated because the answer count is calculated by reading the zone file for the domain in question and counting the number of records of the correct type in the zone file.

Go to for more!

Link to howCode Facebook:
Link to howCode Twitter:
Link to /r/howCode:

Don’t forget to subscribe for more!