Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a very basic question here. This thing is puzzling me a little bit.

I have one Ubuntu machine which is running 12.04 and I am connecting to that machine from putty in my desktop (which is running windows).

I started Netflix Exhibitor like this in that Ubuntu machine -

cronusapp@phx5qa01c:/zook$ java -jar ./exhibitor-1.5.1/lib/exhibitor-1.5.1-jar-with-dependencies.jar -c file
INFO  com.netflix.exhibitor.core.activity.ActivityLog  Exhibitor started [main]
INFO  org.mortbay.log  Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog [main]
INFO  org.mortbay.log  jetty-1.5.1 [main]
Dec 18, 2013 7:10:35 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.9.1 09/14/2011 02:36 PM'
INFO  org.mortbay.log  Started SocketConnector@ [main]

And then I went to chrome browser in my desktop and I opened the url like this with the machine hostname -


And this url is showing me blank white page on the screen. But if I replace the hostname with IP Address of that machine, then it starts working and I can see the actual content on my browser.

Now I am not sure why this is happening. Is there any file which I am supposed to modify in my Ubuntu box to recognize the hostname instead of ip address.

I believe this is pretty basic question which I am not aware of? Any idea what I am supposed to do to fix this?


This is what I have done to figure out the IP Address, I am taking IP Address for etho -

root@phx5qa01c:/home/david# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:56:ad:5b:a9
          inet addr:  Bcast:  Mask:
          RX packets:351211 errors:0 dropped:590 overruns:0 frame:0
          TX packets:291409 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:426570999 (426.5 MB)  TX bytes:39383233 (39.3 MB)

lo        Link encap:Local Loopback
          inet addr:  Mask:
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:15839 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15839 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1455090 (1.4 MB)  TX bytes:1455090 (1.4 MB)

And below is for the hostname -

root@phx5qa01c:/home/david# hostname -f


This is what I got after nslookup from my desktop -

david@desktop /cygdrive/c/ApacheExhibitor/Exhibitor-1.5.1/target
$ nslookup phx5qa01c.stratus.phx.qa.host.com
Non-authoritative answer:
Server:  sjd-entdc-001.corp.host.com

Name:    phx5qa01c.stratus.phx.qa.host.com
share|improve this question
Are you sure that phx5qa01c.stratus.phx.qa.host.com resolves to – cjm Dec 19 '13 at 6:06
How to find out that hostname actually resolves to that IP Address? I have updated the question with a small update.. – lining Dec 19 '13 at 6:11
up vote 2 down vote accepted

If your hostname doesn't resolve to the IP address ( you can check it by pinging your hostname) add an entry in the /etc/hosts file like below phx5qa01c.stratus.phx.qa.host.com

Update For windows machines hosts file is in c:\WINDOWS\system32\drivers\etc\hosts

share|improve this answer
see my updated question.. It is getting resolved to that IP address after doing nslookup from my desktop.. – lining Dec 19 '13 at 6:19
Does that hostname resolves from the Windows machine – Manula Waidyanatha Dec 19 '13 at 6:36

Soem webservers like apache can be configured to deliver different content for different hostnames (and still have the same IP). That could be the case here as well.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.