fcambus / rrda

REST API allowing to perform DNS queries over HTTP

Home Page:https://www.statdns.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Truncated Message Handling

andrewtj opened this issue · comments

If the TC bit is set dns.Exchange() will return dns.ErrTruncated which is not caught in resolve(). Tested by looking up _http._tcp.dns-sd.org. IN PTR.

Indeed, it seems dns.Exchange() behavior was changed a couple months ago.

Thanks for reporting this, it should be fixed now.

It looks like this behavior was reverted in miekg/dns#814

Now rrda fails to build as a result:

../../go/src/github.com/fcambus/rrda/rrda.go:125:19: undefined: dns.ErrTruncated

Indeed, thanks for reporting this, I reverted to the previous behavior.

RRDA should now build again.