I have deployed two ubuntu (14.04) machines with different cloud services in a virtual network (with default configuration). Now I would like to get the private ip of one of the machines from the other machine. According to this document this should be possible by using the FQDN.
When typing (from machine 1)
nslookup machine2.cloudapp.net
the public ip is returned. So either something is wrong or I'm using the wrong FQDN. If so, where can I find it?
If your VMs are not in the same cloud service, they will not be mapped to their private address unless you add them manually to /etc/hosts file or setup your own dns server.
Example:
If you are refering to this line:
This will map to the public address only. It's name resolution, not hostname. It means that even if you block internet connectivity your VM will still know who machine2.cloudapp.net is but the resolution will be it's public ip address.