DNS commands
 
Notifications
Clear all

DNS commands

1 Posts
1 Users
0 Reactions
3 Views
Frank Schroeder
(@iseetwizard)
Eminent Member Admin
Joined: 5 years ago
Posts: 13
Topic starter  

Here are some useful commands regarding the DNS cache, resolve etc.

 

#Display the DNS Cache
ipconfig /displaydns

#Empty the DNS Cache
ipconfig /flushdns

#Display DNS Cache (Powershell only)
Get-DnsClientCache

#Empty the DNS Cache (PowerShell only)
Clear-DnsClientCache

#Test a connection to a computer (ping like PowerShell command)
Test-Connection ComputerName

<# Provides information about network latency and network loss at intermediate hops between a source and destination. 
This command sends multiple echo Request messages to each router between a source and destination, over a period of time, and then computes results based on the packets returned from each router. 
Because this command displays the degree of packet loss at any given router or link, you can determine which routers or subnets might be having network problems. #>
pathping ComputerName

#Performs a DNS name query resolution for the specified name
Resolve-DnsName ComputerName

#Find DNS records for a specific computer
nslookup -debug ComputerName

 

This topic was modified 17 hours ago 2 times by Frank Schroeder

   
Quote