improve logging on dns failures