Hi,
I have a couple of Yuns (yun1 and yun2) on the same WiFi network.
I can call one Yun's API from the other if I refer to it using its IP address, but not if I use its hostname
Both hostname and IP address work if I type them into a browser window or run them as as curl command in terminal:
Your yun1 doesn’t know what a ‘yun2’ is and vice versa. You can’t stick those names in a dns server, so you have to add those names in the /etc/hosts file (it only contains localhost by default).
I use the 'vi' editor that comes shipped with the distribution; other people use 'nano', but I don't know it. Maybe a google 'starting vi' (or similar) can help you out here.
cursive:
What can I do talk to them using their hostname instead of their IP Address?
Although I haven't tried them, you can try installing either "howl-mdnsresponder" or plain "mdnsresponder" packages. They should make your yuns able to resolve each other's name
Start with howl-mdnsresponder: it's easier to uninstall if it doesn't work.