catch dns resolution errors