diff --git a/app.go b/app.go index 608f1590..c3ae4b07 100644 --- a/app.go +++ b/app.go @@ -109,6 +109,11 @@ func main() { } } + // eat all args so that coredns can start happily + if len(os.Args) > 1 { + os.Args = os.Args[:1] + } + err := writeConfig() if err != nil { log.Fatal(err)