Skip to content

Commit

Permalink
Use RH default zone file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Belanger authored and prolixalias committed Oct 23, 2019
1 parent ce2b021 commit 1118eda
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 26 deletions.
10 changes: 4 additions & 6 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "autostructure-dns",
"version": "1.0.0",
"version": "1.0.5",
"author": "Adam Jahn",
"summary": "Module for provisioning DNS (bind9)",
"license": "Apache-2.0",
Expand All @@ -21,15 +21,13 @@
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"5.0",
"6.0"
"7.0"
]
},
{
"operatingsystem": "Ubuntu",
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"12.04",
"10.04"
"7.0"
]
}
],
Expand Down
52 changes: 32 additions & 20 deletions templates/named.conf.default-zones.erb
Original file line number Diff line number Diff line change
@@ -1,30 +1,42 @@
// File managed with puppet
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "<%= @cfg_dir %>/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
// and http://www.ietf.org/internet-drafts/draft-ietf-dnsop-default-local-zones-02.txt
// (c)2007 R W Franks
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

zone "localhost" {
zone "localhost.localdomain" IN {
type master;
file "<%= @cfg_dir %>/db.local";
file "named.localhost";
allow-update { none; };
};

zone "127.in-addr.arpa" {
type master;
file "<%= @cfg_dir %>/db.127";
};
zone "localhost" IN {
type master;
file "named.localhost";
allow-update { none; };
};

zone "0.in-addr.arpa" {
type master;
file "<%= @cfg_dir %>/db.0";
zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.loopback";
allow-update { none; };
};

zone "255.in-addr.arpa" {
type master;
file "<%= @cfg_dir %>/db.255";
zone "1.0.0.127.in-addr.arpa" IN {
type master;
file "named.loopback";
allow-update { none; };
};

zone "0.in-addr.arpa" IN {
type master;
file "named.empty";
allow-update { none; };
};

0 comments on commit 1118eda

Please sign in to comment.