DNS record updates usually cannot be done directly with dnspython, as it is only used to read records. To update records, you need to use cloudflare, AWS Route 53, or Google Cloud DNS API. Which DNS service are you using? I can provide the code to use the API accordingly.