Just a guess, but the simplest explanation is that you unwittingly connected to a (WiFi) network with a DCHP server that allocated you an ip address and hostname. It's run by someone who doesn't know what they doing, probably a neighbour's kid who is 'good with computers'. Another possibility is that someone is running a rogue DHCP server on your own network.
You can may be able to figure out which one by reviewing the Console.app logs, e.g. 'wifi.log' at the bottom of the list in the sidebar, around the time you rebooted.
Review and the list of WiFi networks you have previously connected to in your network settings and prune any that you don't recognise as being ones you want to connect to.
C.