def named_checkzone(self, zone_file, root_domain):
        # Make sure we have the write tools to do the job
        command_str = "test -f {0}".format(NAMED_CHECKZONE)
        self.shell_out(command_str, message="Couldn't find named-checkzone")

        # Check the zone file.
        command_str = "{0} {1} {2} {3}".format(
                      NAMED_CHECKZONE, self.NAMED_CHECKZONE_OPTS,
                      root_domain.name, zone_file)
        self.log(
            "Calling `{0} {1} {2}`".
            format(NAMED_CHECKZONE, root_domain.name, zone_file),
            root_domain=root_domain
        )
        self.shell_out(command_str, message='named-checkzone failed on zone')
Shell out and call named-checkzone on the zone file. If it returns
dataset/ETHPy150Open mozilla/inventory/mozdns/mozbind/builder.py/DNSBuilder.named_checkzone