mirror of
https://github.com/pi-hole/web.git
synced 2026-04-22 17:59:20 +01:00
Merge branch 'devel' into new/OTHER_types
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user