Tighten up the timing in db.empty
stub and slave zones need to be overwritten with data from their master server in a reasonable timeframe. Drop all of the intervals in the db.empty SOA down to sub-minute values to speed convergence.
This commit is contained in:
parent
22caf612ba
commit
f786420014
@ -1,9 +1,9 @@
|
||||
$TTL 86400
|
||||
@ IN SOA localhost. root.localhost. (
|
||||
1 ; Serial
|
||||
604800 ; Refresh
|
||||
86400 ; Retry
|
||||
2419200 ; Expire
|
||||
86400 ) ; Negative Cache TTL
|
||||
60 ; Refresh
|
||||
30 ; Retry
|
||||
300 ; Expire
|
||||
10 ) ; Negative Cache TTL
|
||||
;
|
||||
@ IN NS localhost.
|
||||
|
||||
@ -38,6 +38,7 @@ define bind::zone (
|
||||
} else {
|
||||
$_source = 'puppet:///modules/bind/db.empty'
|
||||
}
|
||||
|
||||
file { "${cachedir}/${name}":
|
||||
ensure => directory,
|
||||
owner => $bind::params::bind_user,
|
||||
@ -46,7 +47,6 @@ define bind::zone (
|
||||
require => Package['bind'],
|
||||
}
|
||||
|
||||
unless $zone_type == 'stub' {
|
||||
file { "${cachedir}/${name}/${_domain}":
|
||||
ensure => present,
|
||||
owner => $bind::params::bind_user,
|
||||
@ -79,7 +79,6 @@ define bind::zone (
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
file { "${bind::confdir}/zones/${name}.conf":
|
||||
ensure => present,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user