Modify reverse lookup with forward lookup

I have a CLI script that runs through NSUPDATE for a DDNS unix server. It accepts user input and adds/modifies/deletes records as needed. I’m not sure how to, or if you can, modify a reverse zone record when a forward zone record is being change. Say

nslookup host1.zone1 = 1.2.3.4
nslookup 1.2.3.4  = host.zone1

I want to run nsupdate as follows.

nsupdate
server info ....
update add host1.zone1 86400 IN A 5.6.7.8
send

I’m wondering if there is a way to link the reverse record to the forward record so just editing the forward zone record changes both.

nslookup host1.zone1 = 5.6.7.8
nslookup 5.6.7.8 = not found (want this to show host1.zone1)
nslookup 1.2.3.4 = host1.zone1 (want this to show not found)


Source: unix

Leave a Reply