Allow defining keys
diff --git a/README.md b/README.md
index c36f678..33e1471 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,10 @@
     bind:
       server:
         enabled: true
+        key:
+          keyname:
+            secret: xyz
+            algorithm: hmac-sha512
         zone:
           sub.domain.com:
             ttl: 86400
diff --git a/bind/files/named.conf.local b/bind/files/named.conf.local
index 2d12e49..d6e3995 100644
--- a/bind/files/named.conf.local
+++ b/bind/files/named.conf.local
@@ -20,6 +20,13 @@
 
 {%- endfor %}
 
+{%- for keyname, key in server.get('key', {}).iteritems() %}
+key "{{ keyname }}" {
+    algorithm {{ key.algorithm }};
+    secret "{{ key.secret }}";
+};
+{%- endfor %}
+
 {#-
   vim: syntax=jinja
 #}