Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rate Thread Display Modes
Old 07-14-2010, 08:06 AM   #1
cag0331
Prospect
 
Join Date: Jul 2010
Posts: 1
Terminal displaying completely random computer name?

Hey everyone, new to the site, but I think I will be spending much more time here as I begin to tinker more and more with my new MBP.

So this morning I opened my terminal to ssh into my home router so I could use some sites that are normally blocked by the excessively oppressive firewall at work, but when I the terminal came up, I noticed the computer name (or at least I think that's what I'm thinking of... the part before the colon) is completely different from what it normally is and what I have it set as in System Preferences>Sharing. Right now, it's displaying "wea46499:~ connor$" and my computer name is set as "Connors MacBook Pro" in my sharing preferences. I read that it could be due to a .bash_profile or .bashrc file in /~ but I have checked and I don't have those. I do have a .profile file, but I don't know what should be in it because I installed MacPorts and it seems to have changed the contents of the .profile file. Can someone shed some light? Thanks much.

Connor
cag0331 is offline   Reply With Quote
Old 07-14-2010, 10:44 AM   #2
baf
MVP
 
Join Date: Jun 2007
Location: Skellefteå, Sweden
Posts: 1,173
That is probably your companies dns name for that ip-address.
Try
Code:
hostname
in terminal.
then check that with dns
Code:
host "whatever hostname said"
and finally reverse that
Code:
host "ip from last host command"
__________________
/Bengt-Arne Fjellner IT-Administrator Luleå university, Sweden.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
baf is offline   Reply With Quote
Old 07-15-2010, 09:13 AM   #3
Andreas~
Triple-A Player
 
Join Date: Sep 2008
Location: UnKnown
Posts: 143
Connor

Welcome to the forums!

What you report could be due to “reverse DNS”. Have a look at my post in http://discussions.apple.com/thread....readID=1418905
__________________
Andreas
Andreas~ is offline   Reply With Quote
Reply

Tags
.profile, bash, command line, computer name, terminal

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 11:32 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.