Terminal shows wrong computer name

When I launch Terminal the name before the prompt is MacMini, which is the name of another computer on the network. How do I fix it?

Pedantically and FWIW, IP routers are entirely unrelated to DNS. Your router is probably a gateway of some sort, and probably includes other functions beyond routing; probably a firewall and a DHCP server. (There are pure routers around.)
I'd expect you are running NAT and DHCP here.
And if that is the case, then I'd expect to see a domain name (one that is purely and carefully bogus, or preferably one that you have registered) set on the DHCP server, and provided to the clients via DHCP. I'd also expect to see two DNS servers referenced within the DHCP server configuration, your existing 8.8.8.8 and 8.8.4.4.
Picking a bogus domain is far harder than many folks realize; best to have a real and registered one, or a subdomain of a real and registered one.

Similar Messages

  • Terminal shows old computer name (after migration)

    After using migration assistant (over Ethernet) from a 2007 mini to a mid-2011 mini:    the Terminal shows the old computer name in the prompt.
    (Many other oddities -- every file action brings up "Finder wants to make changes" and requires a password, to move or copy or delete any file).    I see this problem has been reported before over the  years but I did not find any answer that didn't have further questions

    Aha, changing it in "Sharing" seems to have worked for me (suggestion from 'Kappy' in the 2008 "Re: Migration: (UNIX) thread, although it did not work for others in that thread at the time):

  • Terminal using wrong computer name

    I'm using a MacBook Pro (13-inch, Mid 2012), running Yosemite 10.10.1, and having a really strange issue with terminal. Occasionally when I open Terminal, it tells me I'm logged into bash on a different device. For example, I'm looking at my terminal now, and instead of saying:
    Nathan's-Macbook-Pro:~ Nathan$
    it says
    davids-iPhone:~ Nathan$
    I have no idea who david is or where his iPhone is. My only guess is it has something to do with being on open university wifi, but I still don't see why bash would display anything but my own device. Help?

    Pedantically and FWIW, IP routers are entirely unrelated to DNS. Your router is probably a gateway of some sort, and probably includes other functions beyond routing; probably a firewall and a DHCP server. (There are pure routers around.)
    I'd expect you are running NAT and DHCP here.
    And if that is the case, then I'd expect to see a domain name (one that is purely and carefully bogus, or preferably one that you have registered) set on the DHCP server, and provided to the clients via DHCP. I'd also expect to see two DNS servers referenced within the DHCP server configuration, your existing 8.8.8.8 and 8.8.4.4.
    Picking a bogus domain is far harder than many folks realize; best to have a real and registered one, or a subdomain of a real and registered one.

  • Terminal home screen/computer name

    Correct me if I'm wrong, but when you start Terminal shouldn't it show:
    Last login: <login date> on ttyp1
    Welcome to Darwin!
    <computer name>:~<shortname>$
    Mine does not show my computer name, instead it lists a string: "n2-213-113"
    What does this mean? (forgive me if it's nothing, but if I see something change from 'default', I flip out)

    That's the host name your ISP has given your computer. You should be able to change it by going to the /etc/hostconfig file and look for a line with HOSTNAME in it (might not exist by default}. Just change or add it and set it to your desired host name:
    HOSTNAME=newHostName
    You might have to reboot for it to see the change (or just use the hostname command until you do reboot).
    charlie

  • RE: iPhone 5 is showing wrong carrier name

    My iPhone 5 is showing wrong carrier name (near signal bars and also in the settings) even after turning off multiple times and even after changing carrier settings from automatic to manual and Vice Versa. My device is on iOS 7.0.4. I've tried replacing the simcard but still it is showing wrong carrier name. My service provider told me that I'm using the correct signals. I've purchased this device whilst I was in the UK with Vodafone as the carrier but the device has been unlocked to network. I've now moved to India and I'm using AIRTEL but the carrier name is displayed as VODAFONE IN.

    I've moved from Hyderabad to Bangalore and my phone started to show the correct carrier name, as soon as I entered to Karnataka cirlce from A.P. circle(I was on roaming). I think it's Airtel that relays the name as such in Hyd(A.P.) and it's nothing to do with the device. So, my problem is solved.
    Hope this helps.

  • My Apple TV is displaying the wrong computer name. It is showing up as "j".  How do I change it?

    Just recently my apple tv is displaying "j" as my computer name.  I did a restore and a reset on the apple tv but the problem still remains, also check itunes on my imac and evertything seems fine though.  Anybody have any ideas on how to fix this?

    Try to remove history and bookmarks entries that are wrong and revisit the site(s).
    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.com/kb/Bookmarks+not+saved#w_places-database-file

  • Custom Prompt sometimes shows wrong Machine Name

    I set up a custom command prompt in my .bash_profile to show the machine name. Sometimes it works, sometimes it doesn't.
    The command:
    export PS1='\[\033[0;32m\]\h \W\$ \[\033[0m\]'
    Sometimes it shows
    lud610wxp-sales rfreedman$
    Sometimes it shows
    qaimac rfreedman$
    This is correct
    I see the same behavior on other systems although the wrong machine name is different.

    If you're on a network, the hostname for the prompt is set by performing a reverse DNS lookup of your IP address. Often an old entry will be listed in the reverse DNS table before the current one, and its name will be used instead of the correct one. You can manually edit /etc/hostconfig if this bothers you, but it generally does not affect anything because forward DNS queries will be correct.

  • Mail.app Is Showing Wrong "From" Name

    I'm having a heck of a time with Mail.app.
    The latest bug is that in the list of incoming mail, it occasionally shows the wrong From name. When I open it up, it shows the correct name.
    Any ideas?
    And I still can't get it to send mail from the proper email address. I has one it likes, and will not deviate.

    Quit Mail. Force quit if necessary.
    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Mail/V2/MailData
    Copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
              Go ▹ Go to Folder
    from the menu bar. Paste into the box that opens by pressing command-V, then press return.
    A folder window will open. Inside it there should be files with names as follows:
              Envelope Index
              ExternalUpdates.storedata
    Move those files to the Desktop, leaving the window open. Other files in the folder may have longer names that begin as above. Move those files, if any, to the Trash.
    Relaunch Mail. It should prompt you to re-import your messages. You may get a warning that the index is damaged and that Mail has to quit. Click OK. Typically, the process takes a few minutes, but it may take hours if you have gigantic mailboxes. In that case, you may be able to speed things up by temporarily adding your home folder to the Privacy list in the Spotlight preference pane. Remove it when Mail has finished importing.
    Test. If Mail now works as expected, you can delete the files you moved to the Desktop. Otherwise, post your results.

  • Wlc monitor client detail show wrong interface name

    Hi,
    Do anyone know why I see the wrong interface name when looking at the client details?
    In the shown example the interface name should have been id017_publikunm not id161_admin
    The vlan nunmer 2317 and IP address 10.17.237.x is correct for id017_publikum.
    I hope some one out there can help.
    Aksel,

    I know its an old post but I encountered the same problem recently. What I did was I went to the same client properties and clicked on the remove button. It removed the association and when I filtered for the same client mac address I could see it has connected to the correct interface. So it was getting the correct IP Address also.............problem solved :)

  • Date In Terminal Shows Wrong Time

    I have a user (iMac Core 2 Duo 2.4GHz, 10.6.7, 6GB RAM) complaining that Entourage is reporting messages being sent/received 5 hours past the actual time. Sure enough, a test message I sent at 2:50 pm shows in her inbox as being sent/received at 7:50 pm. Checked the Date & Time settings in System Preferences, and all looks good & proper. When a file is created or modified, the time reported in Finder is correct. But when I open Terminal and type in the date command, it spits back a time exactly 7 hours in the future -- Fri Sep 30 19:50:33 UTC 2011.
    I've run a permissions cleanup on the drive, and the problem persists. Next step I guess is to trash a few prefs files, but I'm not sure whether doing that will affect the date/time that Terminal is picking up. Anybody have any quick tricks to rectify this issue, or maybe to set the date/time through Terminal?

    Ok, I think I have it fixed, kinda... The above response got me to pushing the time zone setting around the map, and I noticed that what is reported in Terminal didn't always match what I had set in the Preference panel. It seems to be associated with the city that's selected in the "Closest City:" pull-down menu to some degree; originally I had just typed in the local city name (Sioux Falls, SD) as I have on the other ~20 machines on the network. When I set it to Merida, Mexico, Terminal finally reported CDT correctly, and now Terminal (and Entourage) show the correct time.
    So I guess that's just a workaround; still would be nice to fix it for good.

  • Wrong computer name

    help!!! i accidentally typed in the wrong name i wanted to put in for my mac. so it is called drafterkif's macbook not drafterkid's macbook. how do you change it????

    System Preferences > Sharing

  • SO01 showing wrong user name

    Hello,
    When i go into T-code so01, I see the screen as Business workplace for
    <somebody_esle's_name> instead of Business work place for <my_name>.
    The problem is not with all the users, but only with my user Id.
    When i send the email from SAP inbox to outlook, the email is being
    received in outlook, but it is showing as if it is received from that somebody_else rather than me.
    Can someone please help and let me know how to change the settings so that it shows me the correct name?
    Regards,
    Shitij

    Was the user copied? Check SU01...

  • Last logged on by in exchange 2010 shows wrong users name.

    Dear All,
    i am having problem with wrong information display at last logged on by user at exchange 2010.
    i dont have given any users to full access or send as permission.
    please help to resolved this problem
    Sunil
    SUNIL PATEL SYSTEM ADMINISTRATOR

    You'll have to post more information and more clear problem statement to receive useful help.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Why does iphone 5C app updates show wrong login name?

    When I go to the app store to update apps, a name I've never seen before comes up as the login. It's disturbing. Is this a security risk?

    You've got an app that is owned by another ID. If this was warez, then yeah there would be a security risk there.
    What's the app and what's the Apple ID?

  • I am not able to setup Gmail Mail account - error shows wrong user name or password, where as I am inputting correct password and IMAP Setting.

    Getting error in setting up email account of Gmail. Same credentials with same passwords works quietly with outlook / MS office 2013.

    Very nice, resolved problem. Account setup in Thunderbird done.
    Thank you very much for the support.

Maybe you are looking for