Basic getaddrinfo() basic example
import sys, socket result = socket.getaddrinfo("192.1.1.100", None) print result[0][4] print result
1. | Takes a host name on the command like and prints all resulting matches for it. | ||
2. | Takes a host name on the command line and prints all resulting matches for it. |