Merge branch 'devel' into new/OTHER_types

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2021-01-15 05:51:10 +01:00
9 changed files with 176 additions and 155 deletions

View File

@@ -405,4 +405,14 @@ function returnError($message = "", $json = true)
}
}
function getQueryTypeStr($querytype)
{
$qtypes = ["A (IPv4)", "AAAA (IPv6)", "ANY", "SRV", "SOA", "PTR", "TXT", "NAPTR", "MX", "DS", "RRSIG", "DNSKEY", "NS", "OTHER", "SVCB", "HTTPS"];
$qtype = intval($querytype);
if($qtype > 0 && $qtype <= count($qtypes))
return $qtypes[$qtype-1];
else
return "TYPE".($qtype - 100);
}
?>