Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a CentOS 6.3 VM running on a Windows 7 host using VirtualBox. The guest is using a Bridged Adapter.

How can I configure VirtualBox to allow me to access my CentOS 6.3 guest OS by name instead of IP address without having access to DNS in order to register a name and static IP? Do I need to use NAT? Or some other configuration?

I want to be able to browse to my web server by name and set up virtual servers as subdomains. Right now I can only access the box by its IP address.

I have edited my host file to add entries into it, but I don't want to have to to this for every client machine I might want to browse from.

share|improve this question
2  
From the host? You could add it by name in the c:\WINDOWS\sytem32\hosts file. Just add the IP of the box, tab over one and add the hostname. There are some examples in the hosts file. Nothing needs to be done on the VBox –  nerdwaller Jan 17 '13 at 21:19
    
To what end? My Linux Mint guest (bridged) shows up by name in my Windows 7 host in explorer under the network tab and if I share folders in Mint I can access them from Windows. –  BJ292 Jan 17 '13 at 23:06
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.