SyntaxFix
Write A Post
Hire A Developer
Questions
list( map( lambda x: x[4][0], socket.getaddrinfo( \ 'www.example.com.',22,type=socket.SOCK_STREAM)))
gives you a list of the addresses for www.example.com. (ipv4 and ipv6)