mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Integrate new bind-dyndb-ldap features to automatically track
DNS data changes:
1) Zone refresh
Set --zone-refresh in installation to define number of seconds
between bind-dyndb-ldap polls for new DNS zones. User now
doesn't have to restart name server when a new zone is added.
2) New zone notifications
Use LDAP persistent search mechanism to immediately get
notification when any new DNS zone is added. Use --zone-notif
install option to enable. This option is mutually exclusive
with Zone refresh.
To enable this functionality in existing IPA installations,
update a list of arguments for bind-dyndb-ldap in /etc/named.conf.
An example when zone refresh is disabled and DNS data change
notifications (argument psearch of bind-dyndb-ldap) are enabled:
dynamic-db "ipa" {
...
arg "zone_refresh 0";
arg "psearch yes";
};
This patch requires bind-dyndb-ldap-1.0.0-0.1.b1 or later.
https://fedorahosted.org/freeipa/ticket/826
50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
options {
|
|
// turns on IPv6 for port 53, IPv4 is on by default for all ifaces
|
|
listen-on-v6 {any;};
|
|
|
|
// Put files that named is allowed to write in the data/ directory:
|
|
directory "/var/named"; // the default
|
|
dump-file "data/cache_dump.db";
|
|
statistics-file "data/named_stats.txt";
|
|
memstatistics-file "data/named_mem_stats.txt";
|
|
|
|
forward first;
|
|
forwarders {$FORWARDERS};
|
|
|
|
// Any host is permitted to issue recursive queries
|
|
allow-recursion { any; };
|
|
|
|
tkey-gssapi-credential "DNS/$FQDN";
|
|
tkey-domain "$REALM";
|
|
};
|
|
|
|
/* If you want to enable debugging, eg. using the 'rndc trace' command,
|
|
* By default, SELinux policy does not allow named to modify the /var/named directory,
|
|
* so put the default debug log file in data/ :
|
|
*/
|
|
logging {
|
|
channel default_debug {
|
|
file "data/named.run";
|
|
severity dynamic;
|
|
};
|
|
};
|
|
|
|
zone "." IN {
|
|
type hint;
|
|
file "named.ca";
|
|
};
|
|
|
|
include "/etc/named.rfc1912.zones";
|
|
|
|
dynamic-db "ipa" {
|
|
library "ldap.so";
|
|
arg "uri ldapi://%2fvar%2frun%2fslapd-$SERVER_ID.socket";
|
|
arg "base cn=dns, $SUFFIX";
|
|
arg "fake_mname $FQDN.";
|
|
arg "auth_method sasl";
|
|
arg "sasl_mech GSSAPI";
|
|
arg "sasl_user DNS/$FQDN";
|
|
arg "zone_refresh $ZONE_REFRESH";
|
|
arg "psearch $PERSISTENT_SEARCH";
|
|
};
|