dns: handle errors