Re: remote ip configuration

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: reaperman (reaper_man_at_mail.ru)
Date: 06/17/04


Date: Thu, 17 Jun 2004 16:46:04 +0400

Hello, Michael!

Thanx for you extensive answer ;)

 MH> The only caveat I have found is that your card must be connected to
 MH> something. It works fine for me on both my XP notebook and my daughters
 MH> 2K pro box. Can you tell me how you are getting it to fail or what your
 MH> result is? I am really surprised by this.

I was too... The matter was: the test win2k pro machine (where I ran all my
test code) silently cleaned its DNS servers list when I used
SetDNSServerSearchOrder() function, but didn't switch to getting DNS from
DHCP, it just sat there with DNS servers list empty... so I was sure I
missed something critical in my script or there's no possibility at all to
make a workstation use DNS settings provided by DHCP. But yesterday this
test machine got reinstalled and now everything seems Ok.. strange... I
don't know what it was preventing my script to run correctly, it's
impossible to investigate now (but this machine was messed up really bad,
it's got almost every kind of error messages in its eventlog ;), however
nothing concerning WMI...)

 MH> Am I not on the same page as you? True the documentation says
 MH> SetDynamicDNSRegistration is for setting it to register, but it also
 MH> says it is 2K3 and XP only. Try out the code below this is the code I
 MH> ran on the 2K box a few minutes ago.

 MH> I ran this code on 2K Pro and it made everything DHCP
[code skipped]
Thanx for the code, you're absolutely right, the code is working
excellently. I hope I'll never stumble upon similar problem again...

-- 
With best regards, reaperman.  E-mail: reaper_man@mail.ru


Relevant Pages

  • Re: passing dns IP from dhcp client on external IF to dhcp server on internal IF
    ... >> if1 gets IP and DNS settings through DHCP, so I have a dhcp client on ... My task is to make the current DNS settings available to ... The OS could ship with a sample script that propogates DNS ...
    (comp.unix.bsd.openbsd.misc)
  • Re: Obtain DNS information from DHCP
    ... Usually the res kits break when your 'script' does not address ... static to DHCP, however, I cannot get the DNS settings to pull from DHCP. ... that will allow for DHCP configuration of DNS. ...
    (microsoft.public.scripting.wsh)
  • Re: remote ip configuration
    ... > I'm trying to write a script that would allow me to completely control Local ... > configuration on the target workstation (it can be seen from its Local Area ... I use this to set DHCP and obtain DNS servers. ...
    (microsoft.public.scripting.wsh)
  • Re: Change computer dns to automatic
    ... you can use the script below to change all IP-settings to DHCP on the ... Dim wmiRoot, wmiQuery ... I am using DHCP for my ... >I am looking for a way to change all the dns configuration on all the XP ...
    (microsoft.public.windows.server.scripting)
  • DLINK 614+, script injection vulnerability
    ... TYPE: Script injection over DHCP ... to change the administrator password (doesn't require his current ...
    (Bugtraq)