I am on linux and have python 2.7 and 3.2 installed.
When i run the below script I get this error.
File "./1query.py", line 14
SyntaxError: invalid syntax
I also received this error when attempting to run a second script.
I played with the indentation and the error switched between "invalid syntax" and "unexpected indent"
Thanks for reading
import dns.resolver hosts = ["oreilly.com", "yahoo.com", google.com", "microsoft.com", "cnn.com"]
collection = 
for host in host_list:
ip = dns.resolver.query(host,"A")
for i in ip:
if __name__ == "__main__":
for arec in query():