Solved

dhcp for virtual machines

Posted on 2012-03-17
16
498 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 100 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 121

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 400 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
LVL 121

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 400 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 121
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 121
ID: 37733613
use your DC DNS.
0
 
LVL 30

Author Comment

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

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 400 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 121

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 400 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 121

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 400 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
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 …
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…

717 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