--- .svn/text-base/bind.py.svn-base 2012-12-10 10:42:45.497623697 +0100 +++ bind.py 2012-12-14 09:44:22.637619227 +0100 @@ -150,12 +150,16 @@ """Handle removal of zone.""" ud.debug(ud.LISTENER, ud.INFO, 'DNS: Removing zone %s' % (zonename,)) zonefile = os.path.join(NAMED_CONF_DIR, zonename) + cached_zonefile = os.path.join(NAMED_CACHE_DIR, zonename + '.zone') # Remove zone file if os.path.exists(zonefile): os.unlink(zonefile) # Remove proxy configuration file if os.path.exists(zonefile + '.proxy'): os.unlink(zonefile + '.proxy') + # Remove cached zone file + if os.path.exists(cached_zonefile): + os.unlink(cached_zonefile) global __zone_created_or_removed __zone_created_or_removed = True