servnest/pg-act/ns/dname.php

14 lines
254 B
PHP

<?php
$values = nsParseCommonRequirements();
$_POST['dname'] = formatAbsoluteDomain($_POST['dname']);
knotcZoneExec($_POST['zone'], [
$values['domain'],
$values['ttl'],
'DNAME',
$_POST['dname']
]);
output(200, 'Enregistrement ajouté/retiré.');