Hello,
I am struggling with adding and removing PTR records.
My code snippet is as follows:
name = input('Enter the subdomain wanted ([THIS].domain.tld.): ')
ip = input('Enter the designated IP address/alias wanted: ')
zone2 = dns.update.Update("230.186.136.in-addr.arpa.", keyring=key)
update2 = zone.add(name , 86400, dns.rdatatype.PTR, ip) #THIS IS NOT WORKING
response2 = dns.query.tcp(zone, '127.0.0.1')
I have been able to add A, MX etc. records to the normal file. However, have struggled getting it to work for the PTR.
May I please get assistance
Kind regards,
Josh