Orphaned CNAMES

Jim Reid jim at rfc1035.com
Mon Dec 11 19:14:30 UTC 2000


>>>>> "Matt" == Matt Campbell <mrcsys at rit.edu> writes:

    Matt> I am attempting to clean up our BIND databases after years
    Matt> of neglect.  I was wondering if anyone had any insight in to
    Matt> how I might eleminate orphaned CNAME records.  What I mean
    Matt> by orphans is CNAMEs that point to A records that no longer
    Matt> exist.

Er, write a script...?

	for i in list-of-CNAMEs
	do
		if dig $i[target] | grep NXDOMAIN then
			delete $i
	done



More information about the bind-users mailing list