Ubuntu – VirtualBox Ubuntu Server with DNS using dnsmasq

dnsdnsmasqservervirtualbox

I just want to have a local server inside my VirtualBox that offers DNS functionality like www.example.local => 127.0.0.1. My host operating system is Ubuntu 11.10 and guest is 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?

Best Answer

If hostname.local on your local network is the goal, then you don't need to do anything. You can just connect to it. If your laptop is named mylaptop, for instance, just connect to mylaptop.local. It's done using Avahi out of the box.

Related Question