Host name shown in terminal is someone else

From reading a couple other semi-related topics around here I've determined that the host name shown in a terminal window is assigned by the network and not always the same. That's fine.

My issue is that while I'm at work (on a Windows network) I am showing a host name that is actually someone else's machine name on the network. So I show...

arichards:~ dsmith$

I just want to understand this more than anything. arichards is an actual other users's Windows computer name on the network. My computer name is bishop, so why is the host name showing another user?

I checked my assigned IP and pinged that user's machine and the IPs are different, so it's not like they're crossed. I'm not a network admin, so I'm just trying to determine if this is a problem that can be or needs to be fixed.

Thank you.

Posted on Oct 12, 2005 6:28 PM

Reply
10 replies

Oct 12, 2005 8:27 PM in response to BishopGrey

I've seen machines on Windows networks that do kinda what you're describing. Or like, your machine gets a specific ip address and you think it's ready to go, but when other computers on that network ping your ip they go to some other machine. Some co-workers and I discovered this while trying to mount shared folders on other machines.

I'm no Microsoft network expert, but I think this may have to do with Windows domain controller being misconfigured or out of date. I don't know how to fix it, but I know that our network at my previous job was all messed up like that, routes between computers were basically wrong half the time, and it took a week or something before our admin straightened it out.

Oct 12, 2005 9:23 PM in response to Kaan Erdener

That's good to know Kaan. Maybe I can pass this along to our IT dept for further investigation. The only fear is that they are a Windows only IT dept and always scoff at and fear our Macs in creative. 🙂 So they'll probably try to blame it on Apple or some crap. Thanks for the input. Anyone have any detailed solutions or an explanation of exactly why this happens?

Oct 23, 2005 9:47 PM in response to BishopGrey

With Active Directory and Windows DNS, DNS is updated when you login to AD.

What's probably happening is that computer, arichard, had the IP you have at one time - and if you check DNS ('nslookup <yourip>' in a terminal) you'll probably get arichard on the reverse lookup. When you get this address, via DHCP, your system does a name lookup, and renames your computer to that name.

To fix it locally on your machine, you should be able to go to System Preferences, Sharing, and type in your computer name in the Computer Name field.

To fix it in DNS, your MAC will need to login to the AD domain (don't ask me how) or your DNS admin will need to change the name in DNS (good luck).

Oct 27, 2005 10:40 AM in response to Chris Smith5

Thank you, Chris. Our computer names in Sharing were already set. We set them again to be sure, but that didn't do much. You were right about the cause though. When I mentioned this to our IT dept, they were able to do something to fix the issue on the network side.

It's issues like these that always leave me wondering.. is this an issue with OS X or the Windows network?

Nov 4, 2005 4:02 PM in response to BishopGrey

Could you please let us know what was done to fix the issue by your IT department? I'd REALLY like to know, as this is also driving me insane.

I'm looking for ways to fix it on my end so that my laptop refers to itself by the name I give it, always, unless I need to have it hand out the externally resolvable DNS name. No luck so far in a complete solution, though. 😟

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Host name shown in terminal is someone else

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.