Display the hostname when renewing.
authorGreg Burri <greg.burri@gmail.com>
Fri, 16 Jul 2021 09:36:07 +0000 (11:36 +0200)
committerGreg Burri <greg.burri@gmail.com>
Fri, 16 Jul 2021 09:36:07 +0000 (11:36 +0200)
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);
         }
     }