code: func GetNameservers(resolvConf []byte, kind int) []string {
  	nameservers := []string{}
  	for _, line := range getLines(resolvConf, []byte("#")) {
  		var ns [][]byte
  		if kind == types.IP {
  			ns = nsRegexp.FindSubmatch(line)
  		} else if kind == types.IPv4 {
  			ns = nsIPv4Regexpmatch.FindSubmatch(line)
  		} else if kind == types.IPv6 {
  			ns = nsIPv6Regexpmatch.FindSubmatch(line)
  		}
  		if len(ns) > 0 {
  			nameservers = append(nameservers, string(ns[1]))
  		}
  	}
  	return nameservers
  }
docs: // GetNameservers returns nameservers (if any) listed in /etc/resolv.conf