implement, document, and test the 'max-query-restarts' option which specifies the query restart limit - the number of times we can follow CNAMEs before terminating resolution. (cherry picked from commit104f3b82fb) (cherry picked from commit2e04f0380c)
Copyright (C) Internet Systems Consortium, Inc. ("ISC")
See COPYRIGHT in the source root or https://isc.org/copyright.html for terms.
ns1 is the root server.
ns2 and ns5 are both authoritative servers.
ans3 is a mock authoritative server that can return various broken
responses.
ans4 is a mock authoritative server that can return CNAME or DNAME
responses of arbitrary size in arbitrary order.
ns7 is the resolver under test.