Skip to content

Commit 1a2f600

Browse files
author
A. Täffner
committed
final commit? Will test now a last time and if everything works as expected this will be my merge request
1 parent eaafeeb commit 1a2f600

File tree

4 files changed

+42
-7
lines changed

4 files changed

+42
-7
lines changed

TODO.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ Installer
1313
--------------------------------------
1414

1515
- Add a function to let a server join a existing installation.
16-
- Change named.options.conf and add follwoing lines into options-brackets for DNSSEC-Implementation:
17-
dnssec-enable yes;
18-
dnssec-validation yes;
19-
dnssec-lookaside auto;
20-
- Add Package haveged to requirements as it raises available entropy by more than 1500 which is very needed for DNSSEC Key-generation
16+
- Add Package haveged to requirements (at least if entropy is low) as it raises available entropy significantly which is very needed for DNSSEC Key-generation
17+
If it is not installed and entropy is low generating dnssec-keys lasts minutes (and would time out the server thus is not done) and new signing keys are not generated.
18+
If there are no keys the zones can not be signed and will only be availableas a unsigned copy.
2119

2220
Uninstaller
2321
--------------------------------------

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,7 @@ public function configure_bind() {
15171517
$this->process_bind_file('dnssec-autopickup.sh', '/server/scripts/');
15181518
$this->process_bind_file('dnssec-autocreate.sh', '/server/scripts/');
15191519
$this->process_bind_file('dnssec-config.sh', '/server/scripts/');
1520-
1520+
$this->process_bind_file('named.conf.options', $conf['bind']['bind_zonefiles_dir']);
15211521
}
15221522

15231523

install/tpl/dnssec-create.sh.master

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,18 @@ if [ "$mysqlcheck" = 0 ];then
77
echo "$0 could not connect to database"
88
exit 0
99
fi
10+
11+
if [ `cat /proc/sys/kernel/random/entropy_avail` -lt 400 ] ; then
12+
echo "ERROR: DNSSEC is not working as available entropy is below 400. Please consider installing package haveged. Skipping generation of keys as well as signing..."
13+
cp $filespre$domain $filespre$domain.signed
14+
mysql -u $dbuser --password=$dbpass -h $dbhost -Bse "use $dbase; UPDATE dns_soa SET dnssec_info='Error during generation of keys. Please contact our support. Reason: Too less entropy available.', dnssec_initialized='N' WHERE origin='$domain.'"
15+
exit 20
16+
fi
17+
1018
mysqlcheck=`mysql -u $dbuser --password=$dbpass -h $dbhost -Bse "use $dbase; select * from dns_soa where dnssec_initialized='Y' and origin='$domain.';" | wc -c`
1119
if [ "$mysqlcheck" -gt 1 ];then
12-
echo "$domain seems to be initialized. If that is wrong correct dnssec_initialized in dns_soa table"
20+
echo "DNSSEC: $domain seems to be initialized. If that is wrong correct dnssec_initialized in dns_soa table"
21+
exit 0
1322
fi
1423
cd $bindpath
1524

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
options {
2+
directory "/var/cache/bind";
3+
4+
// If there is a firewall between you and nameservers you want
5+
// to talk to, you may need to fix the firewall to allow multiple
6+
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
7+
8+
// If your ISP provided one or more IP addresses for stable
9+
// nameservers, you probably want to use them as forwarders.
10+
// Uncomment the following block, and insert the addresses replacing
11+
// the all-0's placeholder.
12+
13+
// forwarders {
14+
// 0.0.0.0;
15+
// };
16+
17+
//========================================================================
18+
// If BIND logs error messages about the root key being expired,
19+
// you will need to update your keys. See https://www.isc.org/bind-keys
20+
//========================================================================
21+
dnssec-enable yes;
22+
dnssec-validation yes;
23+
dnssec-lookaside auto;
24+
25+
auth-nxdomain no; # conform to RFC1035
26+
listen-on-v6 { any; };
27+
};
28+

0 commit comments

Comments
 (0)