dns: pass callback function using move semantic

While there, also fix a couple of imprecise comments.