Commit e4b3730f authored by Erik Wilson's avatar Erik Wilson

Go DNS lookup order hack

parent a5ddbe1f
...@@ -2,6 +2,7 @@ package cmds ...@@ -2,6 +2,7 @@ package cmds
import ( import (
"fmt" "fmt"
"os"
"github.com/rancher/k3s/pkg/version" "github.com/rancher/k3s/pkg/version"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
...@@ -12,6 +13,13 @@ var ( ...@@ -12,6 +13,13 @@ var (
debug bool debug bool
) )
func init() {
// hack - force "file,dns" lookup order if go dns is used
if os.Getenv("RES_OPTIONS") == "" {
os.Setenv("RES_OPTIONS", " ")
}
}
func NewApp() *cli.App { func NewApp() *cli.App {
app := cli.NewApp() app := cli.NewApp()
app.Name = appName app.Name = appName
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment