I am trying to use dnspython to update a timestamp on a number of PTR records.
An existing script that uses the system nsupdate looks something like this:
server <IP of DNS server>
send
update
However from documentation and testing, I believe I need the PTR zone name to use dnspython for this purpose i.e.
record = dns.update.Update(zone='16.172.in-addr.arpa')
record.replace('10.1.16.172.in-addr.arpa.','3600','PTR','server2.example.com.')
dns.query.tcp(record, '<IP of DNS server>')
Is there any option to use dnspython to update PTR records without providing the PTR zone name similar to the nsupdate tool?