0

Sorry for my inexperience, I have little experience working with the terminal.

When connected to university wifi, the name changes to something strange that I don't recognize.

enter image description here

However, when disconnected from wifi, the terminal reads the name of my computer.

enter image description here

Can anyone tell me what this means or why this happens?

1 Answers1

1

I wish people would search. I think this gets answered perhaps once a week.

You have configured your shell to display the hostname of the machine in the prompt.

The shell is trying to reverse the computer's IP address to determine the hostname.

When it is connected to your local network, it cannot, so it uses the one you have set in the Sharing pane.

When you are connected to your university wifi, it is successfully able to reverse the IP address to a name, so that is the name it displays.

Marc Wilson
  • 5,920