diff --git a/config.json.defaults b/config.json.defaults
index 01569f7db04ebbebadf0e231671f4f2c4acf7537..58b3656954af38a7fab912c20f506d2914d852b8 100644
--- a/config.json.defaults
+++ b/config.json.defaults
@@ -6,8 +6,9 @@
 	"listenAddress": "127.0.0.1",
 	"listenPort": 3000,
 	"master": {
-		"address": "https://dyndns.example.com",
+		"address": "https://dyndns.mydomain.com",
 		"myId": "ns-test",
-		"key": "verysecret"
+		"key": "verysecret",
+		"syncRetryMax": 5
 	}
 }
\ No newline at end of file
diff --git a/index.js b/index.js
index 5f094f44f77f177f42175d7785fff9951941a5e9..f7aff1ba5182d953f81c564c16c3574e16fc0f0f 100644
--- a/index.js
+++ b/index.js
@@ -8,7 +8,7 @@ const db = config.getDb();
 const knotdns = require('./knotdns');
 
 // number of times to try syncing DNS records from master before giving up
-const retryMax = 5;
+const retryMax = config.config().master.syncRetryMax;
 
 
 // Synchronizes current DNS records from master