dickyboy37
Technical User
Hy From France,
I want to change the primary DNS and the secondary DNS of a computer like XP or Seven according to network like this :
If mynetwork is 192.168.1.0 255.255.252.0 then
arrDNSServers = Array("x.x.x.x", "y.y.y.y.")
elseif mynetwork is 192.168.4.0 255.255.252.0 then
arrDNSServers = Array("t.t.t.t", "v.v.v.v")
end if
Have you a idea ?
Thanks and sorry for my poor english ;-)
Gil.
I want to change the primary DNS and the secondary DNS of a computer like XP or Seven according to network like this :
If mynetwork is 192.168.1.0 255.255.252.0 then
arrDNSServers = Array("x.x.x.x", "y.y.y.y.")
elseif mynetwork is 192.168.4.0 255.255.252.0 then
arrDNSServers = Array("t.t.t.t", "v.v.v.v")
end if
Have you a idea ?
Thanks and sorry for my poor english ;-)
Gil.