```
hostname = Socket.gethostname.sub(/\..*/, '')
```