Add option to DNS server to ignore them when they are not available via an interface network

This commit is contained in:
Daniel
2024-07-03 17:17:51 +02:00
parent 35ac64bd82
commit 42e725921b
4 changed files with 29 additions and 1 deletions

View File

@@ -233,6 +233,9 @@ func AddToDebugInfo(di *debug.Info) {
if len(resolver.Search) > 0 {
content = append(content, fmt.Sprintf(" Search Domains: %v", strings.Join(resolver.Search, ", ")))
}
if resolver.LinkLocalUnavailable {
content = append(content, " Link-local, but not available: ignoring")
}
content = append(content, fmt.Sprintf(" Failing: %v", resolver.Conn.IsFailing()))
// Add a empty line for all but the last entry.