--- designate-2013.2.orig/designate/backend/impl_bind9.py 2014-02-11 22:33:09.170212750 +0100 +++ designate-2013.2/designate/backend/impl_bind9.py 2014-02-14 21:13:01.977357560 +0100 @@ -33,6 +33,7 @@ cfg.StrOpt('rndc-config-file', default=None, help='RNDC Config File'), cfg.StrOpt('rndc-key-file', default=None, help='RNDC Key File'), + cfg.StrOpt('bind9-zone-path', default='/var/cache/bind', help='Path where bind stores the nzf files'), ], group='backend:bind9') @@ -124,7 +125,7 @@ #zones.config file we wish to maintain. The file name can change as it #is a hash of rndc view name, we're only interested in the first file #name this returns because there is only one .nzf file - nzf_name = glob.glob('/var/cache/bind/*.nzf') + nzf_name = glob.glob('%s/*.nzf' % cfg.CONF[self.name].bind9_zone_path) output_file = os.path.join(output_folder, 'zones.config') @@ -168,7 +169,7 @@ LOG.debug('Calling RNDC with: %s' % " ".join(rndc_call)) utils.execute(*rndc_call) - nzf_name = glob.glob('/var/cache/bind/*.nzf') + nzf_name = glob.glob('%s/*.nzf' % cfg.CONF[self.name].bind9_zone_path) output_file = os.path.join(output_folder, 'zones.config')