Link to home
Start Free TrialLog in
Avatar of egitunix
egitunix

asked on

DNS for host only vmware networking in linux

The info is as below
Red hat enterprise Linux 5 ,having vmware workstation 6 installed. The primary interface in vmware guests are bridged to eth0
the other interfaces are as below
eth0 - 192.168.0.254
vmnet1(host only network having 192.168.1.1 as IP address)
vmnet2(host only network having 192.168.2.1 as IP address)
vmnet3 (host only network having 192.168.3.1 as IP address)

there will be different guests installed on 192.168.1.X, 192.168.2.X and 192.168.3.X range. These guests are being accessed from clients residing on 192.169.0.X range.

My problem is I am able to provide DNS service for the guests in the bridged network. But unable to provide DNS service from the Linux Host Server to the guests in the vmnet (host only network of 192.168.1.X, 192.168.2.X and 192.168.3.X )

Can this be done from vmware or from the Linux Host machine?
Please let me know how I can achieve this.
Avatar of egitunix
egitunix

ASKER

Please update
.
Points increased
Not sure I understand 100% what your goal is here.

A "host only" network is meant for being a network that has no access to/from external networks so DNS is not normally needed. If you still need a dns service for your private host only network you could probably run a virtual dns server on a VM in this network.

A NAT network will however have access to external networks and is also provided with dns support.

Lars
Ok to make things clear, the guests on host only network is been nated and can access the outside network, which i have made possible by firewall rules, which can do the trick.
But I am not able to configure DNS for guests in the vmnet host only network. More over I have guests in vmnet which are accessed by live iso images.
Hence giving static address to these iso's are not possible and would need a solution to assign static address and DNS for the Host Linux Server.
Hope its clear.
The built in dns server will only run on 1 nic (the one for NAT networking).

If you have already setup nat functionality for these other host only networks you could point the guests to an external dns server manually.

Lars
Yeah, the built in DNS is talking on the primary interface, thats eth0, but i want it to talk on vmnet1, vmnet2, vmnet3 (all three are host only networking ) and can be accessed by enabling traffic routing at the primary firewall.

My another problem is few guests on this network are running on live iso images and cannot be configured for the dns or dhcp. This should be done only from the Host server, which acts as the DHCP and DNS server.
How do I configure my DNS to allow vmnet1, vmnet2 and vmnet3 also to have or avail DNS services.
Why don't you rather stop your VMs, run vmware-config.pl, choose to setup networking and add additional NAT networks?

Lars
I have already done this many times before. My required is to have  DNS for the guests in the host only network , which should be provided by the Host Linux DNS server.

I hope my question is clear.
your question is clear and when you're using "host only" networking the guests will not be provided with dns and def gw through dhcp like they are if they are on a "NAT networking" network. The dns server is then provided by VMware and runs on the host.

Lars
Yeah I want a solution like that. Where the guests on Host only networking also get DNS . Please let me know , how I can achieve this.
Why can't you use NAT Networking instead of Host only? Host only will not give you a dns server unless you setup one yourself.
OK the reason why I cannot use NAT is, NAT does not give me what i require,which i get from Host only, like having three subnets as below
192.168.1.X
192.168.2.X
192.168.3.X
This can be achieved only by Host only networking.

This is what I want. How do i set up a DNS for guests in the host only network.
ASKER CERTIFIED SOLUTION
Avatar of larstr
larstr
Flag of Norway image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
THE ANSWER I GET FROM EXPERTS EXCHANGE IS NOT GIVING ME THE SOLUTIONS I WANT.THIS IS HIGHLY DISAPPOINTING.
I have tried to tell you before in this thread that "Host only" networking will not be a good solution for you, and that "Nat Networking" would solve your problems, even those of having three different subnets of 192.168.1.x, 192.168.2.x and 192.168.3.x .
Can you explain how to use NAT only networking with three different subnets.