Hi,
Could you simply try to edit hosts from SSH:
Press 'i' to start editing text file.
Navigate with arrows on your keyboard.
Add IP address and hostname.
Press 'esc' and type ':wq' to write and quit (save the file).
You should be able to resolve the hostname to the IP address as in the file.
Kind Regards,
Andzej