feat(cli): add get link.dns for resolver, gateway and lease DNS
Shows lwIP's live global DNS server list next to the DNS each medium's DHCP lease installed, so a node that is linked but failing to resolve can be diagnosed remotely.
This commit is contained in:
1 parent
f88f6656a4
commit
ffab6f565f
6 files changed
+93
No files matched your search
@@ -1029,6 +1029,8 @@ bool CommonCLI::handleObserverGetCmd(uint32_t sender_timestamp, const char* conf
|
||||
}
|
||||
} else if (strcmp(config, "link.diag") == 0) {
|
||||
activeNetworkLink().formatDiagnostics(reply, 160);
|
||||
} else if (strcmp(config, "link.dns") == 0) {
|
||||
activeNetworkLink().formatDns(reply, 160);
|
||||
} else if (memcmp(config, "link.status", 11) == 0 ||
|
||||
memcmp(config, "wifi.status", 11) == 0) {
|
||||
NetworkLink& network = activeNetworkLink();
|
||||
|
||||
Reference in new issue
Block a user