Via Web or WinBox

System > Identity

Change MikroTik Hostname via WinBox

If you prefer the Terminal

[[email protected]dname] > system identity print  
[[email protected]] > system identity set name=newname  
[[email protected]] > system identity print

Change MikroTik Hostname