Reorganize some debug statements to put them in more consistent locations
Do not initialize the internal dns support if using the Windows DNS API.
(Win2000 and above)
success = FALSE;
- /* query the AFSDB records of cell */
+ DebugEvent_local("AFS SearchCellDNS-","Doing search for [%s]", cellNamep);
+
+ /* query the AFSDB records of cell */
if(DnsQuery_A(cellNamep, DNS_TYPE_AFSDB, DNS_QUERY_STANDARD, NULL, &pDnsCell, NULL) == ERROR_SUCCESS) {
memset((void*) &vlSockAddr, 0, sizeof(vlSockAddr));
fprintf(stderr, "getAFSServer: cell %s, cm_dnsEnabled=%d\n", cellName, cm_dnsEnabled);
#endif
+#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x500
if (cm_dnsEnabled == -1) { /* not yet initialized, eg when called by klog */
cm_InitDNS(1); /* assume enabled */
}
+#endif
if (cm_dnsEnabled == 0) { /* possibly we failed in cm_InitDNS above */
fprintf(stderr, "DNS initialization failed, disabled\n");
*numServers = 0;