Adding more source for getting available DNS

On some platforms, the gateway may not be a usable DNS. So extending the
current approach to allow retrieving DNS from many sources.
This commit is contained in:
Cuong Manh Le
2023-03-31 12:37:37 +07:00
committed by Cuong Manh Le
parent b65a5ac283
commit 42d29b626b
6 changed files with 76 additions and 23 deletions
+1
View File
@@ -14,6 +14,7 @@ func TestUpstreamConfig_SetupBootstrapIP(t *testing.T) {
uc.Init()
uc.setupBootstrapIP(false)
if uc.BootstrapIP == "" {
t.Log(availableNameservers())
t.Fatal("could not bootstrap ip without bootstrap DNS")
}
t.Log(uc)