code: func MakeResolvConf(dns cnitypes.DNS, comment string) string {
  	content := ""
  	if len(comment) > 0 {
  		content += fmt.Sprintf("# %s\n\n", comment)
  	}
  
  	if len(dns.Search) > 0 {
  		content += fmt.Sprintf("search %s\n", strings.Join(dns.Search, " "))
  	}
  
  	for _, ns := range dns.Nameservers {
  		content += fmt.Sprintf("nameserver %s\n", ns)
  	}
  	if len(dns.Options) > 0 {
  		content += fmt.Sprintf("options %s\n", strings.Join(dns.Options, " "))
  	}
  
  	if len(dns.Domain) > 0 {
  		content += fmt.Sprintf("domain %s\n", dns.Domain)
  	}
  	return content
  }
docs: // MakeResolvConf generates resolv.conf contents given a cni DNS configuration