mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
named.conf: Disable duplicate zone on debian, and modify data dir
zone already imported via default zones. Reviewed-By: Stanislav Laznicka <slaznick@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
86ef31d760
commit
c5ee8ae529
@ -4,9 +4,9 @@ options {
|
||||
|
||||
// Put files that named is allowed to write in the data/ directory:
|
||||
directory "$NAMED_VAR_DIR"; // the default
|
||||
dump-file "data/cache_dump.db";
|
||||
statistics-file "data/named_stats.txt";
|
||||
memstatistics-file "data/named_mem_stats.txt";
|
||||
dump-file "${NAMED_DATA_DIR}cache_dump.db";
|
||||
statistics-file "${NAMED_DATA_DIR}named_stats.txt";
|
||||
memstatistics-file "${NAMED_DATA_DIR}named_mem_stats.txt";
|
||||
|
||||
// Any host is permitted to issue recursive queries
|
||||
allow-recursion { any; };
|
||||
@ -32,16 +32,16 @@ options {
|
||||
*/
|
||||
logging {
|
||||
channel default_debug {
|
||||
file "data/named.run";
|
||||
file "${NAMED_DATA_DIR}named.run";
|
||||
severity dynamic;
|
||||
print-time yes;
|
||||
};
|
||||
};
|
||||
|
||||
zone "." IN {
|
||||
type hint;
|
||||
file "named.ca";
|
||||
};
|
||||
${NAMED_ZONE_COMMENT}zone "." IN {
|
||||
${NAMED_ZONE_COMMENT} type hint;
|
||||
${NAMED_ZONE_COMMENT} file "named.ca";
|
||||
${NAMED_ZONE_COMMENT}};
|
||||
|
||||
include "$RFC1912_ZONES";
|
||||
include "$ROOT_KEY";
|
||||
|
@ -17,6 +17,8 @@ class BaseConstantsNamespace(object):
|
||||
KDCPROXY_USER = "kdcproxy"
|
||||
NAMED_USER = "named"
|
||||
NAMED_GROUP = "named"
|
||||
NAMED_DATA_DIR = "data/"
|
||||
NAMED_ZONE_COMMENT = ""
|
||||
PKI_USER = 'pkiuser'
|
||||
PKI_GROUP = 'pkiuser'
|
||||
# ntpd init variable used for daemon options
|
||||
|
@ -17,6 +17,8 @@ class DebianConstantsNamespace(BaseConstantsNamespace):
|
||||
HTTPD_GROUP = "www-data"
|
||||
NAMED_USER = "bind"
|
||||
NAMED_GROUP = "bind"
|
||||
NAMED_DATA_DIR = ""
|
||||
NAMED_ZONE_COMMENT = "//"
|
||||
# ntpd init variable used for daemon options
|
||||
NTPD_OPTS_VAR = "NTPD_OPTS"
|
||||
# quote used for daemon options
|
||||
|
@ -805,6 +805,8 @@ class BindInstance(service.Service):
|
||||
NAMED_VAR_DIR=paths.NAMED_VAR_DIR,
|
||||
BIND_LDAP_SO=paths.BIND_LDAP_SO,
|
||||
INCLUDE_CRYPTO_POLICY=crypto_policy,
|
||||
NAMED_DATA_DIR=constants.NAMED_DATA_DIR,
|
||||
NAMED_ZONE_COMMENT=constants.NAMED_ZONE_COMMENT,
|
||||
)
|
||||
|
||||
def __setup_dns_container(self):
|
||||
|
Loading…
Reference in New Issue
Block a user