Before DNS is setup you can either work with IP addresses or edit your local host file. Open a terminal and type sudo nano /etc/hosts. Enter your password and start editing.

Add the corresponding information, IP address and hostname. Then press Ctrl+X to save your changes.

From now on you can use the hostname to connect to it.