How to fix the DNS issue while trying to access PKS Api?

6/29/2019

I have setup PKS on GCP using the terraform script. The Bosh director and the PKS tile has been installed successfully. Now I want to acces PKS Api endpoint with the PKS CLI. But I am unable to target the PKS Api end point with the UAAC client. I hav tried the following ways :

uaac target https://PKS-API-URL:8443 --skip-ssl-validation - failed to access https://PKS-API-URL:8443: error: getaddrinfo: Name or service not known (PKS-API-URL:8443)

uaac target https://PKS-API-URL:8443 --ca-cert my-cert.cert - failed to access https://PKS-API-URL:8443: system lib

dig PKS-API-URL - status NXDOMAIN

nc -vz PKS-API-URL 8443 - nc: getaddrinfo for host "PKS-API-URL" port 8443: Name or service not known

From the dig command output i understand that it is a Nonexistent domain issue. Can somebody please help to resolve this DNS issue if you have faced a similar issue ? Thanks, Nilanjan

-- Nilanjan Roy
cf-bosh
cloudfoundry-uaa
google-cloud-platform
kubernetes
pivotal-cloud-foundry

0 Answers