Exemplo n.º 1
0
        public Chain(ITestOutputHelper outputHelper)
        {
            OutputHelper = outputHelper;

            ServicePointManager.ServerCertificateValidationCallback = delegate { return(true); };

            cli = new ShamanDNSCLient(null);
        }
Exemplo n.º 2
0
        private void TestARecord()
        {
            // Add and check a A Record
            ShamanDNSCLient cli = new ShamanDNSCLient(null);

            cli.AddRecord(new DNSEntry
            {
                Domain = "xxx2.provina.it",
                Name   = "XXX",
                Value  = "127.0.0.2",
                Type   = "A"
            }).Wait();

            //var addresses = Dns.GetHostEntry("xxx2.provina.it").AddressList;
            //var iplist = string.Join(' ', addresses.Select(x=>x.MapToIPv4().ToString()));
            //Console.WriteLine(iplist);
        }
Exemplo n.º 3
0
        public DNSTest()
        {
            ServicePointManager.ServerCertificateValidationCallback = delegate { return(true); };

            cli = new ShamanDNSCLient(null);
        }