Patrick J. LoPresti writes: > Peter Stange <[EMAIL PROTECTED]> writes:
[...] > > > I will use the hostname as an identifier for the > > winnt/udf=id,[udf-file] switch. So it is possible for me to have > > only one unattended.txt and one unattended.udf for all clients. > > This would be nice. But is it really so bad to use the IP address > instead? [...] > > I will use the hostname entry sended by the DHCP server. One chance > > is to use "nslookup.exe IP-Addr DNS-Server" to resolve the hostname. > > I didn't find a nslookup.exe or hostname.exe program for this > > environment. d-| > > Yes, this would solve your problem in a different way, by querying the > DNS instead of using the DHCP client hostname option. DNS resolution > is a complex algorithm, so perhaps there is no implementation for DOS > with MS Client. But it is so important... So maybe there is. But I > do not know of it. Neither Lanman nor Msclient comes with nslookup or any other useful network tools. There's plenty of implementations of these programs for DOS, but they all use packet drivers, not NDIS. I've tried using a packet driver -> NDIS driver, but didn't get it to work. The simplest solution is probably to use ipconfig (or just read the dhcp file directly), to get the IP address. You could then use the IP address to look up the name in a file on the server, and use that for unattend.txt. This is not elegant, and would probably need some sort of cron job to keep the host file updates, but would probably work just fine. -- Dag Nummedal ([EMAIL PROTECTED]) ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ unattended-info mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unattended-info
