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

---

macrumors member
Original poster
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?
 
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?
 
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.