Windows NT 4.0 WINS Server Configuration Guide
Introduction
Windows Internet Name Service (WINS) provides NetBIOS name resolution for Windows networks. In NT 4.0 environments, WINS is critical for proper network functionality, especially in routed networks. This guide covers installation, configuration, and troubleshooting of WINS servers.
Understanding WINS
What is WINS?
WINS is Microsoft's implementation of a NetBIOS Name Server (NBNS): - Resolves NetBIOS names to IP addresses - Dynamic database of name registrations - Reduces broadcast traffic - Essential for browsing across subnets
NetBIOS Names
NetBIOS names characteristics: - Maximum 15 characters (16th reserved) - Case-insensitive - Different from DNS names - Required for NT 4.0 networking
When You Need WINS
WINS is required when: - Network spans multiple subnets - Using NT domains across routers - Need to reduce broadcast traffic - Supporting legacy applications - No Dynamic DNS available
Installing WINS Service
Prerequisites
- Windows NT Server 4.0
- Static IP address
- Administrative privileges
- Service Pack 3 or later recommended
Installation Steps
-
Add WINS Service
Control Panel → Network → Services → Add Select "Windows Internet Name Service" Insert NT Server CD if prompted Click OK
-
Configure TCP/IP
Network → Protocols → TCP/IP → Properties WINS Address tab: Primary WINS Server: [This server's IP]
-
Restart Server
- Required for service activation
- WINS database created automatically
Initial Configuration
-
Start WINS Manager
Start → Programs → Administrative Tools → WINS Manager
-
Add Local Server
Server → Add WINS Server Enter this server's IP address
WINS Database
Database Location
Default location:
%SystemRoot%\System32\WINS\
- wins.mdb (Main database)
- winstmp.mdb (Temporary file)
- J50.log, J50.chk (Transaction logs)
Record Types
Common NetBIOS suffixes:
- <00>
- Workstation service
- <03>
- Messenger service
- <06>
- RAS Server service
- <1B>
- Domain Master Browser
- <1C>
- Domain Controllers
- <1D>
- Master Browser
- <1E>
- Browser Elections
- <20>
- Server service
Database Maintenance
-
Backup Database
WINS Manager → Mappings → Backup Database Specify backup path Enable automatic backup
-
Restore Database
Stop WINS service Copy backup files to WINS directory Start WINS service
-
Compact Database
net stop wins cd %SystemRoot%\System32\WINS jetpack wins.mdb tmp.mdb net start wins
WINS Client Configuration
Manual Configuration
-
Windows NT/2000/XP
TCP/IP Properties → WINS Address Primary WINS Server: [IP Address] Secondary WINS Server: [IP Address] Enable NetBIOS over TCP/IP
-
Windows 95/98
TCP/IP Properties → WINS Configuration Enable WINS Resolution WINS Server: [IP Address]
DHCP Integration
Configure DHCP to provide WINS:
DHCP Manager → Scope → Options
044 WINS/NBNS Servers: [WINS IPs]
046 WINS/NBT Node Type: 0x8 (h-node)
Node Types
NetBIOS node types: - B-node (1): Broadcast only - P-node (2): WINS only - M-node (4): Broadcast, then WINS - H-node (8): WINS, then broadcast (recommended)
WINS Replication
Planning Replication
Consider these factors: - Network topology - WAN link speeds - Number of clients - Change frequency - Convergence requirements
Configuring Push/Pull Partners
-
Add Replication Partner
WINS Manager → Server → Replication Partners Add → Enter partner IP address
-
Configure Push Partner
Push Partner Properties: Update Count: 20 (changes before push)
-
Configure Pull Partner
Pull Partner Properties: Start Time: 02:00 (off-peak) Replication Interval: 1800 (30 minutes)
Replication Topologies
Hub and Spoke
WINS-Central
/ | \
WINS-1 WINS-2 WINS-3
Best for: Star network topology
Ring Configuration
WINS-1 ← → WINS-2
↑ ↓
WINS-4 ← → WINS-3
Best for: Fault tolerance
Mesh Configuration
WINS-1 ← → WINS-2
↕ X ↕
WINS-3 ← → WINS-4
Best for: Maximum redundancy
Advanced Configuration
WINS Registry Settings
Key location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Wins\Parameters
Important values:
RefreshInterval: 345600 (4 days)
TombstoneInterval: 345600 (4 days)
TombstoneTimeout: 518400 (6 days)
VerifyInterval: 1728000 (20 days)
WinsThreadPriority: Normal
Static Mappings
For non-WINS clients:
-
Add Static Mapping
WINS Manager → Mappings → Static Mappings Add Mappings: Name: SERVER1 Type: Unique IP Address: 192.168.1.10
-
Mapping Types
- Unique: Single IP address
- Group: NetBIOS group (broadcast)
- Domain Name: Domain controllers
- Internet Group: Multiple IPs
- Multihomed: Multiple NICs
Import LMHOSTS
Import static mappings from LMHOSTS:
WINS Manager → Mappings → Import LMHOSTS
Select file (usually C:\WINNT\System32\Drivers\Etc\LMHOSTS)
Monitoring WINS
WINS Statistics
View in WINS Manager:
Server → Detailed Information
Statistics include:
- Total Queries Received
- Successful Queries
- Failed Queries
- Total Releases
- Registration Requests
Performance Monitor Counters
Add these counters:
WINS Server object:
- Queries/sec
- Releases/sec
- Registrations/sec
- Failed Queries/sec
- Failed Releases/sec
- Group Registrations/sec
Event Log Monitoring
Check for these events: - WINS service start/stop - Database corruption - Replication failures - Version ID problems
Troubleshooting WINS
Common Problems
Clients Cannot Resolve Names
-
Verify WINS Configuration
ipconfig /all Check WINS servers listed
-
Test WINS Resolution
nbtstat -R (purge cache) nbtstat -a computername
-
Check WINS Database
WINS Manager → Mappings → Show Database Search for the name
Duplicate Name Errors
-
Find Conflicts
Event Log shows duplicate name WINS Manager → show owner
-
Resolution
- Delete static mapping
- Force refresh on client
- Check for multiple WINS servers
Database Corruption
Signs of corruption: - Service won't start - Frequent crashes - Missing registrations
Recovery steps: 1. Stop WINS service 2. Rename corrupted database 3. Restore from backup 4. Or start fresh (clients re-register)
NBTSTAT Utility
Useful commands:
nbtstat -n Show local NetBIOS names
nbtstat -c Display cache
nbtstat -R Purge and reload
nbtstat -a Query by name
nbtstat -A Query by IP
nbtstat -s Show sessions
nbtstat -r Registration statistics
WINS Debug Logging
Enable detailed logging:
WINS Manager → Server → Configuration
[X] Log Detailed Events
Check log file:
%SystemRoot%\System32\WINS\JET.LOG
Best Practices
Design Guidelines
- WINS Server Placement
- One WINS server per 10,000 clients
- Place near largest client populations
- Provide secondary WINS servers
-
Consider WAN link utilization
-
High Availability
- Configure all clients with primary and secondary
- Implement replication between servers
- Stagger replication schedules
-
Monitor database size
-
Performance Optimization
- Regular database maintenance
- Adequate hardware resources
- Monitor replication traffic
- Optimize registry settings
Security Considerations
- Restrict WINS Access
- Use IPSec if available
- Limit who can administer
-
Monitor for rogue registrations
-
Backup Security
- Protect backup files
- Test restore procedures
- Document configurations
Maintenance Schedule
Daily
- Check Event Logs
- Monitor service status
- Verify replication
Weekly
- Review statistics
- Check database size
- Analyze failed queries
Monthly
- Compact database
- Verify all partnerships
- Update documentation
Quarterly
- Test failover procedures
- Review capacity
- Plan for growth
Migration and Coexistence
DNS Integration
For future migration: 1. Enable DNS on network 2. Use WINS for NetBIOS 3. DNS for hostname resolution 4. Plan WINS retirement
WINS Proxy
For non-WINS subnets:
1. Enable on one client per subnet
2. Registry setting:
EnableProxy = 1 (REG_DWORD)
3. Forwards broadcasts to WINS
Sample Configurations
Small Network (Single Site)
One WINS Server:
- All clients point to single WINS
- No replication needed
- Simple backup strategy
Medium Network (Multiple Sites)
Hub Site: Primary and Secondary WINS
Remote Sites: Local WINS servers
Replication: Hub and spoke model
Schedule: Every 30 minutes
Large Enterprise
Regional WINS Servers: 2 per region
Replication: Mesh between regions
Push Partners: Update count 20
Pull Partners: 15-minute intervals
Command Line Management
WINSCL.EXE Commands
REM Show statistics
winscl.exe stats
REM Initiate replication
winscl.exe push [partner IP]
winscl.exe pull [partner IP]
REM Backup database
winscl.exe backup [path]
REM Compact database
net stop wins
jetpack %SystemRoot%\System32\WINS\wins.mdb temp.mdb
net start wins
Conclusion
WINS is essential for Windows NT 4.0 networks spanning multiple subnets. Proper configuration ensures reliable name resolution, efficient browsing, and smooth domain operations. Regular maintenance and monitoring prevent issues and ensure optimal performance. While WINS is legacy technology, understanding its operation remains important for supporting NT 4.0 environments.