Dial tcp: lookup xxxxx.eu-west-1.eks.amazonaws.com on 192.168.x.x:53: no such host

I am getting this tiller error. Last time I fixed this by some workaround(I forgot the workaround). Is there a permanent fix for this

cloud aws

provider "helm" {
  service_account = "${kubernetes_service_account.tiller.metadata.0.name}"
  namespace       = "${kubernetes_service_account.tiller.metadata.0.namespace}"
  version = "~> 0.10.4"

  kubernetes {
    config_path = ".kube_config.yaml"
  }
}
Error: Error refreshing state: 2 error(s) occurred:
* kubernetes_cluster_role_binding.tiller: 1 error(s) occurred:
* kubernetes_cluster_role_binding.tiller: kubernetes_cluster_role_binding.tiller: Get https://xxxxxxx/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/tiller: dial tcp: lookup xxxxxxxx on x.x.x.x: no such host
* kubernetes_service_account.tiller: 1 error(s) occurred:
* kubernetes_service_account.tiller: kubernetes_service_account.tiller: Get xxxxxxx.eks.amazonaws.com/api/v1/namespaces/kube-system/serviceaccounts/tiller: dial tcp: lookup xxxxx.eu-west-1.eks.amazonaws.com on xxxxxx: no such host