Variable for hostname without domain

Variable for hostname without domain

avatar

Hi all,

Does anyone know which variable to use when to display the hostname without the domain part?

E.g.: when the computer has server.domain.com, I want to only display the "server" part. The variables $IP$ and $HOST$ both give the FQDN.
edited by lunarg on 11/13/2014

Best regards,
Jelle Hillen

All Comments (3)

avatar

Hi,
We don't have this but I will enter a feature request

David Hervieux

avatar

Hello,

In the next version, there will be a variable called $HOST_WITHOUT_DOMAIN$ which will try and get the host from a URL. In your case of "server.domain.com", it would give "server".

Regards,

Hubert Mireault

avatar











That is exactly what we need. Thanks!

Best regards,
Jelle Hillen