public Chain(ITestOutputHelper outputHelper) { OutputHelper = outputHelper; ServicePointManager.ServerCertificateValidationCallback = delegate { return(true); }; cli = new ShamanDNSCLient(null); }
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); }
public DNSTest() { ServicePointManager.ServerCertificateValidationCallback = delegate { return(true); }; cli = new ShamanDNSCLient(null); }