improve private/internal hostname detection