Solved

DNS for host only vmware networking in linux

Posted on 2008-06-22
21
1,374 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …

756 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