code: func translateStubDomainOfKubeDNSToForwardCoreDNS(dataField string, kubeDNSConfigMap *v1.ConfigMap) (string, error) {
  	if kubeDNSConfigMap == nil {
  		return "", nil
  	}
  
  	if proxy, ok := kubeDNSConfigMap.Data[dataField]; ok {
  		stubDomainData := make(map[string][]string)
  		err := json.Unmarshal([]byte(proxy), &stubDomainData)
  		if err != nil {
  			return "", errors.Wrap(err, "failed to parse JSON from 'kube-dns ConfigMap")
  		}
  
  		var proxyStanza []interface{}
  		for domain, proxyHosts := range stubDomainData {
  			proxyIP, err := omitHostnameInTranslation(proxyHosts)
  			if err != nil {
  				return "", errors.Wrap(err, "invalid format to parse for proxy")
  			}
  			if len(proxyIP) == 0 {
  				continue
  			}
  
  			pStanza := map[string]interface{}{}
  			pStanza["keys"] = []string{domain + ":53"}
  			pStanza["body"] = [][]string{
  				{"errors"},
  				{"cache", "30"},
  				{"loop"},
  				append([]string{"forward", "."}, proxyIP...),
  			}
  			proxyStanza = append(proxyStanza, pStanza)
  		}
  		stanzasBytes, err := json.Marshal(proxyStanza)
  		if err != nil {
  			return "", err
  		}
  
  		corefileStanza, err := caddyfile.FromJSON(stanzasBytes)
  		if err != nil {
  			return "", err
  		}
  
  		return prepCorefileFormat(string(corefileStanza), 4), nil
  	}
  	return "", nil
  }
docs: // translateStubDomainOfKubeDNSToForwardCoreDNS translates StubDomain Data in kube-dns ConfigMap
  // in the form of Proxy for the CoreDNS Corefile.