Translate different ports on the same hostname/server, to their own host names [closed]

For example, if I have Jonathan-PC.local, how would I translate Jonathan-PC.local:81 to wordpress.Jonathan-PC.local, Jonathan-PC.local:82 to joomla.Jonathan-PC.local, and Jonathan-PC.local:83 to drupal.Jonathan-PC.local? Is this Network Address Translation? Would a DNS Server be involved in this translation?