From 48237d1b0f7ce7502f5544ee8c3a463be75920fb Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Tue, 2 Apr 2024 13:01:40 -0600 Subject: [PATCH] fix :3 --- records.json | 38 +++++++++++++++++++------------------- script.py | 8 ++++---- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/records.json b/records.json index 2213fbc..0eaf4e1 100644 --- a/records.json +++ b/records.json @@ -1,78 +1,78 @@ [ { "type": "A", - "name": "johan.internal.simponic.xyz.", + "name": "johan.internal.simponic.xyz", "content": "100.64.0.5", "ttl": "43200", "internal": "on" }, { "type": "A", - "name": "europa.internal.simponic.xyz.", + "name": "europa.internal.simponic.xyz", "content": "100.64.0.8", "ttl": "43200", "internal": "on" }, { "type": "CNAME", - "name": "vaultwarden.internal.simponic.xyz.", + "name": "vaultwarden.internal.simponic.xyz", "content": "johan.internal.simponic.xyz", "ttl": "43200", "internal": "on" }, { "type": "CNAME", - "name": "lldap.internal.simponic.xyz.", - "content": "johan.internal.simponic.xyz.", + "name": "lldap.internal.simponic.xyz", + "content": "johan.internal.simponic.xyz", "ttl": "43200", "internal": "on" }, { "type": "CNAME", - "name": "ca.internal.simponic.xyz.", - "content": "johan.internal.simponic.xyz.", + "name": "ca.internal.simponic.xyz", + "content": "johan.internal.simponic.xyz", "ttl": "43200", "internal": "on" }, { "type": "CNAME", - "name": "pihole.internal.simponic.xyz.", - "content": "johan.internal.simponic.xyz.", + "name": "pihole.internal.simponic.xyz", + "content": "johan.internal.simponic.xyz", "ttl": "43200", "internal": "on" }, { "type": "CNAME", - "name": "owncloud.internal.simponic.xyz.", - "content": "europa.internal.simponic.xyz.", + "name": "owncloud.internal.simponic.xyz", + "content": "europa.internal.simponic.xyz", "ttl": "43200", "internal": "on" }, { "type": "CNAME", - "name": "jellyfin.internal.simponic.xyz.", - "content": "europa.internal.simponic.xyz.", + "name": "jellyfin.internal.simponic.xyz", + "content": "europa.internal.simponic.xyz", "ttl": "43200", "internal": "on" }, { "type": "CNAME", - "name": "drone.internal.simponic.xyz.", - "content": "europa.internal.simponic.xyz.", + "name": "drone.internal.simponic.xyz", + "content": "europa.internal.simponic.xyz", "ttl": "43200", "internal": "on" }, { "type": "CNAME", - "name": "scurvy.internal.simponic.xyz.", - "content": "europa.internal.simponic.xyz.", + "name": "scurvy.internal.simponic.xyz", + "content": "europa.internal.simponic.xyz", "ttl": "43200", "internal": "on" }, { "type": "CNAME", - "name": "roundcube.internal.simponic.xyz.", - "content": "europa.internal.simponic.xyz.", + "name": "roundcube.internal.simponic.xyz", + "content": "europa.internal.simponic.xyz", "ttl": "43200", "internal": "on" } diff --git a/script.py b/script.py index ed97e8e..17ac6bc 100644 --- a/script.py +++ b/script.py @@ -16,16 +16,16 @@ class HatecomputersDNSAdapter: def post_record(self, record): endpoint = self.endpoint + "/dns" - logging.info("adding", record, "at", endpoint) + logging.info(f"adding {record} to {endpoint}") self.session.post(endpoint, headers=self.headers, data=record) - def post_records(self, dns_entries, sleep_time=300): + def post_records(self, dns_entries, eepy_time=0.25): for record in dns_entries: self.post_record(record) - logging.info("sleeping", sleep_time) - time.sleep(sleep_time) + logging.info(f"sleeping for {eepy_time}") + time.sleep(eepy_time) if __name__ == "__main__": logging.basicConfig()