Comments (3)
I add my dynamic zones via an include directive and manage their initial zone file outside the module where I can specify "replace => no"
from puppet-bind.
@qs5779 this is what I was trying to do but I'm a bit new to this could you give an example that I can use?
from puppet-bind.
the excerpt below is from my setup with file names, ip addresses, hostnames and domain names changed for example
$varnameddynfiles = [
'12.168.192.ip4.ddns.rdns',
'6.6.6.6.6.6.6.6.6.6.6.6.6.6.6.2.ip6.ddns.rdns',
'my.sub.domain.com.ddns.zone',
'mydomain.ddns.zone'
]
$varnameddynfiles.each | $fn | {
file { "/var/named/dynamic/${fn}":
ensure => present,
group => 'named',
mode => '0640',
replace => 'no',
source => "puppet:///modules/profile/var/named/dynamic/${fn}"
}
}
$views = {
'a_local_resolver' => {
match-clients => [ '!key inside', '!key outside', 'localhost' ],
recursion => 'yes',
includes => [ '/var/named/my.view.localhost.zones', '/etc/named.rfc1912.zones' ]
},
'b_inside' => {
match-clients => [ 'key inside', 'my_locnets' ],
recursion => 'yes',
includes => [ '/var/named/my.view.inside.zones', '/etc/named.rfc1912.zones' ]
},
'c_outside' => {
match-clients => [ 'any' ],
includes => [ '/var/named/my.view.outside.zones' ]
}
}
in the above configuration my local view is the master for my dynamic zones and inside and outside are slaves
i have four dynamic zones two regular and two reverse, the private reverse zone is not in the outside view, and one of the regular zones is not in the outside view.
in this configuration the 4 base files are only used for the initial server setup as replace is "no", and after the server starts they are updated dynamically.
on occasions when i need to update ( add or delete ) a static entry i have to update the dynamic files and static files.
someday i hope to generate the originals and verify / update the dynamic files from a database, but that will only happen if I get around to it
from puppet-bind.
Related Issues (20)
- Hiera Support HOT 1
- on Debain bullseye file_bindkeys is not '/etc/named.iscdlv.key'
- Support for response-policy? HOT 1
- BIND does not load configuration due to rmeoved dnssec-enable and dnssec-lookaside options HOT 1
- Upstream release with Puppet 8 support? HOT 1
- missing controls clause in named.conf HOT 2
- Ubuntu 16.04 HOT 2
- Views are sorted alphabetically, not in file order HOT 2
- please consider supporting replace for bind:.server::file
- Support 'forward' configuration option
- Add also_notify to options HOT 1
- tsig/keys documentation
- Hard coded logging locations HOT 5
- Undefined method for 'join'
- Assistance tweaking this package for Ubuntu? HOT 1
- Please add support for statistics-channels
- split config files in directory
- Puppet 5.x support HOT 1
- rndc freeze|thaw
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-bind.