Ipconfig /flushdns VS dnscmd /clearcache

%3CLINGO-SUB%20id%3D%22lingo-sub-1428519%22%20slang%3D%22en-US%22%3EIpconfig%20%2Fflushdns%20VS%20dnscmd%20%2Fclearcache%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1428519%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3EI%20ran%20both%20command%20on%20the%20PowerShell%20server%202k12%20%26amp%3B%202K16%20and%20give%20the%20same%20result.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20inform%20me%20if%20there%20is%2Fare%20major%20or%20minor%20difference%20between%20both%20commands.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PowerShell.JPG%22%20style%3D%22width%3A%20372px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F195509iBA1E44F588D9C368%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22PowerShell.JPG%22%20alt%3D%22PowerShell.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1428519%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDNS%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHyper-V%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1428527%22%20slang%3D%22en-US%22%3ERe%3A%20Ipconfig%20%2Fflushdns%20VS%20dnscmd%20%2Fclearcache%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1428527%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3Eipconfig%20%2Fflushdns%3C%2FSTRONG%3E%20will%20flush%20the%20local%20computer%20cache.%20And%20%3CSTRONG%3Ednscmd%20%2Fclearcache%3C%2FSTRONG%3E%20will%20clear%20the%20dns%20server%20cache.%3C%2FP%3E%0A%3CP%3EWith%20the%20former%20you%20will%20clear%20the%20%22local%22%20cache%20of%20the%20server%20you%20work%20on.%20It%20will%20NOT%20clear%20the%20dns%20server%20cache.%20While%20with%20dnscmd%20you%20will%20clear%20the%20dns%20server%20cache.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E(please%20don't%20forget%20to%20mark%20helpful%20replies)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor
 

I ran both command on the PowerShell server 2k12 & 2K16 and give the same result.

 

Please inform me if there is/are major or minor difference between both commands.

 

 
 

PowerShell.JPG

1 Reply

ipconfig /flushdns will flush the local computer cache. And dnscmd /clearcache will clear the dns server cache.

With the former you will clear the "local" cache of the server you work on. It will NOT clear the dns server cache. While with dnscmd you will clear the dns server cache.

 

(please don't forget to mark helpful replies)