I am trying to create/edit a DNS record, of type A, with no success. The documentation is terrible, and I could not find any further examples.
I wish to create new A record in my DNS server OR editing an existing record(like change its ip address or hostname)
What I found till now(not working for me) is:
for creating:
record = dns.update.Update(ZONE_NAME)
record.add(name, ttl, rdtype, rdata) \\name=fqdn of server, rdata=ip address of server
dns.query.tcp(record, DNS_SERVER_ADDRESS)
for editing record: same just replace the update.add
with update.replace
I would appreciate any help