- {{ len .Snapshot.Hostnames }}
+ {{ len .Hostnames }}
@@ -84,7 +84,11 @@
{{ $name }}
+ {{ if $ds.NXDomain }}
+ does not exist
+ {{ else }}
{{ joinStrings $ds.Nameservers ", " }}
+ {{ end }}
|
{{ relTime $ds.LastChecked }}
@@ -94,6 +98,24 @@
+ {{ if .DomainRecords }}
+
+
+
+
+ | Domain |
+ NS |
+ Status |
+ Records |
+ Checked |
+
+
+
+ {{ template "records" .DomainRecords }}
+
+
+
+ {{ end }}
{{ else }}
No domains configured.
@@ -108,7 +130,7 @@
>
Hostnames
- {{ if .Snapshot.Hostnames }}
+ {{ if .Hostnames }}
@@ -121,39 +143,7 @@
- {{ range $name, $hs := .Snapshot.Hostnames }}
- {{ range $ns, $nsr := $hs.RecordsByNameserver }}
-
- |
- {{ $name }}
- |
-
- {{ $ns }}
- |
-
- {{ if eq $nsr.Status "ok" }}
- ok
- {{ else }}
- {{ $nsr.Status }}
- {{ end }}
- |
-
- {{ formatRecords $nsr.Records }}
- |
-
- {{ relTime $nsr.LastChecked }}
- |
-
- {{ end }}
- {{ end }}
+ {{ template "records" .Hostnames }}
@@ -171,19 +161,20 @@
>
Ports
- {{ if .Snapshot.Ports }}
+ {{ if .Ports }}
| Address |
State |
+ Domains |
Hostnames |
Checked |
- {{ range $key, $ps := .Snapshot.Ports }}
+ {{ range $key, $ps := .Ports }}
|
{{ $key }}
@@ -201,6 +192,9 @@
>
{{ end }}
|
+
+ {{ joinStrings $ps.Domains ", " }}
+ |
{{ joinStrings $ps.Hostnames ", " }}
|
@@ -258,6 +252,11 @@
>
{{ end }}
+ {{ if $cs.Error }}
+
+ {{ $cs.Error }}
+ |
+ {{ else }}
{{ $cs.CommonName }}
|
@@ -285,6 +284,7 @@
{{ end }}
{{ end }}
+ {{ end }}
{{ relTime $cs.LastChecked }}
|
@@ -363,8 +363,48 @@
class="text-[11px] text-slate-700 border-t border-slate-800 pt-4 mt-8"
>
dnswatcher · monitoring {{ len .Snapshot.Domains }} domains +
- {{ len .Snapshot.Hostnames }} hostnames
+ {{ len .Hostnames }} hostnames
|