Managing DNS Clients

So far we have seen different DNS sever-related operations in this chapter. As mentioned at the beginning of this chapter, a module is available for managing the client-side operations related to DNS. It can be loaded using the following command:

Import-Module DnsClient

In the previous section, we used the Resolve-Dnsname cmdlet from this module, which helps in resolving the DNS names. The following are some of the frequent DNS operations that are performed from the client's-side and sample codes:

Get client-side DNS cache. This is equivalent to the ipconfig /displaydns command in Windows as shown in the following command:

Get-DnsClientCache

The client-side cache can be cleared by using the following command. This is equivalent ...

Get Active Directory with PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.