82 lines
3.4 KiB
PHP
82 lines
3.4 KiB
PHP
<?php include "../top.inc.php"; ?>
|
|
|
|
<form method="POST" action="ns.php">
|
|
<label for="subdomain">Domaine :</label>
|
|
<br>
|
|
<input id="subdomain" placeholder="nic" name="subdomain" type="text">.atope.art
|
|
<br>
|
|
<label for="tag">Tag de la clé :</label>
|
|
<br>
|
|
<input id="tag" placeholder="12345" min="1" max="100000" name="tag" type="number">
|
|
<br>
|
|
<label for="algo">Algorithme :</label>
|
|
<br>
|
|
<select name="algo" id="algo">
|
|
<!-- RFC 8624 : Algorithm Implementation Requirements and Usage Guidance for DNSSEC > Algorithm Selection > DNSKEY Algorithms -->
|
|
<!-- https://tools.ietf.org/html/rfc8624.html#section-3.1 -->
|
|
<option value="1" disabled="">1 (RSAMD5)</option>
|
|
<option value="3" disabled="">3 (DSA)</option>
|
|
<option value="5" disabled="">5 (RSASHA1)</option>
|
|
<option value="6" disabled="">6 (DSA-NSEC3-SHA1)</option>
|
|
<option value="7" disabled="">7 (RSASHA1-NSEC3-SHA1)</option>
|
|
<option value="8">8 (RSASHA256)</option>
|
|
<option value="10" disabled="">10 (RSASHA512)</option>
|
|
<option value="12" disabled="">12 (ECC-GOST)</option>
|
|
<option value="13" selected="">13 (ECDSAP256SHA256)</option>
|
|
<option value="14">14 (ECDSAP384SHA384)</option>
|
|
<option value="15">15 (ED25519)</option>
|
|
<option value="16">16 (ED448)</option>
|
|
</select>
|
|
<br>
|
|
<label for="dt">Digest Type :</label>
|
|
<br>
|
|
<select name="dt" id="dt">
|
|
<!-- RFC 8624 : Algorithm Implementation Requirements and Usage Guidance for DNSSEC > Algorithm Selection > DS and CDS Algorithms -->
|
|
<!-- https://tools.ietf.org/html/rfc8624.html#section-3.3 -->
|
|
<option value="1" disabled="">1 (SHA-1)</option>
|
|
<option value="2" selected="">2 (SHA-256)</option>
|
|
<option value="3" disabled="">3 (GOST R 34.11-94)</option>
|
|
<option value="4">4 (SHA-384)</option>
|
|
</select>
|
|
<br>
|
|
<label for="ds">Serveur de nom :</label>
|
|
<br>
|
|
<input id="ds" placeholder="niver.atope.art. 86400 DS 12345 13 4 018F25E4A022463478C9E30136EC53771A1704A0F0B3CE5B883AC9C8A6A55D16B638B4DE70662ACA5295D3669E7CADD9" name="ns" type="text">
|
|
<br>
|
|
<input type="submit">
|
|
</form>
|
|
|
|
<?php
|
|
|
|
if (isset($_POST['subdomain']) AND isset($_POST['ds']) AND isset($_SESSION['username'])) {
|
|
|
|
if (isset($_POST['algo'])
|
|
AND (
|
|
$_POST['algo'] == "8"
|
|
OR $_POST['algo'] == "14"
|
|
OR $_POST['algo'] == "15"
|
|
OR $_POST['algo'] == "16"
|
|
)) {
|
|
|
|
}
|
|
|
|
/*
|
|
moomin3.atope.art. 0 DS 11168 13 1 D39D6B1ED58ECE9FA8AB6B7DB53E78338D45E2FF
|
|
moomin3.atope.art. 0 DS 11168 13 2 DB7C3B76CF40C1F7C0BF278AB46284BFEA5E7D44B382992E32BB5B3DC50BA7AB
|
|
moomin3.atope.art. 0 DS 11168 13 4 018F25E4A022463478C9E30136EC53771A1704A0F0B3CE5B883AC9C8A6A55D16B638B4DE70662ACA5295D3669E7CADD9
|
|
from rfc : secure.example. DS tag=12345 alg=3 digest_type=1 <foofoo>
|
|
*/
|
|
|
|
exec("knotc zone-begin atope.art");
|
|
exec("knotc zone-set atope.art " . $_POST['subdomain'] . ".atope.art. DS " . $_POST['ns'] . ".");
|
|
exec("knotc zone-commit atope.art");
|
|
echo "Modifications appliquées";
|
|
} else {
|
|
echo "Rien n'a été appliqué lors du dernier chargement.";
|
|
}
|
|
|
|
|
|
?>
|
|
|
|
<br><a href="glue.php">Glue Record</a>
|
|
<?php include "../bottom.inc.php"; ?>
|