You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Hostname and Computer name different

Hi,


I am running OSX 10.8.2 on an iMac 13,1 model.


I am on a domain network (this.edu for anonymity) and would like to set up the computer to be accessible on the domain network.


Previously, the way this was done was to change the computer name (Sys prefs > Sharing), then restart, and it should read as follows in the sharing section:


"Computers on your local network can access your computer at: template.local" - assuming I typed template as the computer name


Remote login: "To log in to this computer remotely, type 'ssh localuser@template.this.edu'."


Remote Management: "Other users can manage your computer using the address template.this.edu."


Now, when I tried it, it reads as the following:


"Computers on your local network can access your computer at: template.local" - this is correct


Remote login: "To log in to this computer remotely, type 'ssh localuser@this23454.this.edu'." - random hostname...?


Remote Management: "Other users can manage your computer using the address this23454.this.edu"


Terminal command shows the following:


$hostname

this23454.this.edu

$sudo scutil --set HostName template.this.edu

$hostname

template.this.edu


Even when the hostname shows the correct name in terminal, the sharing section of sys prefs still shows "this23454.this.byu" as the hostname.

I've tried restarting multiple times.


Any ideas?

iMac, OS X Mountain Lion (10.8.2)

Posted on Feb 28, 2013 3:19 PM

Reply
3 replies

Feb 28, 2013 8:24 PM in response to krichreborn

I suspect your school is not going to give you a fixed IP address. So I would suggest getting a free dynamic DNS name from No-IP.com or DynDNS.org, then run a dynamic DNS updating app provided the service that gives you the dynamic DNS name. Then you will be able to access your iMac from anywhere on campus. And if your campus does not firewall the domain forcing the use of a Proxy server to access the outside world, then you would be able to access your iMac from off-campus.


Template.local is only valid on the same LAN where other computers can see yours via Bonjour protocols. Bonjour protocols will not cross a router boundary. A school.edu domain tends to be larger than a single LAN, so Bonjour will not be visible all over campus. And Bonjour names will not be visible outside school.


The bash shell running in a Terminal session takes your IP address and does a reverse DNS lookup to see what the DNS server is calling your IP address. If and only if the DNS server does not return a name will the Mac OS X name lookup daemon mDNSResponder return the System Preferences -> Sharing -> Computer name.


But this name will still not be visible outside your LAN.

Hostname and Computer name different

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