예제 #1
0
        /// <summary>
        /// Resolve address to host
        /// </summary>
        /// <param name="address"></param>
        /// <returns></returns>
        public static async Task <string> ResolveAsync(this IPAddress address)
        {
            var entry = await address.GetHostEntryAsync();

            return(entry.HostName);
        }