def build_zone(self, view, file_meta, view_data, root_domain):
        stage_fname = os.path.join(self.STAGE_DIR, file_meta['rel_fname'])
        self.write_stage_zone(
            stage_fname, root_domain, file_meta['rel_fname'], view_data
        )
        self.log(
            "Built stage_{0}_file to {1}".format(view.name, stage_fname),
            root_domain=root_domain
        )
        self.named_checkzone(stage_fname, root_domain)

        prod_fname = self.stage_to_prod(stage_fname)

        return prod_fname
This function will write the zone's zone file to the the staging area
dataset/ETHPy150Open mozilla/inventory/mozdns/mozbind/builder.py/DNSBuilder.build_zone