Powershell Query Domain Name. Your DNS server will likely have to forward a query to other DNS servers to get the correct IP address. In this blog post I will carry out some PowerShell commands to get a list of domain-computers filtered by operating system.
Similarly you can query Name server rescordsNS of a Domain by passing NS as value to -Type Parameter. By using the Invoke-Command cmdlet the ADSISearcher can easily be used to query the Active Directory of an un-trusted forest or domain. The Get-ADGroup cmdlet gets a group or performs a search to retrieve multiple groups from an Active Directory.
This lists all name servers that are hosting the Domain name you are querying.
This lists all name servers that are hosting the Domain name you are querying. You can also set the parameter to a forest object variable such. Code function Get-DCsInForest CmdletBinding param stringReferenceDomain envUSERDOMAIN ForestObj Get-ADForest -Server ReferenceDomain foreachDomain in ForestObjDomains Get-ADDomainController -Filter -Server Domain select DomainHostNameSite. To specify this parameter you can type a user name such as User1 or Domain01User01 or you can specify a PSCredential object.