From be647cc26a32a986917542ecb58867da8b6f7d37 Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Wed, 22 Aug 2018 15:39:11 +0200 Subject: [PATCH] Do not insert 'localhost', we are autodetecting the API url --- includes/class/PdnsApi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class/PdnsApi.php b/includes/class/PdnsApi.php index 6acaa10..0f9d8b7 100644 --- a/includes/class/PdnsApi.php +++ b/includes/class/PdnsApi.php @@ -64,7 +64,7 @@ class PdnsAPI { if (!isset($zone['serial']) or gettype($zone['serial']) != 'integer') { $api->method = 'POST'; - $api->url = '/localhost/zones'; + $api->url = '/zones'; $api->content = json_encode($zonedata); $api->call();