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
|
$TTL 86400
|
||||||
@ IN SOA localhost. root.localhost. (
|
@ IN SOA localhost. root.localhost. (
|
||||||
1 ; Serial
|
1 ; Serial
|
||||||
604800 ; Refresh
|
60 ; Refresh
|
||||||
86400 ; Retry
|
30 ; Retry
|
||||||
2419200 ; Expire
|
300 ; Expire
|
||||||
86400 ) ; Negative Cache TTL
|
10 ) ; Negative Cache TTL
|
||||||
;
|
;
|
||||||
@ IN NS localhost.
|
@ IN NS localhost.
|
||||||
|
|||||||
@ -38,6 +38,7 @@ define bind::zone (
|
|||||||
} else {
|
} else {
|
||||||
$_source = 'puppet:///modules/bind/db.empty'
|
$_source = 'puppet:///modules/bind/db.empty'
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "${cachedir}/${name}":
|
file { "${cachedir}/${name}":
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => $bind::params::bind_user,
|
owner => $bind::params::bind_user,
|
||||||
@ -46,7 +47,6 @@ define bind::zone (
|
|||||||
require => Package['bind'],
|
require => Package['bind'],
|
||||||
}
|
}
|
||||||
|
|
||||||
unless $zone_type == 'stub' {
|
|
||||||
file { "${cachedir}/${name}/${_domain}":
|
file { "${cachedir}/${name}/${_domain}":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
owner => $bind::params::bind_user,
|
owner => $bind::params::bind_user,
|
||||||
@ -79,7 +79,6 @@ define bind::zone (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
file { "${bind::confdir}/zones/${name}.conf":
|
file { "${bind::confdir}/zones/${name}.conf":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user