using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Net.Sockets; using System.Text; namespace TestDnsResolver { class Program { static void Main(string[] args) { GFWDnsResolver dnsResolver = GFWDnsResolver.…
脚本如下: #!/usr/bin/env python #coding:utf- import os,sys from socket import gethostbyname DOMAIN= "G:/PycharmProject/fullstack2/week1/domain.txt" def main(): #domain.txt里面存储的是需要批量解析的域名列表,一行一个 with open(DOMAIN,'r') as f: for line in f.readlines():…