I have an instance called "abc" created under accountX on AWS. I have another instance "def" created under accountY on AWS. "abc" is where I have installed my test tool which will run scripts on an application installed in "def".
When I ping "def" from "abc" I get this error: "ping: unknown host "
Content of my /etc/hosts file in "abc"
>ubuntu@ip-'ip for abc':~$ more /etc/hosts
>127.0.0.1 localhost
>
># The following lines are desirable for IPv6 capable hosts
>::1 ip6-localhost ip6-loopback
>fe00::0 ip6-localnet
>ff00::0 ip6-mcastprefix
>ff02::1 ip6-allnodes
>ff02::2 ip6-allrouters
>ff02::3 ip6-allhosts
>
>127.0.0.1 ip-'ip for abc'
Content of my /etc/resolv.conf file in "abc":
>nameserver 'ip for def'
Please assist. Thanks.