Section/Entry (Command) Description Example/Accepted Values
fAutoCacheUpdate
(/secureresponses)
Indicates how server caching
works.
0; default, saves all responses
to name queries to cache.
1; saves only records in same
DNS subtree to cache.
fSlave (/isslave) Determines how the DNS
server responds when
forwarded queries receive no
response.
0; default, recursion is
enabled. If the forwarder
does not respond, the server
attempts to resolve the query
itself using recursion.
1; recursion is disabled. If the
forwarder does not respond,
the server terminates the
search and sends a failure
message to the resolver.
fNoRecursion
(/norecursion)
Indicates whether the server
performs recursive name
resolution.
0; default, DNS server
performs if requested.
1; DNS server doesn’t perform
secondaries and others with
BIND 4.9.4 or later.
fWriteAuthorityNs
(/writeauthorityns)
Indicates whether the
server writes NS records in
the authority section of a
response.
0; default, writes for referrals
only.
1; writes for all successful
authoritative responses.
fLocalNetPriority
(/localnetpriority)
Determines the order in
which host records are
returned when there are
multiple host records for the
same name.
1; returns records with similar
IP addresses fi rst.
0; returns records in the order
in which they are in DNS.
Troubleshooting the DNS Server Service 817
Chapter 24
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
Section/Entry (Command) Description Example/Accepted Values
Aging Confi guration
ScavengingInterval
(/scavenginginterval)
IP addresses confi gured for
listening for requests from
clients. NULL IP Array when
there are no specifi c IP
addresses that are designated
for listening for requests
from clients.
1
Addr[0] => 192.168.1.50
Forwarders
Addr Count The number and value
of IP addresses of servers
confi gured as forwarders.
NULL IP Array when there are
no forwarders.
1
Addr[0] => 192.168.12.8
Forward timeout
(/forwardingtimeout)
Timeout for queries to
forwarders in seconds.
3
Slave Indicates whether recursion is
enabled.
0; recursion is enabled
1; recursion is disabled
Another useful command for troubleshooting a DNS server is Dnscmd /Statistics. This
command shows you the following information:
DNS server time statistics, including server start time, seconds since start, and
records. To get started, list the available zones by typing dnscmd ServerName /enum-
zones, where ServerName is the name or IP address of the DNS server you want to
check. The output shows a list of the zones that are confi gured as follows:
Enumerated zone list:
Zone count = 4
Zone name Type Storage Properties
. Cache File
_msdcs.cpandl.com Primary AD-Forest Secure
1.168.192.in-addr.arpa Primary AD-Legacy Secure Rev
cpandl.com Primary AD-Domain Secure Aging
The zone names you can work with are listed in the fi rst column. The other values tell
you the type of zone and the way it is confi gured as summarized in Table 24-2.
Save the Stats to a File
Write the output of Dnscmd /Statistics to a fi le so that you don’t overfl ow the history
buffer in the command prompt. This also allows you to go through the stats at your
leisure. Type dnscmd ServerName /statistics > FileName, where ServerName is the
name or IP address of the DNS server and FileName is the name of the fi le to use, such as
dnscmd corpsvr02 /statistics > dns-stats.txt.
Troubleshooting the DNS Server Service 819
Chapter 24
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
Table 24-2 Zone Entries and Their Meanings
Column/Entry Description
Type
Cache A cache zone (server cache).
Primary A primary zone.
Secondary A secondary zone.
Stub A stub zone.
Storage
AD-Forest Active Directory–integrated with forest-wide replication scope.
;
; Zone: cpandl.com
; Server: corpsvr02.cpandl.com
; Time: Wed Mar 10 18:38:14 2008 UTC
;
@ [Aging:3534235] 600 A 192.168.1.50
[Aging:3534235] 3600 NS corpsvr02.cpandl.com.
3600 SOA corpsvr02.cpandl.com. hostmaster. 383 900 600 86 400 3600
3600 MX 10 exchange.cpandl.com._msdcs 3600 NS
corpsvr01.cpandl.com._gc._tcp.Default-First-Site-Name._sites
[Aging:35265] 600 SRV 0 100 3268
corpsvr02.cpandl.com._kerberos._tcp.Default-First-Site-Name._sites
[Aging:35235] 600 SRV 0 100 88
corpsvr02.cpandl.com._ldap._tcp.Default-First-Site-Name._sites
[Aging:35335] 600 SRV 0 100 389
corpsvr02.cpandl.com._gc._tcp [Aging:3534265] 600 SRV 0 100 3268
corpsvr02.cpandl.com._kerberos._tcp [Aging:3534235] 600 SRV 0 100 88
corpsvr02.cpandl.com._kpasswd._tcp [Aging:3534235] 600 SRV 0 100 464
corpsvr02.cpandl.com.corpsvr02 [Aging:3534281] 3600 A 192.168.1.50
corpsvr17 3600 A 192.168.15.22
DomainDnsZones [Aging:3534265] 600 A 192.168.1.50
_ldap._tcp.Default-First-Site-Name._sites.DomainDnsZones
[Aging:35365] 600 SRV 0 100 389
corpsvr02.cpandl.com._ldap._tcp.DomainDnsZones [Aging:3534265] 600 SRV 0 100 389
corpsvr02.cpandl.com.ForestDnsZones [Aging:3534265] 600 A 192.168.1.50
_ldap._tcp.Default-First-Site-Name._sites.ForestDnsZones
[Aging:35365] 600 SRV 0 100 389
corpsvr02.cpandl.com._ldap._tcp.ForestDnsZones [Aging:35365] 600 SRV 0 100 389
corpsvr02.cpandl.com.ny 3600 NS
ns1.ny.cpandl.com.ns1.ny 3600 A 10.10.10.52
resources have NetBIOS names as well.
NetBIOS Namespace and Scope
WINS architecture is very different from DNS. Unlike DNS, WINS has a fl at namespace
and doesn’t use a hierarchy or tree. Each computer or resource on a Windows network
has a NetBIOS name, which can be up to 15 characters long. This name must be unique
on the network—no other computer or resource can have the same name. Although
there are no extensions to this name per se that indicate a domain, a NetBIOS scope
can be set in Dynamic Host Confi guration Protocol (DHCP).
WINS Essentials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 823
Setting Up WINS Servers . . . . . . . . . . . . . . . . . . . . . . . . 826
Configuring Replication Partners . . . . . . . . . . . . . . . . . . 828
Configuring and Maintaining WINS . . . . . . . . . . . . . . . . 832
Enabling WINS Lookups Through DNS . . . . . . . . . . . . . 839
CHAPTER 25
Implementing and Maintaining WINS
823
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
The NetBIOS scope is a hidden 16th character (suffi x) for the NetBIOS name. It is
used to limit the scope of communications for WINS clients. Only WINS clients with
the same NetBIOS scope can communicate with each other. See “Confi guring TCP/IP
Options” on page 717 for details on setting the NetBIOS scope for computers that use
DHCP.
NetBIOS Node Types
The way WINS works on a network is determined by the node type set for a client.
The node type defi nes how name services work. WINS clients can be one of four node
types:
B-Node (Broadcast Node)
Broadcast messages are used to register and resolve
names. Computers that need to resolve a name broadcast a message to every host
registers the computer or resource in its database.
Small Networks Might Not Need a WINS Server
On a small network without subnets and a limited number of computers, WINS clients
can rely on broadcasts for name resolution. In this case, it isn’t necessary to set up a
WINS server.
Chapter 25
824 Chapter 25 Implementing and Maintaining WINS
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
Name registration isn’t permanent. Each name that is registered has a lease period
associated with it, which is called its Time to Live (TTL). A WINS client must reregister
its name before the lease expires and attempts to do so when 50 percent of the lease
period has elapsed or when it is restarted. If a WINS client doesn’t reregister its name,
the lease expires and is marked for deletion from the WINS database. During normal
shutdown, a WINS client will send a message to the WINS server requesting release of
the registration. The WINS server then marks the record for deletion. Whenever records
are marked for deletion, they are said to be tombstoned.
As with DNS clients, WINS clients maintain a cache of NetBIOS names that have
been looked up. The WINS cache, however, is designed to hold only names looked up
recently. By default, names are cached for up to 10 minutes and the cache is limited to
16 names. You can view entries in the NetBIOS cache by typing nbtstat -c at the com-
mand prompt.
WINS Implementation Details
On most networks that use WINS, you’ll want to confi gure at least two WINS servers
for name resolution. When there are multiple WINS servers, you can confi gure replica-
tion of database entries between the servers. Replication allows for fault tolerance and
load balancing by ensuring that entries in one server’s database are replicated to its
replication partners. These replication partners can then handle renewal and release
requests from clients as if they held the primary registration in the fi rst place.
WINS supports:
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
Setting Up WINS Servers
To make a computer running Windows Server 2008 into a WINS server, you must
install the WINS service. This service doesn’t require a dedicated server and uses lim-
ited resources in most cases. This means you could install the WINS service on a DNS
server, DHCP server, or domain controller. The only key requirement is that the WINS
service can be installed only on a computer with a static IPv4 address. Although you
can install WINS on a server with multiple IPv4 address or multiple network interfaces,
this isn’t recommended because the server might not be able to replicate properly with
its replication partners. In most cases, you won’t want to confi gure a domain controller
as a WINS server.
You can install the WINS service by following these steps:
1. In Server Manager, select the Features node in the left pane and then click Add
Features. This starts the Add Features Wizard.
2. On the Select Features page, select WINS Server and then click Next.
3. Click Install. When the wizard fi nishes installing the WINS service, click Close.
After you install the WINS service, the WINS console is available on the Administra-
tive Tools menu. Start the console by clicking Start, Administrative Tools, WINS. Then,
select the WINS server you are working with to see its entries, as shown in Figure 25-1.
Figure 25-1 The WINS console.
The only key postinstallation task for the WINS service is to confi gure replication part-
ners. However, you should check the Transmission Control Protocol/Internet Protocol
(TCP/IP) confi guration of the WINS server. It should have only itself listed as the WINS
server to use and shouldn’t have a secondary WINS server. This prevents the WINS
client on the server from registering itself with a different WINS database, which can
cause problems.
To set the server’s primary WINS server address to its own IP address and clear out any
secondaries from the list, click Start and then click Network. In Network Explorer, click
Network And Sharing Center on the toolbar. In Network And Sharing Center, click
Manage Network Connections. In Network Connections, right-click the connection you
Note
Technically, you don’t need to type the double backslashes (\\) when you specify an IP
address. You must, however, type \\ when you specify a server’s name or FQDN. Because
of this discrepancy, you might want to use \\ all the time so that you won’t leave it out by
accident when you need it.
Note
Technically, you don’t need to type the double backslashes (\\) when you specify an IP
address. You must, however, type \\ when you specify a server’s name or FQDN. Because \
of this discrepancy, you might want to use \\ all the time so that you won’t leave it out by
accident when you need it.
Setting Up WINS Servers 827
Chapter 25
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
TROUBLESHOOTING
Resolving WINS replication errors
Most WINS replication errors involve incorrectly confi gured WINS servers. If you see
replication errors in the event logs, check the TCP/IP confi guration of your WINS serv-
ers. Every WINS server in the organization should be confi gured as its own primary
WINS server, and you should delete any secondary WINS server addresses. This ensures
that WINS servers register their NetBIOS names only in their own WINS databases. If
you don’t confi gure WINS in this way, WINS servers might register their names with
other WINS servers. This can result in different WINS servers owning the NetBIOS
names that a particular WINS server registers and, ultimately, to problems with WINS
itself. For more information on this issue, see Microsoft Knowledge Base article 321208
(http://support.microsoft.com/default.aspx?scid=kb;en-us;321208).
Confi guring Replication Partners
When you have two or more WINS servers on a network, you should confi gure replica-
tion between them. When servers replicate database entries with each other, they are
said to be replication partners.
Replication Essentials
box, click the Advanced tab, as shown in Figure 25-2.
Figure 25-2 Enable automatic replication.
3. Select the Enable Automatic Partner Confi guration check box.
4. Use the Multicast Interval options to set the interval between multicast
broadcasts to the WINS server group address. These broadcasts are used to tell
other WINS servers about the availability of the server you are confi guring. The
default interval is 0 minutes, which disables WINS broadcasts.
Registrations Remain Until Restart
After a server is discovered and added as a partner through multicasting, the server
remains as a confi gured partner until you restart the WINS service or until you restart the
server. When WINS is shut down properly, part of the shutdown process is to send mes-
sages to current replication partners and remove its registration.
Registrations Remain Until Restart
After a server is discovered and added as a partner through multicasting, the server
remains as a confi gured partner until you restart the WINS service or until you restart the
server. When WINS is shut down properly, part of the shutdown process is to send mes-
sages to current replication partners and remove its registration.
Configuring Replication Partners 829
Chapter 25
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
5. Use the Multicast Time To Live (TTL) combo box to specify how many links
multicast broadcasts can go through before being discarded. The default is 2,
which would allow the broadcasts to be relayed through two routers.
6. Click OK.
Multicast Through Routers Is Possible
The Multicast TTL is used to allow the discovery broadcasts to be routed between sub-
nets. This means you could use automatic replication partners on networks with subnets.
However, routing isn’t automatic just because a datagram has a TTL. You must confi gure
the routers on each subnet to forward multicast traffi c received from the WINS multicast
group address (224.0.1.24).
Replication Partner Type—Sets the replication type as push, pull, or push/pull.
Pull Replication
Use Persistent Connection For Replication—Confi gures pull replication so a
persistent connection is used. This reduces the time spent opening and
closing connections and improves performance.
Start Time—Sets the hour of the day when replication should begin using a
24-hour clock.
Replication Interval—Sets the frequency of replication. The default is every 30
minutes.
Push Replication
Use Persistent Connection For Replication—Confi gures push replication so a
persistent connection is used. This reduces the time spent opening and
closing connections and improves performance.
Number Of Changes In Version ID Before Replication—Can be used to limit rep-
lication by allowing replication to occur only when a set number of changes
have occurred in the local WINS database.
Configuring Replication Partners 831
Chapter 25
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
Note
By default Number Of Changes In Version ID Before Replication is set to 0, which allows
replication at the designated interval whenever there are changes. If you set a specifi c
replication at the designated interval whenever there are changes. If you set a specifi c
value, that many changes must occur before replication takes place.
Chapter 25
832 Chapter 25 Implementing and Maintaining WINS
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
Set a Custom Threshold for Burst Handling
You can also set a custom threshold value for burst handling. To do this, select Custom
and then enter a threshold value between 50 and 5,000. For example, if you set the
threshold to 5,000, up to 5,000 requests could be queued at once. Keep in mind that
you would do this only if your network environment needs this setting. If you set the
value to 5,000 but only need a queue that allows up to 100 name registration requests,
you would waste a lot of server resources maintaining a very large queue that you don’t
need.
Figure 25-5 Set burst handling for medium and large networks.
Checking Server Status and Confi guration
Using the WINS console, you can do the following:
View the status of all WINS servers on the network by clicking the Server Status
entry in the left pane. The status of the servers is then displayed in the right pane.
View the current replication partners for a server by expanding the server entry
and selecting Replication Partners in the left pane. The replication partners for
that server are displayed in the right pane.
View server statistics for startup, replication, queries, releases, registrations, and
replication partners by right-clicking the server entry in the left pane and select-
ing Display Server Statistics.
Set a Custom Threshold for Burst Handling
You can also set a custom threshold value for burst handling. To do this, select Custom
and then enter a threshold value between 50 and 5,000. For example, if you set the
WINS Partner IP Address -No. of Replication -No. of Comm Failure
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
192.168.15.18 - 153 - 2
These statistics are useful for troubleshooting registration and replication problems.
Scavenging and replication are automatic once confi gured. Problems to look for include
the following:
Replication
If there are problems with replication, you should see a high number
of communication failures relative to the number of replications. Check the links
over which replication is occurring to see if there are intermittent failures or
times when links aren’t available.
Name resolution
If WINS clients are having problems with name resolution,
you’ll see a high number of failed queries. You might need to scavenge the data-
base for old records more frequently. Check the server statistics for the renew
interval, extinction interval, extinction timeout, and verifi cation interval or the
Intervals tab in the server’s Properties dialog box.
Registration release
If WINS clients aren’t releasing registrations properly, you’ll
see a high number of failed releases. Clients might not be getting shut down
properly.
Chapter 25
834 Chapter 25 Implementing and Maintaining WINS
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
You can view the confi guration details for a WINS server by typing the command
netsh wins server ServerName show info
where ServerName is the name or IP address of the WINS server. The output looks
marked as Tombstoned.
Netsh provides many ways to examine records in the WINS database. Because this is
something you won’t use that frequently, the easiest way to do it is to list all available
Configuring and Maintaining WINS 835
Chapter 25
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
records and write the information to a fi le that you can search. To do this, type the
command
netsh wins server ServerName show database Servers={}
where ServerName is the name or IP address of the WINS server. The output shows you
the registration entries in the database as follows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NAME -T-S-VERSION -G- IPADDRESS - EXPIRATION DATE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Retrieving database from the Wins server 192.168.1.50
CPANDL [1Bh]-D-A- 2 -U- 192.168.1.50 -3/25/2008 2:46:01 PM
CORPSVR02 [00h]-D-A- 7 -U- 192.168.1.50 -3/25/2008 2:46:01 PM
CORPSVR02 [20h]-D-A- 6 -U- 192.168.1.50 -3/25/2008 2:46:01 PM
CPANDL [00h]-D-A- 4 -N- 192.168.1.50 -3/25/2008 2:46:01 PM
CPANDL [1Ch]-D-A- 3 -I- 192.168.1.50 -3/25/2008 2:46:01 PM
CPANDL [1Eh]-D-A- 1 -N- 192.168.1.50 -3/25/2008 2:46:01 PM
WINS automatically scavenges the database to mark old records for deletion. To see
when this is done, check the server statistics for the renew interval, extinction interval,
extinction timeout, and verifi cation interval on the Intervals tab in the server’s Proper-
ties dialog box.
You can initiate scavenging (referred to as an admin-triggered scavenging in the server
statistics) by right-clicking the server entry in the WINS console and selecting Scav-
enge Database. To initiate scavenging at the command prompt, type netsh wins server
ServerName init scavenge, where ServerName is the name or IP address of the WINS
server.