Identify the CNAME records that I need to remove:
for i in $(grep CNAME slaves/osop.cloud.lab.x.x.x.com | awk '{ print $1 }'); \
do echo "update delete $i.osop.cloud.lab.x.x.x.com CNAME" >> \
/pub/projects/openshift/ddns_configuration/zone_update.txt; \
done
Do a bit of cleanup:
vi /pub/projects/openshift/ddns_configuration/zone_update.txt
nsupdate -k /var/named/Kosop.cloud.lab.x.x.x.com.+157+06745.key -v \
/pub/projects/openshift/ddns_configuration/zone_update.txt
rndc freeze; rndc thaw; service named restart
vi slaves/osop.cloud.lab.x.x.x.com
for i in $(grep TXT slaves/osop.cloud.lab.x.x.x.com | awk '{ print $1 }'); \
do echo "update delete $i.osop.cloud.lab.x.x.x.com TXT" >> file1; \
done
cat file1 >> /pub/projects/openshift/ddns_configuration/zone_update.txt
vi /pub/projects/openshift/ddns_configuration/zone_update.txt
No comments:
Post a Comment