VirtualBox Ubuntu Server with DNS
- by Boris Karl Schlein
I just want to have a local server inside my VirtualBox that offers dns functionality like www.example.local = 127.0.0.1 .
Host: Ubuntu 11.10, Guest: Ubuntu 10.10
On my server I can already ping www.example.local - so I configured my virtual host correctly.
Question is, how can I address www.example.local from outside my VirtualBox? I searched Google and askubuntu and found dnsmasq.
I installed dnsmasq on my server and followed all steps on help.ubuntu. On my host system I've set 192.168.178.91 to the list of dns servers (192.168.178.91 is the IP address of my local server which uses a bridged network adapter).
Thing is, I still cannot ping (or connect to) my example.local virtual host. It gives me an unknown host response.
How can I set up my DNS server correctly?