Network broadcast device name

Does anyone know how the device name that is broadcast to the network (as shown in the attached devices on my router) is set. I had always assumed that it was set in /etc/hostname, but this doesn’t appear to be the case. This file contains Volumio2, yet my router reports it as VOLUMIO.