private static string GetHostEntry()

in gateway/Program.cs [58:78]


        private static string GetHostEntry(string hostname)
        {
            try
            {
                LogMessage(string.Format("Trying to get HostEntry for {0}", hostname));
                IPHostEntry host = Dns.GetHostEntry(hostname);

                LogMessage(string.Format("GetHostEntry({0}) returns:", hostname));

                foreach (IPAddress address in host.AddressList)
                {
                    LogMessage(string.Format("    {0}", address.ToString()));
                }
                return hostname;
            }
            catch (Exception e)
            {
                LogMessage(string.Format("Exception=    {0}", e.ToString()));
            }
            return null;
        }