better dns failure handling