How to create short name for hostname

Such as one hostname: abcd1234, how to create a short name: a1?

If you want to access via the Internet you add a CNAME record to your DNS configuration for the domain.

or add the short name to your hosts file on any machine you want to contact it from if there are only a few machines you need this function on.

change the hostname value in /etc/hosts file. Eg:

w.x.y.z abc1.domain.com "abcd1234" is the hostname
change it to
w.x.y.z abc1.domain.com a1.

Thank you, it works on modify /etc/hosts.