Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

---

macrumors member
Original poster
Nov 1, 2008
39
0
Canada
Just curious as to why every time I open Terminal, there is a different name preceding ~John$

Here are some examples:
wks50633:~John$
iMac:~John$
Brooke-PC:~John$
localhost:~John$

What is the name, and why does it change?
 

---

macrumors member
Original poster
Nov 1, 2008
39
0
Canada
wait, so the DHCP thing changed the hostname to teh-pwnerer ? Does it just have a big list of names to randomly assign to computers?
 

boast

macrumors 65816
Nov 12, 2007
1,407
860
Phoenix, USA
The DHCP gets the name from the DNS, which maintains the records of all the IPs and hostnames. The DHCP can also update DNS with a hostname on behalf of the client.

Does it just have a big list of names to randomly assign to computers?
The DNS would have a list of A records for assigning hostnames to IPs.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.