Created a managed instance group(MIG) with 3 vms Created an internal load balancer to access this group via DNS [communicating via port 443] Created DNS entries
There is a jetty server running on port 5000 in one of these VMs which I'd like to connect to from the application running in other VMs via a DNS
One way of achieving that is to use VMs internal DNS like {$vm_name}{$region_name}{$project_id}.internal but i need to create this DNS at runtime, but looking for a dedicated DNS to directly connecting to the VM running a standalone jetty server on port 5000
Anyone knows another way to achieve this, please let me know.
Thanks in advance.
You can try using Zonal DNS.
If you are using a zonal MIG, create a zonal DNS record in your VPC network that points to the VM's internal IP address. Use this DNS name from other VMs in the same zone to access the server. This is only accessible within the same zone, not across multiple zones.
See also this document for more info.