RE: DNS Search Suffixes option ?
*** From dhcp-server -- To unsubscribe, see the end of this message. *** Best I've found is this simple reghack that runs in the login script (this is only on win9x clients): REGEDIT4 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP] "EnableDNS"="1" "HostName"="host" "Domain"="" "SearchList"="primary.com,secondary.com,tertiary.com" "NameServer"="" This lets me give 3 (or more) domains, while still pulling the IP address for the nameserver from DHCP. Of course, it has a glitch or two, i.e. a user has to click on 'OK' becase they get a dialog box stating "domain.reg has been sucessfully entered into the registry", and it's really only good for machines that are going to remain on a desktop because if the machine wanders to yet another domain (ISP at home if a laptop) and pulls DHCP, the domain it gets doesn't seem to override the search order, so no resolution. But for me, where I had hundreds of machines that were never going to leave the building, this worked great. Reboot them, log them into the domain once, and they're done. Then I turned off the reghack in the login script and just run it manually from a share for any new builds that go out to the floor. Maybe it'll help in your case, maybe not. Mark -Original Message- From: Ted Lemon [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 03, 2000 2:46 PM To: PINTO Paulo Sergio Cc: Dhcp-Server (E-mail) Subject: Re: DNS Search Suffixes option ? *** From dhcp-server -- To unsubscribe, see the end of this message. *** I need to supply my DHCP clients (mainly Win9x/NT Workstation) with a couple of DNS suffixes, but after looking at the dhcp-options man page I can't seem to find'em. There's no way to do this - it's not currently supported in the protocol. You can't do it with the Microsoft server either, AFAIK. The server doesn't seem too hard to configure .. but what about the client ? Unless you feel like doing some serious Windows hacking, forget it. _MelloN_ --- List Archives : http://www.isc.org/ml-archives/dhcp-server/ Unsubscribe : http://www.isc.org/dhcp-lists.html -or- : mailto:[EMAIL PROTECTED]?Subject=unsubscribe --- --- List Archives : http://www.isc.org/ml-archives/dhcp-server/ Unsubscribe : http://www.isc.org/dhcp-lists.html -or- : mailto:[EMAIL PROTECTED]?Subject=unsubscribe ---
RE: DNS Search Suffixes option ?
*** From dhcp-server -- To unsubscribe, see the end of this message. *** By the way, if anyone has a smoother, even less intrusive way to do this reghack (it *IS* far faster than doing it manually), I'd be curious to learn it :) -Original Message- From: Rolen, Mark E. [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 03, 2000 3:00 PM To: 'Ted Lemon'; PINTO Paulo Sergio Cc: Dhcp-Server (E-mail) Subject: RE: DNS Search Suffixes option ? *** From dhcp-server -- To unsubscribe, see the end of this message. *** Best I've found is this simple reghack that runs in the login script (this is only on win9x clients): REGEDIT4 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP] "EnableDNS"="1" "HostName"="host" "Domain"="" "SearchList"="primary.com,secondary.com,tertiary.com" "NameServer"="" This lets me give 3 (or more) domains, while still pulling the IP address for the nameserver from DHCP. Of course, it has a glitch or two, i.e. a user has to click on 'OK' becase they get a dialog box stating "domain.reg has been sucessfully entered into the registry", and it's really only good for machines that are going to remain on a desktop because if the machine wanders to yet another domain (ISP at home if a laptop) and pulls DHCP, the domain it gets doesn't seem to override the search order, so no resolution. But for me, where I had hundreds of machines that were never going to leave the building, this worked great. Reboot them, log them into the domain once, and they're done. Then I turned off the reghack in the login script and just run it manually from a share for any new builds that go out to the floor. Maybe it'll help in your case, maybe not. Mark -Original Message- From: Ted Lemon [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 03, 2000 2:46 PM To: PINTO Paulo Sergio Cc: Dhcp-Server (E-mail) Subject: Re: DNS Search Suffixes option ? *** From dhcp-server -- To unsubscribe, see the end of this message. *** I need to supply my DHCP clients (mainly Win9x/NT Workstation) with a couple of DNS suffixes, but after looking at the dhcp-options man page I can't seem to find'em. There's no way to do this - it's not currently supported in the protocol. You can't do it with the Microsoft server either, AFAIK. The server doesn't seem too hard to configure .. but what about the client ? Unless you feel like doing some serious Windows hacking, forget it. _MelloN_ --- List Archives : http://www.isc.org/ml-archives/dhcp-server/ Unsubscribe : http://www.isc.org/dhcp-lists.html -or- : mailto:[EMAIL PROTECTED]?Subject=unsubscribe --- --- List Archives : http://www.isc.org/ml-archives/dhcp-server/ Unsubscribe : http://www.isc.org/dhcp-lists.html -or- : mailto:[EMAIL PROTECTED]?Subject=unsubscribe --- --- List Archives : http://www.isc.org/ml-archives/dhcp-server/ Unsubscribe : http://www.isc.org/dhcp-lists.html -or- : mailto:[EMAIL PROTECTED]?Subject=unsubscribe ---
RE: DNS Search Suffixes option ?
*** From dhcp-server -- To unsubscribe, see the end of this message. *** I know this may be heading off topic, and this isn't a "Microsoft Tips" list, but I thought it might help with the little "hack" mentioned below. Change your login script to say: regedit /s searchdomain.reg The "/s" will keep the little dialogue box from popping up and the user having to click on the OK button. _ .| Trust the computer industry to |_) || [EMAIL PROTECTED] | shorten "Year 2000" to Y2k. It was |_)_| | this kind of thinking that caused Passauer_| Residence Computing | the problem in the first place. On Thu, 3 Feb 2000, Rolen, Mark E. wrote: *** From dhcp-server -- To unsubscribe, see the end of this message. *** By the way, if anyone has a smoother, even less intrusive way to do this reghack (it *IS* far faster than doing it manually), I'd be curious to learn it :) -Original Message- From: Rolen, Mark E. [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 03, 2000 3:00 PM To: 'Ted Lemon'; PINTO Paulo Sergio Cc: Dhcp-Server (E-mail) Subject: RE: DNS Search Suffixes option ? *** From dhcp-server -- To unsubscribe, see the end of this message. *** Best I've found is this simple reghack that runs in the login script (this is only on win9x clients): REGEDIT4 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP] "EnableDNS"="1" "HostName"="host" "Domain"="" "SearchList"="primary.com,secondary.com,tertiary.com" "NameServer"="" This lets me give 3 (or more) domains, while still pulling the IP address for the nameserver from DHCP. Of course, it has a glitch or two, i.e. a user has to click on 'OK' becase they get a dialog box stating "domain.reg has been sucessfully entered into the registry", and it's really only good for machines that are going to remain on a desktop because if the machine wanders to yet another domain (ISP at home if a laptop) and pulls DHCP, the domain it gets doesn't seem to override the search order, so no resolution. But for me, where I had hundreds of machines that were never going to leave the building, this worked great. Reboot them, log them into the domain once, and they're done. Then I turned off the reghack in the login script and just run it manually from a share for any new builds that go out to the floor. Maybe it'll help in your case, maybe not. Mark --- List Archives : http://www.isc.org/ml-archives/dhcp-server/ Unsubscribe : http://www.isc.org/dhcp-lists.html -or- : mailto:[EMAIL PROTECTED]?Subject=unsubscribe ---
RE: DNS Search Suffixes option ?
*** From dhcp-server -- To unsubscribe, see the end of this message. *** On Thu, 3 Feb 2000, Rolen, Mark E. wrote: *** From dhcp-server -- To unsubscribe, see the end of this message. *** By the way, if anyone has a smoother, even less intrusive way to do this reghack (it *IS* far faster than doing it manually), I'd be curious to learn it :) Perl is your friend, I run the following in our nt login scripts it should give you some idea of how to use perl for making registry changes. # First outline user hack script # to do:- get OS details, user details, build database of installed # patches etc...in fact lots :) use strict; use Win32::Registry qw( REG_SZ REG_DWORD ); use Win32; my $installedpatches="SOFTWARE\\COEPatches\\InstalledPatches"; my $waitfor="_INS5576._MP"; my $failedpatches="SOFTWARE\\COEPatches\\FailedPatches"; my $Software; my $InstalledPatches; my $Coepatches; my $FailedPatches; my $currentpatch; my $newpatch; my $newfiles; my $CoePatches; my $currenttime; my $HKCU; my $HKLM; my $hostname; my $username; my $Domain; my $SID; my $SIDtype; $main::HKEY_CURRENT_USER-Open("SOFTWARE", $Software) or die "Open: $! "; $main::HKEY_CURRENT_USER-Open($installedpatches,$InstalledPatches); if($InstalledPatches) { print("Registry Entry for Patches exists\n"); }else { print ("Creating Registry entries to hold patch information\n"); $Software-Create("CoePatches", $CoePatches) or die "Create: $!"; $CoePatches-Create("InstalledPatches",$InstalledPatches) or die "Create: $1"; $CoePatches-Create("FailedPatches", $FailedPatches) or die "Create: $1"; } my $installtime; my $patchno="undefined"; my $os=$ENV{"OS"}; print "os found $os\n"; my $NT="Windows_NT"; my $hostname=$ENV{"COMPUTERNAME"}; my $username=$ENV{"USERNAME"}; #Why does notepad do wierd things with the || bit in this? open (PATCHID,"patchid") or die "oops...what patch am I supposed to be$!"; #ÝÝ die "cannot open PATCHID\nIs patch.pl being run from it's own directory?\n"; $patchno= PATCHID; chomp($patchno); $InstalledPatches-Open($patchno,$currentpatch); if ( $currentpatch) { printf("Patch $patchno is already installed\n"); } else { my $wait=1; printf("Installing patch $patchno\nPlease wait\n"); if ( $os eq $NT) { #Registry Hack to do filename completion $main::HKEY_CURRENT_USER-Open("SOFTWARE\\Microsoft\\Command Processor", $HKCU) or die "Open: $! "; $HKCU-SetValueEx("CompletionChar",0,REG_DWORD,0x09); #Registry Hack to turn off drive letters $main::HKEY_CURRENT_USER-Open("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer", $HKCU) or die "Open: $! "; $HKCU-SetValueEx("NODRIVES",0,REG_DWORD,24); #Registry hack to force hung tasks to end when logging off $main::HKEY_CURRENT_USER-Open("Control Panel\\Desktop", $HKCU) or die "Open: $! "; $HKCU-SetValueEx("AutoEndTasks",0,REG_SZ,1); $HKCU-SetValueEx("WaitToKillAppTimeout",0,REG_SZ,1); print"Doing Postconfig\n"; system(".\\postinst.pl"); } else { } if ( $os eq $NT) { printf("Installing services.\n"); } $installtime=localtime; print "\n$currenttime"; $InstalledPatches-Create($patchno,$newpatch) or die "horribly $!"; $newpatch-Create("NewFiles", $newfiles) or die "horribly $!"; $newpatch-SetValueEx("Installdate",0,REG_SZ, $installtime); } --- | Iain Rae | Tel: 0131 449 5111 Ext 4406 (Day)(but I'm never in)| | Computing Officer. | Any Opinions I am able to form are my own and in no| | Civil Offshore Eng. | way reflect those of my employers. | | Heriot-Watt University.| Well that's my opinion anyway. | --- --- List Archives : http://www.isc.org/ml-archives/dhcp-server/ Unsubscribe : http://www.isc.org/dhcp-lists.html -or- : mailto:[EMAIL PROTECTED]?Subjectÿsubscribe ---