summaryrefslogtreecommitdiff
path: root/cfengine/cf.services.dns
diff options
context:
space:
mode:
authorJuri Jensen <juri@xenux.dk>2001-09-12 12:03:18 +0000
committerJuri Jensen <juri@xenux.dk>2001-09-12 12:03:18 +0000
commita06f2d5e639d6a3bdeeb3062ebc754cce287eb19 (patch)
treedf8b5c9747ab039ecd5ec763265833df9bf794c3 /cfengine/cf.services.dns
Initial revision
Diffstat (limited to 'cfengine/cf.services.dns')
-rw-r--r--cfengine/cf.services.dns27
1 files changed, 27 insertions, 0 deletions
diff --git a/cfengine/cf.services.dns b/cfengine/cf.services.dns
new file mode 100644
index 0000000..760e30e
--- /dev/null
+++ b/cfengine/cf.services.dns
@@ -0,0 +1,27 @@
+editfiles:
+ { /etc/bind/named.conf
+# BeginGroupIfNoLineContaining "logging "
+ BeginGroupIfNoLineMatching '\<logging[[:space:]]*\{'
+ Append "logging {"
+ Append " category lame-servers { null; };"
+ Append " category cname { null; };"
+ Append " category response-checks { null; };"
+ Append " category statistics { null; };"
+ Append "}"
+ EndGroup
+ WarnIfNoLineMatching '\<logging[[:space:]]*\{'
+ LocateLineMatching '\<logging[[:space:]]*\{'
+ AbortAtLineMatching '\}'
+ -> AppendIfNoLineMatching '\<category[[:blank:]]*lame-servers\>'
+ Append " category lame-servers { null; };"
+ EndGroup
+ BeginGroupIfNoLineMatching '\<category[[:blank:]]*cname\>'
+ Append " category cname { null; };"
+ EndGroup
+ BeginGroupIfNoLineMatching '\<category[[:blank:]]*response-checks\>'
+ Append " category response-checks { null; };"
+ EndGroup
+ BeginGroupIfNoLineMatching '\<category[[:blank:]]*statistics\>'
+ Append " category statistics { null; };"
+ EndGroup
+ }