can SAMBA assign win98 Hostnames?

Tim Fletcher tim at parrswood.manchester.sch.uk
Thu Jan 18 14:19:50 GMT 2001


> I'm working on a project where we want to remote-control windows boxes
> via a linux server. It would be nice if we coul ddynamically assign not
> only IP-addresses but also hostnames.
>
> can samba (or anything else) do this?

I think that there are MS extensions to the dhcp protocol that do this,
were they are documented I don't know. Talk to a MS dhcp admin. You could
also do this with samba as follows: (this is just theory)

1. in run once put a .bat script into copy //linuxserver/machine/id.reg
onto c:\reg\id.reg on boot

2. In autoexec.bat put a call into regedit c:\reg\id.reg

3. On the linux server setup a share as this:
[machine]
	path=/machines/%I

4. Create a set of dirs, one for each ip you use with the file id.reg in
which contains the following: (also attached in case formating is eaten)

REGEDIT4

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSUP]

"ComputerName"="My mahcines name"
"Workgroup"="My workgroup"
"Comment"="Something silly"
"StaticVxD"="vnetsup.vxd"
"Start"=hex:00
"NetClean"=hex:01

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\control\ComputerName\ComputerName]

"ComputerName"="My machines name"

-- 
   Tim Fletcher - Network manager   .~.
                                    /V\      L   I   N   U   X
     nightshade at solanum.net        // \\  >Don't fear the penguin<
tim at parrswood.manchester.sch.uk   /(   )\
 irc: Night-Shade on quakenet      ^^-^^

"A computer lets you make more mistakes faster than any invention
in human history - with the possible exceptions of handguns and tequila."
          -Mitch Ratliffe, Technology Review April, 1992
-------------- next part --------------
REGEDIT4



[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSUP]



"ComputerName"="laptop-401"

"Workgroup"="parrswood"

"Comment"="Faculty Laptop"

"StaticVxD"="vnetsup.vxd" 

"Start"=hex:00

"NetClean"=hex:01 



[HKEY_LOCAL_MACHINE\System\CurrentControlSet\control\ComputerName\ComputerName]



"ComputerName"="laptop-401"



More information about the samba mailing list