DHCP - How to seperate two different domains sharing same range

  • Thread starter Thread starter Curtis Fray
  • Start date Start date
C

Curtis Fray

Hi,

I have two domains (DOM1 and DOM2). DHCP is currently installed on DOM1.
DOM2 computers are to use the same IP range and subnet.

What I need to do is assign different DNS and WINS settings to the computers
that log on to DOM2. Is there anyway to do this without effecting DOM1
computers? Is there anyway to assign settings depending on which domain the
computer is logging on from?

Thanks,

Curtis.

====================================
When replying by email please remove the X
====================================
 
Curtis Fray said:
Hi,

I have two domains (DOM1 and DOM2). DHCP is currently installed on DOM1.
DOM2 computers are to use the same IP range and subnet.

What I need to do is assign different DNS and WINS settings to the
computers that log on to DOM2. Is there anyway to do this without
effecting DOM1 computers? Is there anyway to assign settings depending on
which domain the computer is logging on from?

Thanks,

Curtis.

====================================
When replying by email please remove the X
====================================
You can't assign different DNS/WINS to hosts in the same subnet, based on
the domain from the DHCP servers.
You can, however, modify the DNS address from Group Policy if all your
clients are WinXP.
Other methods includes using scripting (taken from ms scriptcenter)
On Error Resume NextstrComputer = "."Set objWMIService =
GetObject("winmgmts:\\" & strComputer & "\root\cimv2")Set colNetCards =
objWMIService.ExecQuery _ ("Select * From
Win32_NetworkAdapterConfiguration Where IPEnabled = True")For Each
objNetCard in colNetCards strPrimaryServer = "192.168.1.100"
strSecondaryServer = "192.168.1.200" objNetCard.SetWINSServer
strPrimaryServer, strSecondaryServer arrDNSServers =
Array("192.168.1.100", "192.168.1.200")
objNetCard.SetDNSServerSearchOrder(arrDNSServers)Nextor using NetSH (the
interface name must match on the client)
netsh interface ip set dns name="Local Area Connection" source=static
addr=192.168.1.100 register=primary
netsh interface ip add dns name="Local Area Connection" addr=192.168.1.200
index=2
netsh interface ip set wins name="Local Area Connection" source=static
addr=192.168.1.100
netsh interface ip add wins name="Local Area Connection" addr=192.168.1.200
index=2
regards
 
Thank you very much for your reply. The DCs are 2003 and the clients are XP.
I've tried creating a Group Policy which sets the DNS to the one I need it
to be. For some reason it's not being picked up and client machines are
keeping their DHCP assigned settings. I created another group policy to set
the IE proxy settings which works, so I know it's not a problem with Group
Policy in general. Any thoughts?

I haven't had a chance to try the scripting solution yet. I'll need to look
up how to do this.

Thanks again for your help so far,

Curtis.

----------
 
Back
Top