inkblot / puppet-bind

18 stars 81 forks source link

Missing iscdlv #120

Closed rgarrigue closed 7 years ago

rgarrigue commented 7 years ago

Hello

I know this is meant to be deprecated in the year to come. But we really miss this one

   /* Path to ISC DLV key */
   bindkeys-file "/etc/named.iscdlv.key";

Otherwise we're flooded with error in the syslog. There's no way to include stuff in option { } that u didn't included yourself. And there are other we might want to include, at least play with here.

Regards,

inkblot commented 7 years ago

Where does the named.iscdlv.key file come from? What goes in it?

rgarrigue commented 7 years ago

It comes from the rpm. It's self explanatory :

/* $Id: bind.keys,v 1.5.42.2 2011-01-04 19:14:48 each Exp $ */
# The bind.keys file is used to override built-in DNSSEC trust anchors
# which are included as part of BIND 9. As of the current release (BIND
# 9.7), the only trust anchor it sets is the one for the ISC DNSSEC
# Lookaside Validation zone ("dlv.isc.org"). Trust anchors for any other
# zones MUST be configured elsewhere; if they are configured here, they
# will not be recognized or used by named.
#
# This file also contains a copy of the trust anchor for the DNS root zone
# ("."). However, named does not use it; it is provided here for
# informational purposes only. To switch on DNSSEC validation at the
# root, the root key below can be copied into named.conf.
#
# The built-in DLV trust anchor in this file is used directly by named.
# However, it is not activated unless specifically switched on. To use
# the DLV key, set "dnssec-lookaside auto;" in the named.conf options.
# Without this option being set, the key in this file is ignored.
#
# This file is NOT expected to be user-configured.
#
# These keys are current as of January 2011. If any key fails to
# initialize correctly, it may have expired. In that event you should
# replace this file with a current version. The latest version of
# bind.keys can always be obtained from ISC at https://www.isc.org/bind-keys
.
managed-keys {
# ISC DLV: See https://www.isc.org/solutions/dlv for details.
# NOTE: This key is activated by setting "dnssec-lookaside auto;"
# in named.conf.
dlv.isc.org. initial-key 257 3 5
"BEAAAAPHMu/5onzrEE7z1egmhg/WPO0+juoZrW3euWEn4MxDCE1+lLy2
brhQv5rN32RKtMzX6Mj70jdzeND4XknW58dnJNPCxn8+jAGl2FZLK8t+
1uq4W+nnA3qO2+DL+k6BD4mewMLbIYFwe0PG73Te9fZ2kJb56dhgMde5
ymX4BI/oQ+cAK50/xvJv00Frf8kw6ucMTwFlgPe+jnGxPPEmHAte/URk
Y62ZfkLoBAADLHQ9IrS2tryAe7mbBZVcOwIeU/Rw/mRx/vwwMCTgNboM
QKtUdvNXDrYJDSHZws3xiRXF1Rf+al9UmZfSav/4NWLKjHzpT59k/VSt
TDN0YUuWrBNh";
# ROOT KEY: See https://data.iana.org/root-anchors/root-anchors.xml
# for current trust anchor information.
# NOTE: This key is activated by setting "dnssec-validation auto;"
# in named.conf.
. initial-key 257 3 8
"AwEAAagAIKlVZrpC6Ia7gEzahOR+9W29euxhJhVVLOyQbSEW0O8gcCjF
FVQUTf6v58fLjwBd0YI0EzrAcQqBGCzh/RStIoO8g0NfnfL2MTJRkxoX
bfDaUeVPQuYEhg37NZWAJQ9VnMVDxP/VHL496M/QZxkjf5/Efucp2gaD
X6RS6CXpoY68LsvPVjR0ZSwzz1apAzvN9dlzEheX7ICJBBtuA6G3LQpz
W5hOA2hzCTMjJPJ8LbqF6dsV6DoBQzgul0sGIcGOYl7OyQdXfZ57relS
Qageu+ipAdTTJ25AsRTAoub8ONGcLmqrAmRLKBP1dfwhYB4N7knNnulq
QxA+Uk1ihz0=";
};

2017-04-16 15:35 GMT+02:00 Nate Riffe notifications@github.com:

Where does the named.iscdlv.key file come from? What goes in it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/inkblot/puppet-bind/issues/120#issuecomment-294352122, or mute the thread https://github.com/notifications/unsubscribe-auth/AByQn5lJ1Cs9EBJ53lm2NH0rOPAslcLNks5rwhkMgaJpZM4M8tY- .

inkblot commented 7 years ago

I've made a change and included it in version 7.2.2 of the module on the Puppet Forge.

It seems that this was working on Debian-based distributions because the file is installed as /etc/bind/bind.keys and the working directory of the BIND server is /etc/bind, which combined to leverage BIND's default behavior of looking for bind.keys. I've added the necessary configuration to make this explicit in named.conf and supply the correct value for RedHat-based distributions.