Change the domain name of a port on a private network
If a private network is added to the DNS zone, you can change the domain name of the port. This will update the A- or AAAA record in the zone automatically.
To see if a network has been added to the DNS zone, you can do this in the Control Panel: in the top menu, click Products → Cloud Servers → Private DNS → DNS Resolvers tab → in the network row, look for the value in the DNS zone field.
Control Panel
OpenStack CLI
-
In the Dashboard, on the top menu, click Products and select Cloud Servers.
-
Go to Network → Private Networks tab.
-
Open the subnet card → Ports tab.
-
In the port bar next to the domain name, click .
-
Enter a new domain name.
-
Click Save.
-
Look at the list of ports in the subnet and copy the ID or name of the desired port:
openstack port list subnet=<subnet>Specify
<subnet>- The ID or name of the subnet, can be viewed with theopenstack subnet listcommand. -
Change the domain name of the port:
openstack port set --dns-name <subdomain> <port>Specify:
<subdomain>- new domain name of the port, maximum 63 characters - digits, Latin letters and hyphens;<port>- The ID or name of the port you copied in step 2.