Create Zone

This commit is contained in:
Russ Long 2018-03-30 13:00:01 -04:00
parent b15f6dd4c4
commit f8e2032e58

View File

@ -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',