Display the hostname when renewing.
[gandi_dns_update.git] / src / main.rs
index f9d8f4e..4b0d196 100644 (file)
@@ -52,7 +52,7 @@ fn check_and_update_dns(api_key: &str, domains: &Vec<(String, String)>, ttl: i32
         if real_ip != current_ip {
             println!("IP addresses don't match for domain {}: real = {}, dns = {}. Renewing DNS...", domain, real_ip, current_ip);
             update_record_ip(api_key, hostname, domain, real_ip, ttl)?;
-            println!("Renewing of {} successfully", domain);
+            println!("Renewing of {}.{} successfully", hostname, domain);
         }
     }