Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Access instances by hostname instead of IP


If I have 2 or more instances created inside the openstack deployment, on the same network, is it possible to make the instances accessible between them by hostname , and not only by IP ?

instance_2 IP is and local hostname is instance_2 .

[cloud-user@instance_1 ~]$ ping
PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=64 time=0.074 ms

[cloud-user@instance_1 ~]$ ping instance_2
ping: unknown host instance_2

I don't want to locally modify the /etc/hosts.

Is there an internal DNS service on the controller node ?