Display the DNS update response
authorGreg Burri <greg.burri@gmail.com>
Tue, 13 Jul 2021 18:31:07 +0000 (20:31 +0200)
committerGreg Burri <greg.burri@gmail.com>
Tue, 13 Jul 2021 18:31:07 +0000 (20:31 +0200)
src/main.rs

index 280b718..67c251a 100644 (file)
@@ -175,5 +175,7 @@ fn update_record_ip(api_key: &str, name: &str, fqdn: &str, ip: Ipv4Addr, ttl: i3
 
     let json_value = request_livedns_gandi(api_key, &format!("domains/{}/records/{}/A", fqdn, name), Method::Put(json_body.to_string()))?;
 
+    println!("Update response: {}", json_value);
+
     Ok(())
 }