From f8e2032e586e92d20a9ea0022b41fe6c32ebeceb Mon Sep 17 00:00:00 2001 From: Russ Long Date: Fri, 30 Mar 2018 13:00:01 -0400 Subject: [PATCH] Create Zone --- app/Http/Controllers/PagesController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index 09fadf8..bf0630a 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -30,8 +30,11 @@ class PagesController extends Controller $result = $client->post('http://127.0.0.1:8081/api/v1/servers/localhost/zones', [ 'form_params' => [ 'kind' => 'Native', + 'masters' => []; 'name' => $zone_name, - 'nameservers' => 'pdnstest.tfmm.co', + 'nameservers' => [ + '0' => 'pdnstest.tfmm.co' + ], 'records' => [ '0' => [ 'content' => 'pdnstest.tfmm.co. hostmaster.tfmm.co. 1 1800 900 604800 86400',