Managing host aliases
You can assign each Managed Service for MySQL® cluster host an alias, which is a custom network name. An alias is mapped to a specific DNS record which always points to the host associated with the alias. This allows you to access the cluster using a human-readable name without the host’s internal FQDN. An alias must be unique within a folder. You can assign only one alias per host.
Alias format:
h-<alias_name>-my-<folder_ID>.rw.mdb.yandexcloud.net
Note
When creating an alias, you only need to specify its name.
Getting a list of aliases
To get a list of aliases, you need the managed-mysql.viewer role or higher for the folder.
Getting a list of aliases in a cluster
-
Navigate
to Managed Service for MySQL. -
Click the name of your cluster and select the Hosts tab.
In the list of hosts, the Host alias column shows all host aliases created in the cluster.
Getting the host alias
To view the alias, you need the managed-mysql.viewer role or higher for the folder.
- Navigate
to Managed Service for MySQL. - Click the name of your cluster and select the Hosts tab. In the list of hosts, locate the one you need. The host alias is displayed in the Host alias column.
Creating a host alias
To create an alias, you need the managed-mysql.editor role or higher for the folder.
Warning
Due to DNS propagation, it may take some time for the alias to become available after the operation completes.
-
Navigate
to Managed Service for MySQL. -
Click the name of your cluster and select the Hosts tab.
-
Click
in the host row and select Create alias. -
In the window that opens, enter an alias and click Create alias.
Alias names can only contain lowercase Latin letters, digits, and hyphens. The alias may be up to 63 characters long.
Deleting an alias
To delete an alias, you need the managed-mysql.editor role or higher for the folder.
- Navigate
to Managed Service for MySQL. - Click the name of your cluster and select the Hosts tab.
- Click
in the host row and select Delete alias. - In the window that opens, click Delete.