-
The format of the default FQDN is the following:
In this case, the FQDN (as well as the VM’s ID) is only known after the VM is created.
-
The format of a custom FQDN is the following:
You can set the hostname when you create or update a VM.
How to get an FQDN
- CLI
To get an FQDN of a VM, run the following command:The FQDN is specified in the
status.network_interfaces.fqdn field of the output.How to customize an FQDN
If you do not want to use the default FQDN, you can use your own hostname instead of the VM’s ID. To customize an FQDN, use thehostname parameter:
- CLI
- Terraform
-
Create a VM with a customized FQDN:
-
Change an FQDN of an existing VM:
.).
For example, if you pass over the my-host value for the hostname parameter, the FQDN is the following:
--hostname parameter, the VM’s ID is used instead of the hostname (according to the default FQDN).