public void UpdateDomain(String zone, String record)
        {
            log.Info("Fetching current external IP...");

            String currentIp = NetworkUtility.GetCurrentIpAddress();

            if (currentIp != null)
            {
                // Normalize string
                currentIp = Regex.Replace(currentIp, @"\r\n?|\n", "");
                currentIp = currentIp.Trim();
            }
            if (NetworkUtility.IsValidIpAddress(currentIp))
            {
                UpdateDomain(zone, record, currentIp);
            }
            else
            {
                log.ErrorFormat("Address {0} is not a valid IP address", currentIp);
            }
        }