s4:lib/socket: don't use gethostbyname2()