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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "unknown host" Watch "unknown host" New topic

unknown host

Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

I am running Lion OS X and while testing I have a problem for running it then I figure out I have following error.

Could not resolve the DNS name of unknowne4ce8f3898fc

From mac group I got the confirmation that error is for unknown host.

I have never noticed but now when I go back to my terminal it shows me

unknowne4ce8f3898fc:hadoop hadoop-user$

Why would terminal shows me with the unknown host then having my machine name in the start.

How to fix this?

Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

Surprisingly when I look at Web Sharing I got following message.
Your personal website, in the Sites folder in your home folder, is available at this address

And when I click on the link I am able to open folder by name Jignesh.

same is applicable for remote login.
To login to this computer remotely type ssh

For the remote management:On
other users can manage your computer using the address unknowne4ce8f3898fc

While my Computer name is Jignesh MacBookPro

Looks like while configuring ssh proper name is not given and that is the problem. How to fix this? And even I fix this, does this screw up my ssh setup?

Pat Farrell

Joined: Aug 11, 2007
Posts: 4659

I see a similar problem. My MBP doesn't know that its name is specified via TCP/IP, DNS, etc.

I don't have a problem with SSH, but I do have a problem using the Apache java mail library to send mail. My mail sender requires that client machines know there own name, and
report it in the HELO message to SMTP.

For SSH, you probably want to make sure you have a config file in your .ssh directory and have it contain lines such as:

Host *
ForwardX11 yes
XAuthLocation /opt/X11/bin/xauth

This is because OS-X stores the X11 data in a non-Unix standard location.
I agree. Here's the link:
subject: unknown host
It's not a secret anymore!