in reply to Re: DNS Script
in thread DNS Script

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: DNS Script
by Anonymous Monk on Apr 07, 2005 at 13:57 UTC
    Check out Automating Windows (DNS) with Perl at: http://www.perl.com/pub/a/2005/03/24/perl_dns.html. Just came out...
Re^3: DNS Script
by gellyfish (Monsignor) on Apr 07, 2005 at 13:13 UTC

    I think then you had better explain in better detail exactly what "add some DNS entries" means in this case.

    /J\

      Sorry, I need to add some searchlist entries into the HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\Parameters. But Windows NT4.0 and Windows 2000 have entries that are different like nt has spaces in between entries and 2000 has commas. Let me know if you need anything else.
        get me started on how to do a if statement.

        Sounds like you know what you need to do on each flavor of client already, so perhaps you can create a subroutine for each type of Windows system.

        Then, using Win32::API or Win32::TieRegistry, read the registry, and execute the proper subroutine from a dispatch table. Of course, if the workstations are not running perl locally you may also have to distribute the script to each, or do a login routine that does this.

        But- why not use DHCP to do this for you?