I am using a Site to Site VPN between AWS and Azure, so all the traffic is private between them. The connection is successful and is showing UP
in the AWS side and Connected
on the Azure side. I also tested the connection between an EC2 instance and a VM using ping
, telnet
, and tcpping
command by pointing to the private IP of each machine, and all of them are successful and show connection between them also through these ports. Also, I ensured that the traffic by these protocols is enabled using the security groups.
The problem starts when try to test the connection to an Azure Storage Account using a Private Endpoint. The service is not resolving the private endpoint when using the hostname instead of the private IP. I tested with curl -v
and telnet
command to the private IP of the storage account and shows connection. But if I try using the hostname in it does not work for resolving the private ip, for example, when using nslookup
command with the hostname it shows the following:
Server: 192.168.0.2
Address: 192.168.0.2#53
Non-authoritative answer:
rclonedevsa.blob.core.windows.net canonical name = rclonedevsa.privatelink.blob.core.windows.net.
rclonedevsa.privatelink.blob.core.windows.net canonical name = blob.blz22prdstr07a.store.core.windows.net.
Name: blob.blz22prdstr07a.store.core.windows.net
Address: 52.239.169.228
So, it's not resolving a private IP, instead is showing the public one, even when the host file is modified (for testing purposes):
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost6 localhost6.localdomain6
10.1.2.4 rclonedevsa.blob.core.windows.net
In the end, if I try to use a service which depends on this hostname, it will fail because of this like, for example, using Rclone.
Any guidance on this would be really helpful, thanks.