Set RecursionDesired header to fix SERVFAIL (#1)

This commit is contained in:
Siavash Safi 2018-05-05 17:01:39 +02:00 committed by Michael Stapelberg
parent 1c0a911641
commit 5bcf12a070

View File

@ -109,7 +109,8 @@ func main() {
eg.Go(func() error { eg.Go(func() error {
msg := &dns.Msg{ msg := &dns.Msg{
MsgHdr: dns.MsgHdr{ MsgHdr: dns.MsgHdr{
Id: dns.Id(), Id: dns.Id(),
RecursionDesired: true,
}, },
Question: []dns.Question{ Question: []dns.Question{
dns.Question{"cachesize.bind.", dns.TypeTXT, dns.ClassCHAOS}, dns.Question{"cachesize.bind.", dns.TypeTXT, dns.ClassCHAOS},