Exemplo n.º 1
0
 public static GFWDnsResolver Instance()
 {
     if (resolver == null)
     {
         resolver = new GFWDnsResolver();
     }
     return(resolver);
 }
Exemplo n.º 2
0
 public static GFWDnsResolver Instance()
 {
     if (resolver == null)
     {
         resolver = new GFWDnsResolver();
     }
     return resolver;
 }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            GFWDnsResolver dnsResolver = GFWDnsResolver.Instance();
            string         domain      = "www.goagentplus.com";
            string         ip          = dnsResolver.GFWResolve(domain);

            Console.WriteLine(ip + "    " + domain);
            Console.ReadKey();
        }