robur-coop / udns

[deprecated, developmeht moved to https://github.com/mirage/ocaml-dns] µDNS - an opinionated Domain Name System (DNS) library
BSD 2-Clause "Simplified" License
55 stars 5 forks source link

read longer responses #16

Closed cfcs closed 5 years ago

cfcs commented 5 years ago

This still doesn't quite work, but couldn't find the issue:

udns $ ./_build/default/app/odns.exe any --ns 198.167.222.214 -vvv robur.io
...
odns.exe: [ERROR] Failed to lookup robur.io: err: Error parsing response: bad content robur.io

EDIT: This PR has some extra debug messages that should probably be removed before merging, but thought them useful while debugging.

cfcs commented 5 years ago

Works after #17 was merged, also added guard to prevent reading multiple packets from UDP servers after suggestion of @hannesm.