From c77f1040728d693cd1b2c2b567f2185056d023d5 Mon Sep 17 00:00:00 2001
From: DL6ER When there is a Pi-hole domain set and this box is
ticked, this asks FTL that this domain is purely
local and FTL may answer queries from " + JSON.stringify(row) + "
";
}
From b4a26d3d591b7d02301bfefb37466d904495003e Mon Sep 17 00:00:00 2001
From: DL6ER
(external, IP)";
- buttontext = "";
break;
case 7:
color = "red";
fieldtext = "Blocked
(external, NULL)";
- buttontext = "";
break;
case 8:
color = "red";
fieldtext = "Blocked
(external, NXRA)";
- buttontext = "";
break;
case 9:
color = "red";
@@ -265,7 +270,6 @@ $(function () {
case 12:
color = "green";
fieldtext = "Retried";
- buttontext = "";
break;
case 13:
color = "green";
@@ -278,10 +282,13 @@ $(function () {
buttontext =
'';
break;
+ case 15:
+ color = "text-orange";
+ fieldtext = "Blocked
(database is busy)";
+ break;
default:
color = "black";
fieldtext = "Unknown";
- buttontext = "";
}
$(row).css("color", color);
diff --git a/scripts/pi-hole/js/queries.js b/scripts/pi-hole/js/queries.js
index 80344564..54405804 100644
--- a/scripts/pi-hole/js/queries.js
+++ b/scripts/pi-hole/js/queries.js
@@ -23,6 +23,7 @@ var replyTypes = [
"NOTIMP",
"upstream error",
"DNSSEC",
+ "NONE",
];
var colTypes = ["time", "query type", "domain", "client", "status", "reply type"];
@@ -78,7 +79,7 @@ $(function () {
var replyid = parseInt(data[5], 10);
// DNSSEC status
var dnssecStatus;
- var ede = data[11];
+ var ede = data[11] ? data[11] : "";
switch (data[6]) {
case "1":
dnssecStatus = '
SECURE';
@@ -108,7 +109,7 @@ $(function () {
// Query status
var fieldtext,
- buttontext,
+ buttontext = "",
colorClass = false,
isCNAME = false,
regexLink = false;
@@ -197,12 +198,10 @@ $(function () {
case "12":
colorClass = "text-green";
fieldtext = "Retried";
- buttontext = "";
break;
case "13":
colorClass = "text-green";
fieldtext = "Retried
(ignored)";
- buttontext = "";
break;
case "14":
colorClass = "text-green";
@@ -210,10 +209,13 @@ $(function () {
buttontext =
'';
break;
+ case "15":
+ colorClass = "text-orange";
+ fieldtext = "Blocked
(database is busy)";
+ break;
default:
colorClass = false;
fieldtext = "Unknown (" + parseInt(data[4], 10) + ")";
- buttontext = "";
}
// Add EDE here if available and not included in dnssecStatus
From 487ac384351cafb94fe451b5ee94bd3c481d9611 Mon Sep 17 00:00:00 2001
From: DL6ER
" +
(data.length > 10 && data[10] !== "N/A" ? data[10] : "") +
@@ -132,8 +131,7 @@ $(function () {
'';
break;
case "3":
- colorClass = "text-green";
- fieldtext = "OK
(cached)" + dnssecStatus;
+ fieldtext = "OK
(cache)" + dnssecStatus;
buttontext =
'';
break;
@@ -196,16 +194,13 @@ $(function () {
isCNAME = true;
break;
case "12":
- colorClass = "text-green";
- fieldtext = "Retried";
+ fieldtext = "Retried";
break;
case "13":
- colorClass = "text-green";
- fieldtext = "Retried
(ignored)";
+ fieldtext = "Retried
(ignored)";
break;
case "14":
- colorClass = "text-green";
- fieldtext = "OK
(already forwarded)" + dnssecStatus;
+ fieldtext = "OK
(already forwarded)" + dnssecStatus;
buttontext =
'';
break;
@@ -227,7 +222,7 @@ $(function () {
fieldtext += '';
if (colorClass !== false) {
- $(row).addClass(colorClass);
+ $("td:eq(4)", row).addClass(colorClass);
}
$("td:eq(4)", row).html(fieldtext);
From 5db2fc27867053404a98024197ec804d6d7f3d8a Mon Sep 17 00:00:00 2001
From: DL6ER
" +
(data.length > 10 && data[10] !== "N/A" ? data[10] : "") +
@@ -131,13 +132,13 @@ $(function () {
'';
break;
case "3":
- fieldtext = "OK
(cache)" + dnssecStatus;
+ fieldtext =
+ "OK
(cache)" + dnssecStatus;
buttontext =
'';
break;
case "4":
- colorClass = "text-red";
- fieldtext = "Blocked
(regex blacklist)";
+ fieldtext = "Blocked
(regex blacklist)";
if (data.length > 9 && data[9] > 0) {
regexLink = true;
@@ -147,36 +148,33 @@ $(function () {
'';
break;
case "5":
- colorClass = "text-red";
- fieldtext = "Blocked
(exact blacklist)";
+ fieldtext = "Blocked
(exact blacklist)";
buttontext =
'';
break;
case "6":
- colorClass = "text-red";
- fieldtext = "Blocked
(external, IP)";
+ fieldtext = "Blocked
(external, IP)";
buttontext = "";
break;
case "7":
- colorClass = "text-red";
- fieldtext = "Blocked
(external, NULL)";
+ fieldtext =
+ "Blocked
(external, NULL)";
buttontext = "";
break;
case "8":
- colorClass = "text-red";
- fieldtext = "Blocked
(external, NXRA)";
+ fieldtext =
+ "Blocked
(external, NXRA)";
buttontext = "";
break;
case "9":
- colorClass = "text-red";
- fieldtext = "Blocked (gravity, CNAME)";
+ fieldtext = "Blocked (gravity, CNAME)";
buttontext =
'';
isCNAME = true;
break;
case "10":
- colorClass = "text-red";
- fieldtext = "Blocked
(regex blacklist, CNAME)";
+ fieldtext =
+ "Blocked
(regex blacklist, CNAME)";
if (data.length > 9 && data[9] > 0) {
regexLink = true;
@@ -187,8 +185,8 @@ $(function () {
isCNAME = true;
break;
case "11":
- colorClass = "text-red";
- fieldtext = "Blocked
(exact blacklist, CNAME)";
+ fieldtext =
+ "Blocked
(exact blacklist, CNAME)";
buttontext =
'';
isCNAME = true;
@@ -200,16 +198,17 @@ $(function () {
fieldtext = "Retried
(ignored)";
break;
case "14":
- fieldtext = "OK
(already forwarded)" + dnssecStatus;
+ fieldtext =
+ "OK
(already forwarded)" +
+ dnssecStatus;
buttontext =
'';
break;
case "15":
- colorClass = "text-orange";
- fieldtext = "Blocked
(database is busy)";
+ fieldtext =
+ "Blocked
(database is busy)";
break;
default:
- colorClass = false;
fieldtext = "Unknown (" + parseInt(data[4], 10) + ")";
}
@@ -221,10 +220,6 @@ $(function () {
fieldtext += '';
- if (colorClass !== false) {
- $("td:eq(4)", row).addClass(colorClass);
- }
-
$("td:eq(4)", row).html(fieldtext);
$("td:eq(6)", row).html(buttontext);
From d39e0809da0cf768847c45f81448048b24355c7a Mon Sep 17 00:00:00 2001
From: DL6ER /etc/hosts or DHCP leases
- but should never forward queries on that domain to any upstream servers.
Enabling Conditional Fowarding will also forward all hostnames (i.e., non-FQDNs) to the router + when "Never forward non-FQDNs" is not enable.
Enabling Conditional Fowarding will also forward all hostnames (i.e., non-FQDNs) to the router - when "Never forward non-FQDNs" is not enable.
+ when "Never forward non-FQDNs" is not enabled.