Issue #17293: socket.gethostbyname() can raise an exception of FreeBSD.