File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Mac OS and the fly likes Mac hostname Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Mac hostname" Watch "Mac hostname" New topic
Author

Mac hostname

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10532
    
    9

I run Snow Leopard.
When I run the "hostname" command in a terminal, strangely (for me) I get machineName.local On my Ubuntu I get machineName only. What is this .local?

I tried System Preferences->Sharing There, it properly shows as machineName. However, when I click the edit button for "Computers on your local network can access your computer at: machineName.local" I am unable to get rid of the .local.

I was trying to test one of the web apps I am working on. Tomcat and browser run on the Mac itself.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61756
    
  67

The .local suffix is standard for Bonjour, OS X's zero-config network discovery mechanism.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10532
    
    9

From the wiki link
If a computer running Mac OS X is not assigned a domain name by the DNS server, it will identify itself as hostname.local.

(Quoting here so that future users can benefit)

Thank you Bear.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mac hostname