Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have setup a lamp server in buntu 9.10 inside virtual box.. but does anybody know a way how to get wildcard subdomains working with this setup?

Is it possible to only setup a DNS for the virtualbox and use this only for the development envoriment?

share|improve this question

1 Answer 1

Could you give a bit more explenation to what your trying to accomplish because I don't think I'm understanding you proper.

In any case I think this might be of use from what I could gather:

http://www.easymodrewrite.com/example-subdomains

EDIT:

Well it being in a VM Environment shouldn't matter, unless your trying to keep it all secluded from the "live" network you are on.

If you want to keep it seperated from your "real" network you'll need to use VLAN's inside of VirtualBox (configure the virtual network adapters it creates), everything else should be explained I guess in the above tutorial.

Or do you require further aid with getting started and all as well ?

Edit/Addendum 2

How have you configured your Virtual NIC's ? maybe include a picture if you can / screenshot of setup. Sounds like you are putting the Virtual NIC on the same subnet as your "real" network and its giving conflicts.

Anyways I actually wonder why your doing this.

If all your doing is setting up a LAMP server that gets redirected to with the usage of DNS then just setup a BIND server as a DNS server who forwards everything to your school / home / Company Network, and add specific zones strictly and only for the Domain you want.

Point your own DNS server settings to there and voila, your VM will forward all DNS queries it doesn't personally have (so everything that is not yoursub.yourdomain.tld) to the existing servers.

its a fairly simple solution to your needs, and isn't too hard to configure as opposed to starting to setup all kinds of Virtual Lans

Addendum nr: 3

I have a tutorial / guide somewhere that I wrote myself once but can't find it, for now I'll link the Ubuntu documentation:

https://help.ubuntu.com/community/BIND9ServerHowto

Its the section where they talk about forwarders.

I'll take a look tonight when I'm off work and if still needed I'll put the tutorial available somewhere.

share|improve this answer
    
What I am trying to do is setup a lamp with a dns.. (and still connect with my own computer to the internet normally) A little like this: postpostmodern.com/instructional/a-smarter-mamp But inside virtualbox. –  Chris Mar 23 '10 at 9:22
    
Yes I would like to seclude it from the real network.. because it is in my notebook and I connect to more then 1 network.. home and office. The problem is when I use the vhost lan is that I dont have an internet connection... which is kinda annoying as sometimes I need to install or test something on the development machine. –  Chris Mar 24 '10 at 1:56
    
Do you have any tutorial how to forward the DNS to home / office :) My experience about DNS is very limited (only want to setup my php enviroment for development ^^ ) –  Chris Mar 24 '10 at 10:16

Your Answer

 
discard

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