LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   DNS with Internal Network (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/dns-with-internal-network-847674/)

Deewanagan 12-01-2010 06:09 AM

DNS with Internal Network
 
Hi,
I have setup an internal network between two VM. Ubuntu 9.04 and 10.10 are installed on the virtual machines. What i am doing is that one of the virtualmachines, the one with ubuntu 10.10, is being used as a router. I need all the traffic to be routed from that vm, coz it have internet connection and i want to test bandwidth sharing. i want to generate traffic from the Ubuntu 9.04. Now my problem is that i can't access the internet. the problem is with dns! because i can ping other ip addresses outside of the internal network, also i can ping google/yahoo ip addresses, but can't use the dns service. The ip addresses for the internel network is setup manually.

Can anyone help me get the dns service working ? :D

bathory 12-01-2010 08:26 AM

Hi,

For your router box you can add in /etc/resolv.conf
Code:

nameserver 8.8.8.8
so it can use google public dns for resolving.
Now if you want the internal box to use your router as a resolver, you have to setup the router box as a caching/forwarding dns. For this you need to install a name server such as dnsmasq or bind
Use your distro's package manager to install one of them (dnsmasq is more lightweight) and read a howto about configuring a caching name server using the installed package

Regards


All times are GMT -5. The time now is 04:35 AM.