Beispiel #1
0
        /// <summary>
        /// 判断是否泛解析
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public static bool checkAlwaysResolution(info.DnsInfo RD)
        {
            info.DnsInfo ReqDns   = RD as info.DnsInfo;
            bool         IsAlways = false;

            for (int i = 0; i < 4; i++)
            {
                DnsResolver checkdns = null;
                if (i < 1)
                {
                    checkdns = new DnsResolver(i + "seaydomaincheck." + ReqDns.Domain, ReqDns.DnsServer, ReqDns.TimeOut);
                }
                else if (i < 2)
                {
                    checkdns = new DnsResolver(i + "seaydomain.check." + ReqDns.Domain, ReqDns.DnsServer, ReqDns.TimeOut);
                }
                else
                {
                    checkdns = new DnsResolver(i + "seay.domain.check." + ReqDns.Domain, ReqDns.DnsServer, ReqDns.TimeOut);
                }
                if (checkdns.IsSuccess)
                {
                    IsAlways = true;
                    foreach (string item in checkdns.Record)
                    {
                        F_main.blackIp.Add(item);
                    }
                }
            }
            F_main.blackIp = F_main.blackIp.Distinct().ToList();
            return(IsAlways);
        }
 public mode_serverapi(info.DnsInfo dnsinfo)
 {
     ReqDns = dnsinfo;
 }
Beispiel #3
0
 public mode_enumerate(info.DnsInfo dnsinfo)
 {
     ReqDns = dnsinfo;
 }