public DnsInfo Map(DnsData data) { return(new DnsInfo { HostName = data.HostName }); }
public async Task <DnsData> GetDnsDetails(string ipAddress) { IPAddress address = IPAddress.Parse(ipAddress); DnsData dnsData = new DnsData(); IPHostEntry host = await Dns.GetHostEntryAsync(address); dnsData.HostName = host.HostName; return(dnsData); }
public static WebDomainData ToWebDomainData(this IWebDomain domain, DnsData dns_data = null) { return(new WebDomainData { Id = domain.Id, Name = domain.Name, Dns = dns_data }); }
public static WebDomainData ToWebDomainData(this IWebDomain domain, DnsData dnsData = null) { return(new WebDomainData { Id = domain.Id, IsSharedDomain = domain.Tenant == Defines.SHARED_TENANT_ID, Name = domain.Name, Dns = dnsData }); }