# STDnsQuery_DotNet **Repository Path**: DebugST/STDnsQuery_DotNet ## Basic Information - **Project Name**: STDnsQuery_DotNet - **Description**: STDnsQuery 是一个快速DNS查询工具 其中 DnsClient 是一个方便快捷的调用类 支持 A、NS、CNAME、DNAME 查询 使用简单 - **Primary Language**: C# - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-18 - **Last Updated**: 2022-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## STDnsQuery [![GO1.16](https://img.shields.io/badge/.Net-3.5-blue)](https://www.microsoft.com/zh-cn/download/details.aspx?id=25150) [![license](https://img.shields.io/badge/License-MIT-green)](https://github.com/DebugST/STDnsQuery_DotNet/blob/main/LICENSE) STDnsQuery 是一个快速DNS查询工具 其中 DnsClient 是一个方便快捷的调用类 支持 A、NS、CNAME、DNAME 查询 使用简单 ![STDnsQuery](https://raw.githubusercontent.com/DebugST/STDnsQuery_DotNet/main/Images/Screen%20Shot%202021-05-18%20at%2018.09.00.png) CUI(GO):[https://github.com/DebugST/STDnsQuery_GO](https://github.com/DebugST/STDnsQuery_GO) ![STDnsQuery](https://raw.githubusercontent.com/DebugST/STDnsQuery_GO/main/Images/Screen%20Shot%202021-05-14%20at%2000.54.29.png) ## Demo ``` cs class Demo { public void Test() { DnsClient dns = new DnsClient(new IPEndPoint[]{ new IPEndPoint(IPAddress.Parse("8.8.8.8"),53) }); dns.DnsCompleted += new DnsClient.DnsCompletedEventHandler(dns_DnsCompleted); dns.Start(1000); dns.Query("www.google.com", DnsType.A, 1, 3); } void dns_DnsCompleted(object sender, DnsCompletedEventArgs e) { if (e.Result.RCode == DnsRCode.None) { Console.WriteLine(e.Result.Domain + "," + e.Result.Answers.Length); } } } ``` ## Author * Github: [DebugST](https://github.com/DebugST/) * Blog: [Crystal_lz](http://st233.com) * Mail: (2212233137@qq.com)