I would like to know if I can use subprocess to go over a list of IPs and perform "nslookup" on each of the IPs and capture the actual output, for ex. I have a list here ip_list = [10.0.0.1, 10.0.0.2, 10.0.0.3]
for ip in ip_list: subprocess.???("nslookup", ip)