code: func hostToIP(host string) string {
  	// if host is not an IP addr, check net.LookupIP()
  	if net.ParseIP(host) == nil {
  		hosts, err := net.LookupIP(host)
  		if err != nil {
  			return host
  		}
  		for _, h := range hosts {
  			// this restricts pilosa to IP4
  			if h.To4() != nil {
  				return h.String()
  			}
  		}
  	}
  	return host
  }
docs: // hostToIP converts host to an IP4 address based on net.LookupIP().