python dns parser

socket.getaddrinfo("http://www.news.com",None)
when you try to parser dns,can not start with http://,
belows is the right way
socket.getaddrinfo("www.xx.com",None)

你可能感兴趣的:(python)