update dns to use events - this was patched but not reflected in dns.js
dns deals with errors as expected