Solved

DNS for host only vmware networking in linux

Posted on 2008-06-22
21
1,364 Views
Last Modified: 2013-12-06
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.
0
Comment
Question by:egitunix
  • 10
  • 7
21 Comments
 

Author Comment

by:egitunix
ID: 21844122
Please update
0
 

Author Comment

by:egitunix
ID: 21844139
.
0
 

Author Comment

by:egitunix
ID: 21844162
Points increased
0
 
LVL 18

Expert Comment

by:larstr
ID: 21844280
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
0
 

Author Comment

by:egitunix
ID: 21844351
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.
0
 
LVL 18

Expert Comment

by:larstr
ID: 21844511
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
0
 

Author Comment

by:egitunix
ID: 21844628
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.
0
 
LVL 18

Expert Comment

by:larstr
ID: 21845093
Why don't you rather stop your VMs, run vmware-config.pl, choose to setup networking and add additional NAT networks?

Lars
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:egitunix
ID: 21852319
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.
0
 
LVL 18

Expert Comment

by:larstr
ID: 21852945
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
0
 

Author Comment

by:egitunix
ID: 21942703
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.
0
 
LVL 18

Expert Comment

by:larstr
ID: 21943028
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.
0
 

Author Comment

by:egitunix
ID: 21943119
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.
0
 
LVL 18

Accepted Solution

by:
larstr earned 500 total points
ID: 21944024
The following is part of the dialogue from running vmware-config.pl:
Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes]
Configuring a NAT network for vmnet8.
Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes]
Probing for an unused private subnet (this can take some time)...
The subnet 192.168.221.0/255.255.255.0 appears to be unused.
The following NAT networks have been defined:
. vmnet8 is a NAT network on private subnet 192.168.221.0.
Do you wish to configure another NAT network? (yes/no) [no]

If you answer "yes" at this last question above you will be able to define addtional NAT networks.

Lars
0
 

Author Comment

by:egitunix
ID: 22100595
THE ANSWER I GET FROM EXPERTS EXCHANGE IS NOT GIVING ME THE SOLUTIONS I WANT.THIS IS HIGHLY DISAPPOINTING.
0
 
LVL 18

Expert Comment

by:larstr
ID: 22101969
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 .
0
 

Author Comment

by:egitunix
ID: 22159114
Can you explain how to use NAT only networking with three different subnets.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now