From 35895be641cbbb73511daee22582b778f45ec669 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Fri, 30 Mar 2018 14:21:42 -0400 Subject: [PATCH] Create Zone --- app/Http/Controllers/PagesController.php | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index 73c4ccb..e3d0b1b 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -32,22 +32,29 @@ class PagesController extends Controller 'nameservers' => [ 'ns1.tfmm.co.' ], - 'records' => [ + 'rrsets' => [ [ - 'content' => 'pdnstest.tfmm.co. hostmaster.tfmm.co. 1 1800 900 604800 86400', - 'disabled' => 'false', 'name' => $zone_name, 'ttl' => '86400', - 'type' => 'SOA' + 'type' => 'SOA', + 'changetype' => 'REPLACE', + 'records' => [ + 'content' => 'pdnstest.tfmm.co. hostmaster.tfmm.co. 1 1800 900 604800 86400', + 'disabled' => 'false' + ] ], - [ - 'content' => $zone_primary_ip, - 'disabled' => 'false', + [ 'name' => $zone_name, 'ttl' => '3600', - 'type' => 'A' + 'type' => 'A', + 'changetype' => 'REPLACE', + 'records' => [ + 'content' => $zone_primary_ip, + 'disabled' => 'false' + ] ] ] + ] ], 'headers' => [ 'X-API-Key' => 'JgTtTq6EFVeo7X71wOVCYQk3rOie2G1k'