Пример #1
0
        public static async Task <IEnumerable <string> > LookupCnameRecordsAsync(string name)
        {
            var dns      = new Makaretu.Dns.DnsClient();
            var response = await Client.QueryAsync(name, Makaretu.Dns.DnsType.CNAME);

            return(response.Answers
                   .OfType <Makaretu.Dns.CNAMERecord>()
                   .Select(x => x.Target.ToString()));
        }