2000-12-14 16:33:11 -05:00
|
|
|
/*
|
2014-02-19 18:53:11 -05:00
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2001-01-09 17:01:04 -05:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
2021-06-03 02:37:05 -04:00
|
|
|
*
|
2001-01-09 17:01:04 -05:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-02-23 03:53:12 -05:00
|
|
|
*
|
2001-01-09 17:01:04 -05:00
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
|
* information regarding copyright ownership.
|
2000-12-14 16:33:11 -05:00
|
|
|
*/
|
|
|
|
|
|
2021-10-05 10:49:47 -04:00
|
|
|
#pragma once
|
2000-12-14 16:33:11 -05:00
|
|
|
|
2005-04-27 00:57:32 -04:00
|
|
|
/*! \file */
|
|
|
|
|
|
2018-03-28 08:19:37 -04:00
|
|
|
#include <inttypes.h>
|
2018-04-17 11:29:14 -04:00
|
|
|
#include <stdbool.h>
|
2018-03-28 08:19:37 -04:00
|
|
|
|
2007-05-20 22:47:25 -04:00
|
|
|
#include <isc/stdio.h>
|
2000-12-14 16:33:11 -05:00
|
|
|
#include <isc/types.h>
|
2005-06-19 21:05:33 -04:00
|
|
|
|
|
|
|
|
#include <dns/masterdump.h>
|
2001-09-03 04:21:46 -04:00
|
|
|
#include <dns/types.h>
|
2018-04-03 17:56:04 -04:00
|
|
|
#include <dns/zone.h>
|
2000-12-14 16:33:11 -05:00
|
|
|
|
|
|
|
|
isc_result_t
|
2024-08-13 12:20:26 -04:00
|
|
|
setup_logging(FILE *errout);
|
2000-12-14 16:33:11 -05:00
|
|
|
|
2001-09-03 04:21:46 -04:00
|
|
|
isc_result_t
|
|
|
|
|
load_zone(isc_mem_t *mctx, const char *zonename, const char *filename,
|
2005-06-19 21:05:33 -04:00
|
|
|
dns_masterformat_t fileformat, const char *classname,
|
2014-02-19 02:26:50 -05:00
|
|
|
dns_ttl_t maxttl, dns_zone_t **zonep);
|
2001-09-03 04:21:46 -04:00
|
|
|
|
2004-01-07 00:27:17 -05:00
|
|
|
isc_result_t
|
2005-06-19 21:05:33 -04:00
|
|
|
dump_zone(const char *zonename, dns_zone_t *zone, const char *filename,
|
2011-12-08 11:07:22 -05:00
|
|
|
dns_masterformat_t fileformat, const dns_master_style_t *style,
|
2018-03-28 08:19:37 -04:00
|
|
|
const uint32_t rawversion);
|
2004-01-07 00:27:17 -05:00
|
|
|
|
2001-09-03 04:21:46 -04:00
|
|
|
extern int debug;
|
2013-01-09 19:56:46 -05:00
|
|
|
extern const char *journal;
|
2018-04-17 11:29:14 -04:00
|
|
|
extern bool nomerge;
|
|
|
|
|
extern bool docheckmx;
|
|
|
|
|
extern bool docheckns;
|
|
|
|
|
extern bool dochecksrv;
|
2018-04-03 17:56:04 -04:00
|
|
|
extern dns_zoneopt_t zone_options;
|