diff --git a/plugins/meta/dnsname/files.go b/plugins/meta/dnsname/files.go
index c0f1ee81dbe12d4dd946205e293b9b28c4f19fe8..16d781028843c6a7dcccde21cf7d091d1ba92656 100644
--- a/plugins/meta/dnsname/files.go
+++ b/plugins/meta/dnsname/files.go
@@ -10,9 +10,8 @@ import (
 	"strings"
 	"text/template"
 
-	"github.com/coreos/go-iptables/iptables"
-
 	"github.com/containernetworking/plugins/plugins/ipam/host-local/backend/disk"
+	"github.com/coreos/go-iptables/iptables"
 	"github.com/sirupsen/logrus"
 )
 
diff --git a/plugins/meta/dnsname/main.go b/plugins/meta/dnsname/main.go
index 7623d418898fe1557ceba9ea55378e5217669e4d..114b16b6bdeee8a2628ed155564abf9ae20bfd63 100644
--- a/plugins/meta/dnsname/main.go
+++ b/plugins/meta/dnsname/main.go
@@ -28,7 +28,6 @@ package main
 
 import (
 	"encoding/json"
-	"fmt"
 	"io/ioutil"
 	"os"
 	"os/exec"
@@ -52,7 +51,7 @@ func cmdAdd(args *skel.CmdArgs) error {
 		return errors.Wrap(err, "failed to parse config")
 	}
 	if netConf.PrevResult == nil {
-		return fmt.Errorf("must be called as chained plugin")
+		return errors.Errorf("must be called as chained plugin")
 	}
 	ips, err := getIPs(result)
 	if err != nil {
@@ -163,7 +162,7 @@ func cmdCheck(args *skel.CmdArgs) error {
 
 	// Ensure we have previous result.
 	if result == nil {
-		return fmt.Errorf("Required prevResult missing")
+		return errors.Errorf("Required prevResult missing")
 	}
 	dnsNameConf, err := newDNSMasqFile(netConf.DomainName, result.Interfaces[0].Name, netConf.Name)
 	if err != nil {
@@ -191,7 +190,7 @@ func cmdCheck(args *skel.CmdArgs) error {
 
 	// Ensure the dnsmasq instance is running
 	if !isRunning(pid) {
-		return fmt.Errorf("dnsmasq instance not running")
+		return errors.Errorf("dnsmasq instance not running")
 	}
 	// Above will make sure the pidfile exists
 	files, err := ioutil.ReadDir(dnsNameConfPath)
@@ -202,10 +201,10 @@ func cmdCheck(args *skel.CmdArgs) error {
 		conffiles = append(conffiles, f.Name())
 	}
 	if !stringInSlice("addnhosts", conffiles) {
-		return fmt.Errorf("addnhost file missing from configuration")
+		return errors.Errorf("addnhost file missing from configuration")
 	}
 	if !stringInSlice("dnsmasq.conf", conffiles) {
-		return fmt.Errorf("dnsmasq.conf file missing from configuration")
+		return errors.Errorf("dnsmasq.conf file missing from configuration")
 	}
 	return nil
 }
diff --git a/plugins/meta/dnsname/result.go b/plugins/meta/dnsname/result.go
index b2e78a12d009fb0ff33423222282d0f572515f71..3d46029d10f9e02b2a355c1ce1b0130978803ebb 100644
--- a/plugins/meta/dnsname/result.go
+++ b/plugins/meta/dnsname/result.go
@@ -1,10 +1,10 @@
 package main
 
 import (
-	"fmt"
 	"net"
 
 	"github.com/containernetworking/cni/pkg/types/current"
+	"github.com/pkg/errors"
 )
 
 // getIPs iterates a result and returns all the IP addresses
@@ -24,7 +24,7 @@ func getIPs(r *current.Result) ([]*net.IPNet, error) {
 			if isInterfaceIndexSandox(*ip.Interface, r) {
 				ips = append(ips, &ip.Address)
 			} else {
-				return nil, fmt.Errorf("unable to check if interface has a sandbox due to index being out of range")
+				return nil, errors.Errorf("unable to check if interface has a sandbox due to index being out of range")
 			}
 		}
 	}
diff --git a/plugins/meta/dnsname/service.go b/plugins/meta/dnsname/service.go
index 3156c1f8bcd07e09a7e9839c6462423a221ecb1e..c4b8b0f5f741e6e443585295f0d62d8d533a7358 100644
--- a/plugins/meta/dnsname/service.go
+++ b/plugins/meta/dnsname/service.go
@@ -10,6 +10,7 @@ import (
 	"strings"
 	"syscall"
 
+	"github.com/pkg/errors"
 	"golang.org/x/sys/unix"
 )
 
@@ -17,7 +18,7 @@ import (
 func newDNSMasqFile(domainName, networkInterface, networkName string) (dnsNameFile, error) {
 	dnsMasqBinary, err := exec.LookPath("dnsmasq")
 	if err != nil {
-		return dnsNameFile{}, fmt.Errorf("the dnsmasq cni plugin requires the dnsmasq binary be in PATH")
+		return dnsNameFile{}, errors.Errorf("the dnsmasq cni plugin requires the dnsmasq binary be in PATH")
 	}
 	masqConf := dnsNameFile{
 		ConfigFile:       makePath(networkName, confFileName),