Create Zone

This commit is contained in:
Russ Long 2018-03-30 14:21:42 -04:00
parent 038e9a9a94
commit 35895be641

View File

@ -32,22 +32,29 @@ class PagesController extends Controller
'nameservers' => [ 'nameservers' => [
'ns1.tfmm.co.' 'ns1.tfmm.co.'
], ],
'records' => [ 'rrsets' => [
[ [
'content' => 'pdnstest.tfmm.co. hostmaster.tfmm.co. 1 1800 900 604800 86400',
'disabled' => 'false',
'name' => $zone_name, 'name' => $zone_name,
'ttl' => '86400', '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, 'name' => $zone_name,
'ttl' => '3600', 'ttl' => '3600',
'type' => 'A' 'type' => 'A',
'changetype' => 'REPLACE',
'records' => [
'content' => $zone_primary_ip,
'disabled' => 'false'
]
] ]
] ]
]
], ],
'headers' => [ 'headers' => [
'X-API-Key' => 'JgTtTq6EFVeo7X71wOVCYQk3rOie2G1k' 'X-API-Key' => 'JgTtTq6EFVeo7X71wOVCYQk3rOie2G1k'