Step 3: Check that DNS resolves correctly

ARTIFACTORY: How to troubleshoot the 'Unable to determine if redirect should be blocked because of the following: Timed out while trying to resolve <redirect_url>./ANY' error

AuthorFullName__c
Sun Jinlong
articleNumber
000005965
ft:sourceType
Salesforce
FirstPublishedDate
2024-01-08T19:18:12Z
lastModifiedDate
2024-01-08
VersionNumber
3

As can be seen from the above debug logs, a timeout occurred when the redirect address, https://cdn.npmmirror.com./ANY, was resolved by DNS where Artifactory sent requests to. After the timeout was complete, the package was downloaded again, resulting in a slow download of this npm package.

  • We can use the dig tool to check if DNS can resolve the address correctly.
# Run the dig command to test
dig cdn.npmmirror.com./ANY @<dns_ip>

# The response of timeout
; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.15 <<>> cdn.npmmirror.com./ANY
;; global options: +cmd
;; connection timed out; no servers could be reached