Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

My host computer is Windows 7 64. I have VirtualBox with an Ubuntu 10.04 Server x64 running as guest. My Ubuntu Guest has an ip of I have openssh installed on the guest. I can ssh into ubuntu from Windows. On my host Windows OS, I can type into the browser, and get your standard It works! apache message. My ubuntu guest hostname is "ubuntuserver01" When I type in "ubuntuserver01" into the browser address bar on my windows host os, it wont connect to the server on the guest. Is this just a problem with my /etc/hostname and /etc/hosts files (and what do I need to change?) or am I missing something else?

share|improve this question
up vote 1 down vote accepted

This is because when you type "ubuntuserver01" you are asking the DNS to look for a TLD with that name, try appending ".local" (only works if you router actually does this sort of mapping).

In other words, if you want that to work you need to add a mapping on your router. Or, this isn't recommended for a simple tasks, change your DNS settings on Windows to point to another server that knows this mapping. The "other" DNS would be one you own.

The mapping would be something similar to this:

"ubuntuserver01" -> ""

Please also note that when and if you do create your own DNS server, you still need to make sure the all the TLD's and other common mappings are in your new configurations along with this new one. Failing to do so will block your Windows machine to be able to resolve any website and will basically be blocked off from the internet.

share|improve this answer
I added: ubuntuserver01.local to my hosts file on windows. Now if I type in ubuntuserver01.local into the address bar on windows, I get a connection time out instead of a server not found – joe Feb 4 '12 at 23:19
Actually, I take that back. I had a mistype. Thanks for your help! – joe Feb 4 '12 at 23:26
No problem, @joe :) – Tamer Feb 26 '12 at 0:20

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.