Site icon TOSS

DnsClient

powershell

This blog contains the brief descriptions and syntax of the Windows PowerShell cmdlets that are for use in administering the DnsClient service-specific cmdlets.

The DNS Client is capable of resolving the IP address of a host from the host’s name. It does this by sending DNS requests to a DNS Server. The IP address of a DNS Server is specified in the network interface configuration file or can be obtained from the DHCP Server for the Local Area Network.

The DNS Client caches the resolved IP addresses. The length of time the resolved host IP address is kept in the local cache depends on the Time to Live (TTL) timeout. This is returned in an answering packet from the DNS Server. The next time a DNS is requested, the cache table is checked first. If a valid host is found, the IP address is resolved from the cache and no actual DNS request is sent to the DNS Server.

You must use the DNS Client when a remote host uses a Dynamic IP, which changes each time the remote host logs on to the Internet.

By default on Windows Server 2016 or Windows server 2019 this module will be installed

Click on each cmdlet to know more about them

Add-DnsClientNrptRuleAdds a rule to the NRPT.
Clear-DnsClientCacheClears the contents of the DNS client cache.
Get-DnsClientGets details of the network interfaces configured on a specified computer.
Get-DnsClientCacheRetrieves the contents of the DNS client cache.
Get-DnsClientGlobalSettingRetrieves global DNS client settings like the suffix search list.
Get-DnsClientNrptGlobalGets the NRPT global settings.
Get-DnsClientNrptPolicyGets the NRPT configured on a computer.
Get-DnsClientNrptRuleRetrieves the DNS client NRPT rules.
Get-DnsClientServerAddressGets DNS server IP addresses from the TCP/IP properties on an interface.
Register-DnsClientRegisters all of the IP addresses on the computer onto the configured DNS server.
Remove-DnsClientNrptRuleRemoves the specified DNS client NRPT rule.
Resolve-DnsNamePerforms a DNS name query resolution for the specified name.
Set-DnsClientSets the interface-specific DNS client configurations on the computer.
Set-DnsClientGlobalSettingSets the DNS client global, non-interface specific, settings.
Set-DnsClientNrptGlobalModifies the global Name Resolution Policy Table (NRPT) settings.
Set-DnsClientNrptRuleModifies a DNS client Name Resolution Policy Table (NRPT) rule for the specified namespace.
Set-DnsClientServerAddressSets DNS server addresses associated with the TCP/IP properties on an interface.

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information. Paragraph

References are taken from official Microsoft websites

Exit mobile version