From ca3a01f478aa60fb039892d2cae6823188b5842c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 6 Jan 2024 01:41:33 -0600 Subject: make new resolverStatus() also fix dns-https Signed-off-by: Jeff Carr --- structs.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index 3d4e153..f794773 100644 --- a/structs.go +++ b/structs.go @@ -6,6 +6,7 @@ import ( "time" "go.wit.com/gui/gui" "go.wit.com/gui/gadgets" + "github.com/miekg/dns" ) @@ -13,10 +14,13 @@ import ( var me Host type Host struct { - hostname string // mirrors + status *hostnameStatus // keeps track of the hostname and it's status + + hostnameStatus *gui.Node // a summary for the user of where things are + + // hostname string // mirrors domainname *gui.Node // kernel.org hostshort *gui.Node // hostname -s - hostnameStatusOLD *gui.Node // is the hostname configured correctly in the OS? // fqdn string // mirrors.kernel.org // dnsTTL int `default:"3"` // Recheck DNS is working every TTL (in seconds) @@ -59,7 +63,7 @@ type Host struct { // DNS stuff NSrr *gui.Node // NS resource records for the domain name DnsAPI *gui.Node // what DNS API to use? - DnsAAAA *gui.Node // the actual DNS AAAA results + DnsAAAA *gadgets.OneLiner // the actual DNS AAAA results workingIPv6 *gui.Node // currently working AAAA DnsA *gui.Node // the actual DNS A results (ignore for status since mostly never happens?) DnsStatus *gui.Node // the current state of DNS @@ -81,7 +85,6 @@ type Host struct { statusIPv6 *gadgets.OneLiner digStatusButton *gui.Node - hostnameStatus *hostnameStatus hostnameStatusButton *gui.Node myDebug *gui.Node -- cgit v1.2.3