DNS Propagation Delays on APIv4 DNS Record ID


Python Code returns NONE on newly created DNS A records while the old ones returns ID properly at this moment. My auto DDNS python not detecting record ID right for newly created A records and keep adding new A record instead editing the old ones. Newly created A record’s RECORD ID would not return properly in APIv4
url_path = ‘/zones/{}/dns_records’.format(ZONE_ID)
r = requests.get(base_url.format(url_path), headers=headers)
for res in r.json()[‘result’]:
if res[‘name’] == ‘{}.{}’.format(RECORD, ZONE):
RECORD_ID = res[‘id’]

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.