From c996a144508da9a43701c7da934e9148c729a7d9 Mon Sep 17 00:00:00 2001 From: iliajie Date: Sun, 17 Jul 2022 00:49:31 +0300 Subject: [PATCH] Fix BIND configs for modern distros --- bind8/config-AlmaLinux-6.0-ALL | 12 ++--- ...ux-6.0-ALL => config-CentOS-Linux-6.0-7.0} | 0 bind8/config-CentOS-Linux-8.0-ALL | 52 +++++++++++++++++++ bind8/config-Rocky-Linux-6.0-ALL | 12 ++--- bind8/config-debian-linux-10.0-ALL | 49 +++++++++++++++++ ...ux-3.1-ALL => config-debian-linux-3.1-9.0} | 0 bind8/config-redhat-linux-24.0-ALL | 3 +- 7 files changed, 110 insertions(+), 18 deletions(-) rename bind8/{config-CentOS-Linux-6.0-ALL => config-CentOS-Linux-6.0-7.0} (100%) create mode 100644 bind8/config-CentOS-Linux-8.0-ALL create mode 100644 bind8/config-debian-linux-10.0-ALL rename bind8/{config-debian-linux-3.1-ALL => config-debian-linux-3.1-9.0} (100%) diff --git a/bind8/config-AlmaLinux-6.0-ALL b/bind8/config-AlmaLinux-6.0-ALL index de126f1bf..eadde15ec 100644 --- a/bind8/config-AlmaLinux-6.0-ALL +++ b/bind8/config-AlmaLinux-6.0-ALL @@ -3,8 +3,6 @@ named_path=/usr/sbin/named named_conf=/etc/named.conf show_list=1 records_order=0 -start_cmd=service named start -stop_cmd=service named stop max_zones=50 rev_def=0 support_aaaa=1 @@ -12,7 +10,7 @@ allow_comments=0 allow_wild=1 allow_long=0 master_ttl=1 -pid_file=/var/run/named.pid /run/named.pid +pid_file=/run/named/named.pid whois_cmd=whois short_names=0 updserial_def=0 @@ -42,15 +40,13 @@ keygen=dnssec-keygen signzone=dnssec-signzone checkconf=named-checkconf other_slaves=1 -restart_cmd=restart keygen=dnssec-keygen tmpl_dnssec=0 dnssec_period=21 tmpl_dnssec_dt=1 -dnssectools_conf=/etc/dnssec-tools/dnssec-tools.conf -dnssectools_rollrec=/var/named/system.rollrec -dnssectools_keydir=/var/named/dtkeys -dnssectools_rollmgr_pidfile=/var/run/rollmgr.pid force_random=0 spf_record=0 dnssec_info=1 +start_cmd=systemctl start named.service +stop_cmd=systemctl stop named.service +restart_cmd=systemctl reload named.service diff --git a/bind8/config-CentOS-Linux-6.0-ALL b/bind8/config-CentOS-Linux-6.0-7.0 similarity index 100% rename from bind8/config-CentOS-Linux-6.0-ALL rename to bind8/config-CentOS-Linux-6.0-7.0 diff --git a/bind8/config-CentOS-Linux-8.0-ALL b/bind8/config-CentOS-Linux-8.0-ALL new file mode 100644 index 000000000..eadde15ec --- /dev/null +++ b/bind8/config-CentOS-Linux-8.0-ALL @@ -0,0 +1,52 @@ +soa_style=1 +named_path=/usr/sbin/named +named_conf=/etc/named.conf +show_list=1 +records_order=0 +max_zones=50 +rev_def=0 +support_aaaa=1 +allow_comments=0 +allow_wild=1 +allow_long=0 +master_ttl=1 +pid_file=/run/named/named.pid +whois_cmd=whois +short_names=0 +updserial_def=0 +updserial_on=1 +updserial_man=1 +ndc_cmd=ndc +forwardzonefilename_format=ZONE.hosts +reversezonefilename_format=ZONE.rev +rev_must=0 +ipv6_mode=1 +allow_underscore=1 +by_view=0 +confirm_zone=1 +confirm_rec=0 +no_chroot=0 +relative_paths=0 +rndc_cmd=rndc +master_dir=/var/named +slave_dir=/var/named/slaves +no_pid_chroot=0 +soa_start=0 +rndc_conf=/etc/rndc.conf +rndcconf_cmd=rndc-confgen +largezones=0 +checkzone=named-checkzone +keygen=dnssec-keygen +signzone=dnssec-signzone +checkconf=named-checkconf +other_slaves=1 +keygen=dnssec-keygen +tmpl_dnssec=0 +dnssec_period=21 +tmpl_dnssec_dt=1 +force_random=0 +spf_record=0 +dnssec_info=1 +start_cmd=systemctl start named.service +stop_cmd=systemctl stop named.service +restart_cmd=systemctl reload named.service diff --git a/bind8/config-Rocky-Linux-6.0-ALL b/bind8/config-Rocky-Linux-6.0-ALL index de126f1bf..eadde15ec 100644 --- a/bind8/config-Rocky-Linux-6.0-ALL +++ b/bind8/config-Rocky-Linux-6.0-ALL @@ -3,8 +3,6 @@ named_path=/usr/sbin/named named_conf=/etc/named.conf show_list=1 records_order=0 -start_cmd=service named start -stop_cmd=service named stop max_zones=50 rev_def=0 support_aaaa=1 @@ -12,7 +10,7 @@ allow_comments=0 allow_wild=1 allow_long=0 master_ttl=1 -pid_file=/var/run/named.pid /run/named.pid +pid_file=/run/named/named.pid whois_cmd=whois short_names=0 updserial_def=0 @@ -42,15 +40,13 @@ keygen=dnssec-keygen signzone=dnssec-signzone checkconf=named-checkconf other_slaves=1 -restart_cmd=restart keygen=dnssec-keygen tmpl_dnssec=0 dnssec_period=21 tmpl_dnssec_dt=1 -dnssectools_conf=/etc/dnssec-tools/dnssec-tools.conf -dnssectools_rollrec=/var/named/system.rollrec -dnssectools_keydir=/var/named/dtkeys -dnssectools_rollmgr_pidfile=/var/run/rollmgr.pid force_random=0 spf_record=0 dnssec_info=1 +start_cmd=systemctl start named.service +stop_cmd=systemctl stop named.service +restart_cmd=systemctl reload named.service diff --git a/bind8/config-debian-linux-10.0-ALL b/bind8/config-debian-linux-10.0-ALL new file mode 100644 index 000000000..1221bc0df --- /dev/null +++ b/bind8/config-debian-linux-10.0-ALL @@ -0,0 +1,49 @@ +soa_style=1 +named_path=/usr/sbin/named +named_conf=/etc/bind/named.conf +show_list=1 +records_order=0 +max_zones=50 +rev_def=0 +support_aaaa=1 +allow_comments=0 +allow_wild=1 +allow_long=0 +master_ttl=1 +whois_cmd=whois +short_names=0 +updserial_def=0 +updserial_on=1 +updserial_man=1 +ndc_cmd=ndc +forwardzonefilename_format=ZONE.hosts +reversezonefilename_format=ZONE.rev +rev_must=0 +ipv6_mode=1 +allow_underscore=1 +by_view=0 +confirm_zone=1 +confirm_rec=0 +no_chroot=0 +relative_paths=0 +rndc_cmd=rndc +pid_file=/var/run/named/named.pid +zones_file=/etc/bind/named.conf.local +master_dir=/var/lib/bind +slave_dir=/var/lib/bind +no_pid_chroot=0 +soa_start=0 +rndc_conf=/etc/bind/rndc.conf +rndcconf_cmd=rndc-confgen +largezones=0 +checkzone=named-checkzone +keygen=dnssec-keygen +signzone=dnssec-signzone +checkconf=named-checkconf +other_slaves=1 +force_random=0 +spf_record=0 +dnssec_info=1 +start_cmd=systemctl start bind9.service +stop_cmd=systemctl stop bind9.service +restart_cmd=systemctl reload bind9.service diff --git a/bind8/config-debian-linux-3.1-ALL b/bind8/config-debian-linux-3.1-9.0 similarity index 100% rename from bind8/config-debian-linux-3.1-ALL rename to bind8/config-debian-linux-3.1-9.0 diff --git a/bind8/config-redhat-linux-24.0-ALL b/bind8/config-redhat-linux-24.0-ALL index e127299f7..68e3b2fa4 100644 --- a/bind8/config-redhat-linux-24.0-ALL +++ b/bind8/config-redhat-linux-24.0-ALL @@ -28,12 +28,10 @@ by_view=0 confirm_zone=1 confirm_rec=0 no_chroot=0 -chroot=/var/named/chroot relative_paths=0 rndc_cmd=rndc master_dir=/var/named slave_dir=/var/named/slaves -auto_chroot=sh -c '. /etc/sysconfig/named && echo "$ROOTDIR"' no_pid_chroot=0 soa_start=0 rndc_conf=/etc/rndc.conf @@ -47,3 +45,4 @@ other_slaves=1 force_random=0 spf_record=0 dnssec_info=1 +restart_cmd=systemctl reload named.service \ No newline at end of file