dns: avoid leaks in regress tests

Thanks, valgrind!

While there, tweak a couple of comments.