diff --git a/scripts/pi-hole/js/settings-advanced.js b/scripts/pi-hole/js/settings-advanced.js index 51cc67e1..699f18d2 100644 --- a/scripts/pi-hole/js/settings-advanced.js +++ b/scripts/pi-hole/js/settings-advanced.js @@ -40,7 +40,9 @@ function generateRow(topic, key, value) { '
' + '

' + key + - (value.modified ? '  ' : "") + + (value.modified + ? '  ' + : "") + (value.flags.advanced ? '  ' : "") + diff --git a/scripts/pi-hole/js/settings-system.js b/scripts/pi-hole/js/settings-system.js index f95de5dd..3f0f3d8e 100644 --- a/scripts/pi-hole/js/settings-system.js +++ b/scripts/pi-hole/js/settings-system.js @@ -46,7 +46,16 @@ function updateHostInfo() { // to the corresponding element (add percentage for DNS replies) function setMetrics(data, prefix) { for (const [key, val] of Object.entries(data)) { - if (typeof val === "object") { + if (prefix === "sysinfo-dns-cache-content-") { + // Append row to DNS cache table + $("#dns-cache-table").append( + "Valid " + + (val.name !== null ? val.name : "TYPE " + val.type) + + " records in cache:" + + val.count + + "" + ); + } else if (typeof val === "object") { setMetrics(val, prefix + key + "-"); } else if (prefix === "sysinfo-dns-replies-") { // Compute and display percentage of DNS replies in addition to the absolute value @@ -65,6 +74,7 @@ function updateMetrics() { }) .done(function (data) { var metrics = data.metrics; + $("#dns-cache-table").empty(); setMetrics(metrics, "sysinfo-"); $("div[id^='sysinfo-metrics-overlay']").hide(); diff --git a/settings-system.php b/settings-system.php index 5440ba8c..2542be73 100644 --- a/settings-system.php +++ b/settings-system.php @@ -202,49 +202,7 @@ require 'scripts/pi-hole/php/header_authenticated.php'; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
- Valid A records in cache: -  
- Valid AAAA records in cache: -  
- Valid CNAME records in cache: -  
- Valid SRV records in cache: -  
- Valid DS records in cache: -  
- Valid DNSKEY records in cache: -  
- Other valid records in cache: -  
See also our DNS cache documentation.