2022-12-20 21:17:03 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
regCheckDomainPossession($_POST['suffix']);
|
|
|
|
|
|
|
|
$domain = formatAbsoluteDomain(formatEndWithDot($_POST['subdomain']) . $_POST['suffix']);
|
|
|
|
|
|
|
|
$record = checkIpFormat($_POST['ip']);
|
|
|
|
|
|
|
|
knotcZoneExec(CONF['reg']['registry'], [
|
|
|
|
$domain,
|
|
|
|
CONF['reg']['ttl'],
|
|
|
|
$record,
|
|
|
|
$_POST['ip']
|
|
|
|
]);
|
|
|
|
|
2023-01-21 01:27:52 +01:00
|
|
|
output(200, _('Modification done.'));
|