Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Access instances by hostname instead of IP

Hello,

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 192.168.100.43 and local hostname is instance_2 .

[cloud-user@instance_1 ~]$ ping 192.168.100.43
PING 192.168.100.43 (192.168.100.43) 56(84) bytes of data.
64 bytes from 192.168.100.43: 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 ?

Thanks