Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

DNS for host only vmware networking in linux

Posted on 2008-06-22
21
Medium Priority
?
1,388 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
17 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
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
Suggested Courses

879 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