servnest/pg-act/ns/cname.php
2023-05-02 18:02:08 +02:00

16 lines
258 B
PHP

<?php
$values = nsParseCommonRequirements();
$_POST['cname'] = formatAbsoluteDomain($_POST['cname']);
rateLimit();
knotcZoneExec($_POST['zone'], [
$values['domain'],
$values['ttl'],
'CNAME',
$_POST['cname']
]);
output(200, _('Modification done.'));