What's the meaning of the first two lines occurring after opening a Terminal window?
Hostname can be set by the wifi network's DHCP server, but you can turn this off - see https://superuser.com/questions/49891/how-can-i-stop-mac-os-x-overriding-my-hostname-when-i-receive-a-dhcp-request-on