Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DNS for host only vmware networking in linux

Posted on 2008-06-22
21
Medium Priority
?
1,386 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 
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
 

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 2000 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

Linux Academy Android App Now Supports Chromecast

We have some fantastic news for our Android fans. We’re so excited to announce that the Linux Academy Android app is now available with Chromecast support. That’s right – simply download the latest update of the Linux Academy App and start casting your favorite course videos!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
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.

670 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