How to enable WINS and DNS for a PC
If you are using WINDOWS 95 or NT TCP/IP, follow these instructions
for enabling
WINS and DNS services on your PC. If you are using another TCP/IP stack,
please refer to
the documentation which comes with those products. For Windows 3.1(1) or Win NT
3.51, please refer to the appropriate documentation for your stack (ie:
WRQ, Trumpet,
etc.)
Also, both of these may be done in the same session and need not be done
separately. They are shown separately in the event one of these services is
already set up
on your computer.
Enabling WINS on Windows 95 and NT 4.0 Workstation
- Rightclick "Network Neighborhood" on the desktop, click Properties
- Select TCP/IP bound to your Network Interface Card, Click Properties
- On the resulting tabbed dialog box, select "WINS Configuration"
- Select "Enable WINS Resolution" and enter the IP addresse(s) for the WINS
server (this could be the HP3000 if Samba/iX is running or your WinNT
server)
- Click OK, then OK again on the main Network Properties dialog.
- Restart the Computer
Enabling DNS on a Windows 95
and NT 4.0 Workstation
- Rightclick "Network Neighborhood" on the desktop, click Properties
- Select TCP/IP bound to your Network Interface Card, Click Properties
- On the resulting tabbed dialog box, select "DNS Configuration"
- Enter the host name, then the domain (ie: "dilbert", then
"somedomain.com"
- Enter the IP Address of the first DNS server, click Add. Repeat for
other servers.
- For "Domain Suffix Search Order"
- enter your domain (somedomain.com) and click Add.
- Click OK, then OK again on the main Network Properties dialog.
- Restart your computer.
LMHOSTS file for your PC or HP3000
(LMHOSTS = LanManager Hosts)
- Start any PC or HP3000 Text Editor
- Enter each computer on its own line, IP address first, then names
separated by
spaces. (Note: Do not use leading zeros on octets as in NMMGR; that
indicates OCTAL.
for example, in 192.220.10.1 do not enter as 192.220.010.001 as you would in
NMMGR. This is a quirk in NMMGR and is not standard notation).
After hosts are added, save the file in the \WINDOWS folder for PCs,
and as
HOSTS.NET.SYS on the 3000, with a link or copy to /etc/hosts
Restart the PC or restart the network on the HP3000.
Sample line: 192.220.10.1 computer1
NOTE: The computer name in LMHOSTS MUST MATCH that in the computer
configuration on the "Identification" tab of the Network Configuration
dialog - this is
not the "Windows Logon username". Failure to adhere to this will result in
the computer
not being found.
HOSTS file for your PC or HP 3000
- Use the same procedure as with LMHOSTS, except that on the HP3000, it
should
be linked to /usr/local/samba/lib/lmhosts
- Sample line: 192.220.10.1 computer1.somedomain.com computer1
Debugging Tools
- Set the line "debug level" in /usr/local/samba/lib/smb.conf to the
value 3.
- This will generate rather large log files. They are:
/usr/local/samba/var/log.smb for the SMB listener
/usr/local/samba/var/log.nmb for the NMB listener
- Microsoft Developers Network CD Library
- Microsoft Windows Resource Kits for Windows 95 and NT.
- And of course, always check, or better yet, print out the following
file:
/usr/local/samba/docs/DIAGNOSE.txt
This is an extremely valuable resource with a step-by-step diagnosis
procedure.
- The Samba Web page in Australia:
http://lake.canberra.edu.au/pub.samba/
Copyright 1997, The 3000 NewsWire. All rights reserved.