If you have any static IP then you will not get the DHCP hostname.In other cases you can use the following commandsWindows