Private DNS in MCS is a functionality of a DNS server that operates in project networks and allows accessing instances by DNS names.
The service supports configuring the private zone and port names of virtual machines. The DNS server responds with the same addresses as the DHCP ports on the network. For private DNS to work, a DHCP server must be enabled on the network.
Enabling Private DNS
You can enable the service for a specific network in the "Networks" section of the "Cloud Computing" service in your MCS account . On the page of the required network, on the "Network Settings" tab, select the "Private DNS" option and enter the zone name:
DNS name setting
When creating a virtual machine on a private network, it is possible to enter a DNS name:
It is also possible to change the name in the connection settings on the instance page by selecting the "Edit connection" option in the port context menu:
To edit the DNS name of a VM in the OpenStack client:
Get a list of ports for an instance:
$ openstack port list --server <server ID>
Specify DNS name for port:
$ openstack port set --dns-name <DNS name> <port ID>