?
Solved

dhcp for virtual machines

Posted on 2012-03-17
16
Medium Priority
?
502 Views
Last Modified: 2012-03-18
I have a question I have 3 esx hosts on 1 host I have a dc doing dns my router does dhcp

so I want my vm's to use the dc dns and all others use my router

what I do at the moment is give the vm a static dns 1st to my router and 2nd to my dc so over 1 they get out to the net and on 2nd they can do domain stuff as if I dont have the 2nd dns pointing to my dc I cannot join the vm's to the domain for instance

so how can I do this automatically
0
Comment
Question by:IanTh
[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
  • 8
  • 7
16 Comments
 
LVL 4

Assisted Solution

by:ltsweb
ltsweb earned 400 total points
ID: 37733536
On the Virtual Machines, you should keep them static and point their DNS to your AD/Domain Controller DNS.  There should be ONLY one entry to that DNS Server.  Once set, do an IPConfig /flushdns and you will be able to join the DNS.

On the AD/DNS create a DNS Forwarder to your outside DNS servers for Internet Resolution.  That is done simply in the DNS program, right click the server and find Forwarder.  You can put in external DNS Servers or even an internal DNS.  Anytime a system queries the DNS and can't find the host, the forwarder will relay to the next DNS server.  This allows you to control the DNS for internal systems and even redirect a host to an internal ip.  Very useful to convert something like "mail.xxxx.com" to an internal IP address behind a firewall instead of pushing it out to the Internet."  

If I understand your scenario, this will allow you to have:

1) Join the domain from VM machine
2) Access external sites from VM w
3) Find internal systems/sites within the AD/DNS
4) Allow your router assigned DHCP systems to continue to use external/internal DNS

As for DHCP, you can leave it on the router and hand out internal DNS or external DNS.  However, to worktations that need to join the domain you should always use the DNS on the AD or you will have slow login!  In other words, make the DHCP server hand out the internal AD ip address that you added DNS Forwarders.  

If that DNS server should fail, you can always change dhcp to use an external DNS to keep the users surfing while you are repairing.

Please reply back if I did not understand the scenario.

Regards!
0
 
LVL 123

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 1600 total points
ID: 37733540
I would recommend, you disable DHCP on your router, and add DHCP role to your Server.

DNS and DHCP can be then integrated on your servers.

and then setup DNS forwarders to point to your ISP DNS servers beyond on the internet.

The only item, on your server DHCP server specify the routers IP addressbas the Default Gateway.

The issue with domain joining is your router is not AD integrated.

if you still wanted to use your router for DNS and DHCP, program the router to issue DNS IP address of your DC.

Configure DC DNS as forwarders to either router IP address or better your ISP IP DNS servers.
0
 
LVL 30

Author Comment

by:IanTh
ID: 37733582
I was hoping to have a different dns setting inside the vm's only

the dc is not on most of the time its on my vsphere lab I am getting in to wds

what is the dns inside vmware for if I could just use 2nd dns ie dc in the esx host that would mean only the vm's using the dc dns
wouldn't that work?
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
LVL 123

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 1600 total points
ID: 37733589
ESX has no DNS. ESX is a host server that hosts your VMs, it does not play any role in offering DNS requets.

the settings on a host server are to configure for your DNS servers on your LAN.
0
 
LVL 30

Author Comment

by:IanTh
ID: 37733601
ee dns
so if I just use 192.168.1.202 my dc inside the host would that work
0
 
LVL 123
ID: 37733609
I do not know, what you are trying to achieve here?
0
 
LVL 30

Author Comment

by:IanTh
ID: 37733611
just my vm are on the domain nothing else
0
 
LVL 123
ID: 37733613
use your DC DNS.
0
 
LVL 30

Author Comment

by:IanTh
ID: 37733619
I dont get you ?
0
 
LVL 123

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 1600 total points
ID: 37733631
just my vm are on the domain nothing else

use your DC DNS.
0
 
LVL 30

Author Comment

by:IanTh
ID: 37733644
but when I build a new vm from wds wont it need to have the dc dns done manually then
0
 
LVL 123

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 1600 total points
ID: 37733666
if you want VMs to be part of your domain and register with your domain, you must use a Windows DNS (Active Directory Domain Controller if Integrated)

if a client connects and uses a non Windows DNS, and a Router is not a true DNS, it's just a Proxy DNS, that proxys the request upstream to your ISP DNS.

Domain Join is likely to fail, because it will not find the SRV DOMAIN records, because a Router is not a DC.

ESX cannot do anything to help with this, it's not a VMware ESX issue.

My advice

1. When DC is UP and running in your lab, re-configure the router to issue DC IP Address as DNS, use DNS forwarders.

2, When DC is Down, reconfigure Router DHCP, to issue it's IP as DNS.
0
 
LVL 30

Author Comment

by:IanTh
ID: 37733678
actually couldn't that be done from wds to set dns and joinjom or is that always going to be manual step
0
 
LVL 123

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 1600 total points
ID: 37733689
It's possible.
0
 
LVL 30

Author Comment

by:IanTh
ID: 37733700
asking new question for thanks andy
0
 
LVL 30

Author Comment

by:IanTh
ID: 37734617
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

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: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
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…
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:
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

765 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