Multicluster setup

I am trying to follow instructions on this doc and setup the multcluster replicated control plane for istio.

I am getting this error:
“curl: (6) Could not resolve host:
command terminated with exit code 6”

when I execute this command:
kubectl exec --context=$CTX_CLUSTER1 $SLEEP_POD -n foo -c sleep – curl -I

Istio version: 1.5.4
Kubectl version: v1.16.6

Did you setup the DNS first, and then configured ServiceEntries accordingly?

Yes I followed steps for setting up dns and serviceentries as well. I am using AKS cluster to give more context…