Bespoke.DynamicDnsUpdater.Client.DynamicDnsClientBase.UpdateHostnames C# (CSharp) Method

UpdateHostnames() public method

Updates the specified hostnames via DNS-O-Matic with the public facing IP Address for the system that the request is made from.
public UpdateHostnames ( List hostnames ) : bool
hostnames List The hostnames to update.
return bool
        public bool UpdateHostnames(List<string> hostnames)
        {
            var resolver = new IpAddressResolver();

            var ip = resolver.GetPublicIpAddress();

            if (ip == null) return false;

            logger.Info(string.Format("Resolved public IP Address as {0}", ip));

            return UpdateHostnames(hostnames, ip);
        }

Same methods

DynamicDnsClientBase::UpdateHostnames ( List hostnames, string ipAddress ) : bool
DynamicDnsClientBase::UpdateHostnames ( string hostnames ) : bool
DynamicDnsClientBase::UpdateHostnames ( string hostnames, string ipAddress ) : bool