handle ip resolv errors