Exemple #1
0
 public DnsInfo Map(DnsData data)
 {
     return(new DnsInfo
     {
         HostName = data.HostName
     });
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 public static WebDomainData ToWebDomainData(this IWebDomain domain, DnsData dns_data = null)
 {
     return(new WebDomainData
     {
         Id = domain.Id,
         Name = domain.Name,
         Dns = dns_data
     });
 }
Exemple #4
0
 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
     });
 }