Hi, “No such host” error = DNS: VPN client doesn’t resolve AKS API private FQDN (…privatelink.<region>.azmk8s.io). Quick fix, all in one go: from a VM in the VNet, check nslookup <aks_fqdn> 168.63.129.16 (should return private IP); create/use the Private DNS zone privatelink.<region>.azmk8s.io, link it to both the AKS VNet and the VNet where the VPN clients terminate; if necessary, add the API A record with the Private Endpoint IP; ensure VPN clients use a resolver that “sees” that zone (in the P2S profile, set DNS to a DNS VM or Azure DNS Private Resolver; on-prem, add a conditional forwarder to the inbound endpoint in Azure); check routing: the P2S pool must reach the CIDRs of the AKS VNet; Final test: nslookup from the PC using the VPN (it should return the private IP) and then kubectl. If you want to quickly confirm that it's DNS-only, temporarily map the FQDN to the private IP in hosts (then remove it).
i am facing issue on accessing the private cluster via VPN. and not moving traffic to firewall
i am facing an issue accessing the private cluster via VPN, and not going traffic from the firewall.
This is the error iam getting
E0825 12:17:25.677908 39308 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get "https://hobasa-uat-aks-01-dns-zt701mzb.bbf85e43-a749-4597-9fb8-30d9f4839ef6.privatelink.eastus.azmk8s.io:443/api?timeout=32s": dial tcp: lookup hobasa-uat-aks-01-dns-zt701mzb.bbf85e43-a749-4597-9fb8-30d9f4839ef6.privatelink.eastus.azmk8s.io: no such host"
E0825 12:17:25.680370 39308 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get "https://hobasa-uat-aks-01-dns-zt701mzb.bbf85e43-a749-4597-9fb8-30d9f4839ef6.privatelink.eastus.azmk8s.io:443/api?timeout=32s": dial tcp: lookup hobasa-uat-aks-01-dns-zt701mzb.bbf85e43-a749-4597-9fb8-30d9f4839ef6.privatelink.eastus.azmk8s.io: no such host"
E0825 12:17:25.683401 39308 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get "https://hobasa-uat-aks-01-dns-zt701mzb.bbf85e43-a749-4597-9fb8-30d9f4839ef6.privatelink.eastus.azmk8s.io:443/api?timeout=32s": dial tcp: lookup hobasa-uat-aks-01-dns-zt701mzb.bbf85e43-a749-4597-9fb8-30d9f4839ef6.privatelink.eastus.azmk8s.io: no such host"
E0825 12:17:25.685872 39308 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get "https://hobasa-uat-aks-01-dns-zt701mzb.bbf85e43-a749-4597-9fb8-30d9f4839ef6.privatelink.eastus.azmk8s.io:443/api?timeout=32s": dial tcp: lookup hobasa-uat-aks-01-dns-zt701mzb.bbf85e43-a749-4597-9fb8-30d9f4839ef6.privatelink.eastus.azmk8s.io: no such host"
E0825 12:17:25.689364 39308 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get "https://hobasa-uat-aks-01-dns-zt701mzb.bbf85e43-a749-4597-9fb8-30d9f4839ef6.privatelink.eastus.azmk8s.io:443/api?timeout=32s": dial tcp: lookup hobasa-uat-aks-01-dns-zt701mzb.bbf85e43-a749-4597-9fb8-30d9f4839ef6.privatelink.eastus.azmk8s.io: no such host"
Unable to connect to the server: dial tcp: lookup hobasa-uat-aks-01-dns-zt701mzb.bbf85e43-a749-4597-9fb8-30d9f4839ef6.privatelink.eastus.azmk8s.io: no such host