Name Resolution for IPv6 Using the Cache (Windows Embedded CE 6.0)
1/6/2010
The following table shows how Windows Embedded CE stores the resolved names and IPv6 addresses in the registry.
OS | Names and addresses stored in |
---|---|
Windows CE 2.12 and earlier |
HKEY_LOCAL_MACHINE\Comm\Tcpip\Hosts\Host Name |
Windows CE 3.0 and later |
Memory |
By default, Windows Embedded CE checks the cache. You can override the default and search for the name before checking the cache by setting the HKEY_LOCAL_MACHINE\Comm\Afd\ResolverCheckCacheFirst registry key to 0. In this case, if Windows Embedded CE cannot obtain information by querying the named servers, it uses the cached value.
You can save name resolution failures to cache by setting the HKEY_LOCAL_MACHINE\Comm\AFD\ResolverCacheFailures registry key to 1.
The name resolution failure cache is only consulted when a cached entry exists for a successful search for the same name but of the other address type, A or AAAA. For example, the name resolution failure cache is consulted if a search is made for an IPv6 host (AAAA address) but an IPv4 host (A address) is found with the same name.
The getaddrinfo function with the hints set to PF_UNSPEC performs parallel searches for both A and AAAA addresses.
The following table shows the behavior for subsequent name resolution attempts for the same name.
Host | Search Address Type | Behavior |
---|---|---|
Does not exist |
A or AAAA |
Send query packets on the network |
IPv6 only |
A |
Cached failure consulted because a successful cached entry exists for AAAA results |
IPv6 only |
AAAA |
Cached successful results returned |
IPv4 and IPv6 |
A or AAAA |
Cached successful results returned |
See Also
Concepts
Host Name Resolution for IPv6
Name Resolution for IPv4 Using the Cache