mysql services
diff --git a/files/pdns.conf b/files/pdns.conf
index 873f38c..3a51884 100644
--- a/files/pdns.conf
+++ b/files/pdns.conf
@@ -1,3 +1,4 @@
+{%- from "pdns/map.jinja" import server with context %}
 # Autogenerated configuration file template
 #################################
 # allow-axfr-ips    If enabled, restrict zonetransfers to originate from these
@@ -79,7 +80,7 @@
 #################################
 # launch	Which backends to launch and order to query them in
 #
-launch=gmysql
+launch={% if server.backend.engine == 'mysql' %}gmysql{% else %}{{ server.backend.engine }}{% endif %}
 
 #################################
 # load-modules	Load this module - supply absolute or relative path
@@ -89,7 +90,7 @@
 #################################
 # local-address	Local IP address to which we bind
 #
-local-address=0.0.0.0
+local-address={{ server.bind.address }}
 
 #################################
 # local-ipv6	Local IP address to which we bind
@@ -99,7 +100,7 @@
 #################################
 # local-port	The port on which we listen
 #
-local-port=53
+local-port={{ server.bind.port }}
 
 #################################
 # log-dns-details	If PDNS should log failed update requests