diff --git a/plugins/meta/dnsname/service.go b/plugins/meta/dnsname/service.go index 717d6c0..fc05f75 100644 --- a/plugins/meta/dnsname/service.go +++ b/plugins/meta/dnsname/service.go @@ -66,7 +66,10 @@ func (d dnsNameFile) start() error { fmt.Sprintf("--conf-file=%s", d.ConfigFile), } cmd := exec.Command(d.Binary, args...) - return cmd.Run() + if b, err := cmd.CombinedOutput(); err != nil { + return errors.Wrapf(err, "dnsname error: dnsmasq failed with %q", b) + } + return nil } // stop stops the dnsmasq instance.