Indented.Dns replaces DnsShell which has been completely redeveloped as a script module.

A number of CmdLets are still missing from this new implementation, most notably WMI wrapper CmdLets which are still in development.

Requirements

  • Your execution policy must be set to a minimum of AllSigned, Indented.Dns is signed.
  • Indented.Common
  • A minimum of PowerShell 3.0; The module has also been tested under PowerShell 4.0.

Installation

Automatic installation

The following command from Indented.Common may be used to download and install or update Indented.Dns.

Manual installation

  1. Follow the steps to install Indented.Common.
  2. Download Indented.Dns.
  3. Extract the folder in the zip file to LibrariesDocumentsWindowsPowerShellModules.
  4. Execute the command below to verify the module is now installed.

Updates

  • 2.11 –
    • Get-Dns – Changed resolve to use EDns by default (buffer size set to 4096 bytes).
    • Get-Dns – Added support for variable EDNS size advertising.
    • Get-Dns – Added NoEDns.
    • Get-Dns – Added NoTcpFallback (TC message handling).
    • ReadDnsSPFRecord (Get-Dns) – Fixed erroneous properties.
    • ReadDnsNSEC3Record (Get-Dns) – Added check for salt length.
  • 2.10 – Get-Dns: Fixed TCP connection checks / handling when using TCP message transport.
  • 2.9 – Signed module files.

Module commands

Exported commands

CmdLet Category Description
Get-ADDnsPartition AD Management Get all partitions which are likely to contain DNS zones and records from Active Directory.
Get-ADDnsRecord AD Management Get all DNS records from Active Directory.
Get-ADDnsZone AD Management Get all dnsZone objects from an Active Directory partition.
Get-Dns DNS resolver Get a DNS resource record from a DNS server.
Initialize-InternalDnsCache DNS cache Initializes a basic DNS cache for use by Get-Dns.
Get-InternalDnsCacheRecord DNS cache Get the content of the internal DNS cache used by Get-Dns.
Add-InternalDnsCacheRecord DNS cache Add a new CacheRecord to the DNS cache object.
Remove-InternalDnsCacheRecord DNS cache Remove an entry from the DNS cache object.

Internal commands

CmdLet Category Description
ReadADDnsDomainName dnsRecord parser Reads a domain-name from dnsRecord.
ReadADDnsCharacterString dnsRecord parser Reads a character-string from a DNS message.
ReadADDnsResourceRecord dnsRecord parser Reads common DNS resource record fields from a byte array.
ReadADDnsUnknownRecord dnsRecord parser Reads properties for an unknown record type from a byte array.
ReadADDnsARecord dnsRecord parser Reads properties for an A record from a byte array.
ReadADDnsNSRecord dnsRecord parser Reads properties for an NS record from a byte array.
ReadADDnsMDRecord dnsRecord parser Reads properties for an MD record from a byte array.
ReadADDnsMFRecord dnsRecord parser Reads properties for an MF record from a byte array.
ReadADDnsCNAMERecord dnsRecord parser Reads properties for an CNAME record from a byte array.
ReadADDnsSOARecord dnsRecord parser Reads properties for an SOA record from a byte array.
ReadADDnsMBRecord dnsRecord parser Reads properties for an MB record from a byte array.
ReadADDnsMGRecord dnsRecord parser Reads properties for an MG record from a byte array.
ReadADDnsMRRecord dnsRecord parser Reads properties for an MR record from a byte array.
ReadADDnsWKSRecord dnsRecord parser Reads properties for an WKS record from a byte array.
ReadADDnsPTRRecord dnsRecord parser Reads properties for an PTR record from a byte array.
ReadADDnsHINFORecord dnsRecord parser Reads properties for an HINFO record from a byte array.
ReadADDnsMINFORecord dnsRecord parser Reads properties for an MINFO record from a byte array.
ReadADDnsMXRecord dnsRecord parser Reads properties for an MX record from a byte array.
ReadADDnsTXTRecord dnsRecord parser Reads properties for an TXT record from a byte array.
ReadADDnsRPRecord dnsRecord parser Reads properties for an RP record from a byte array.
ReadADDnsAFSDBRecord dnsRecord parser Reads properties for an AFSDB record from a byte array.
ReadADDnsX25Record dnsRecord parser Reads properties for an X25 record from a byte array.
ReadADDnsISDNRecord dnsRecord parser Reads properties for an ISDN record from a byte array.
ReadADDnsRTRecord dnsRecord parser Reads properties for an RT record from a byte array.
ReadADDnsSIGRecord dnsRecord parser Reads properties for an SIG record from a byte array.
ReadADDnsKEYRecord dnsRecord parser Reads properties for an KEY record from a byte array.
ReadADDnsAAAARecord dnsRecord parser Reads properties for an AAAA record from a byte array.
ReadADDnsNXTRecord dnsRecord parser Reads properties for an NXT record from a byte array.
ReadADDnsSRVRecord dnsRecord parser Reads properties for an SRV record from a byte array.
ReadADDnsATMARecord dnsRecord parser Reads properties for an ATMA record from a byte array.
ReadADDnsWINSRecord dnsRecord parser Reads properties for an WINS record from a byte array.
ReadADDnsWINSRRecord dnsRecord parser Reads properties for an WINSR record from a byte array.
ConvertToDnsDomainName DNS resolver Converts a DNS domain name from a byte stream to a string. This CmdLet also expands compressed names.
ConvertFromDnsDomainname DNS resolver Converts a DNS domain name from a string to a byte array.
ReadDnsCharacterString DNS resolver Reads a character-string from a DNS message.
NewDnsMessageHeader DNS resolver Creates a new DNS message header.
NewDnsMessageQuestion DNS resolver Creates a new DNS message question.
NewDnsOPTRecord DNS resolver Creates a new OPT record instance for advertising DNSSEC support.
NewDnsSOARecord DNS resolver Creates a new SOA record instance for use with IXFR queries.
NewDnsMessage DNS resolver Reads a DNS message from a byte stream.
ReadDnsMessageHeader DNS resolver Reads a DNS message header from a byte stream.
ReadDnsMessageQuestion DNS resolver Reads a DNS question from a byte stream.
ReadDnsMessage DNS resolver Reads a DNS message from a byte stream.
NewDnsUpdateMessage DNS resolver
ReadDnsResourceRecord DNS resolver Reads common DNS resource record fields from a byte stream.
ReadDnsUnknownRecord DNS resolver Reads properties for an unknown record type from a byte stream.
ReadDnsARecord DNS resolver Reads properties for an A record from a byte stream.
ReadDnsNSRecord DNS resolver Reads properties for an NS record from a byte stream.
ReadDnsMDRecord DNS resolver Reads properties for an MD record from a byte stream.
ReadDnsMFRecord DNS resolver Reads properties for an MF record from a byte stream.
ReadDnsCNAMERecord DNS resolver Reads properties for an CNAME record from a byte stream.
ReadDnsSOARecord DNS resolver Reads properties for an SOA record from a byte stream.
ReadDnsMBRecord DNS resolver Reads properties for an MB record from a byte stream.
ReadDnsMGRecord DNS resolver Reads properties for an MG record from a byte stream.
ReadDnsMRRecord DNS resolver Reads properties for an MR record from a byte stream.
ReadDnsNULLRecord DNS resolver Reads properties for an NULL record from a byte stream.
ReadDnsWKSRecord DNS resolver Reads properties for an WKS record from a byte stream.
ReadDnsPTRRecord DNS resolver Reads properties for an PTR record from a byte stream.
ReadDnsHINFORecord DNS resolver Reads properties for an HINFO record from a byte stream.
ReadDnsMINFORecord DNS resolver Reads properties for an MINFO record from a byte stream.
ReadDnsMXRecord DNS resolver Reads properties for an MX record from a byte stream.
ReadDnsTXTRecord DNS resolver Reads properties for an TXT record from a byte stream.
ReadDnsRPRecord DNS resolver Reads properties for an RP record from a byte stream.
ReadDnsAFSDBRecord DNS resolver Reads properties for an AFSDB record from a byte stream.
ReadDnsX25Record DNS resolver Reads properties for an X25 record from a byte stream.
ReadDnsISDNRecord DNS resolver Reads properties for an ISDN record from a byte stream.
ReadDnsRTRecord DNS resolver Reads properties for an RT record from a byte stream.
ReadDnsNSAPRecord DNS resolver Reads properties for an NSAP record from a byte stream.
ReadDnsNSAPTRRecord DNS resolver Reads properties for an NSAPTR record from a byte stream.
ReadDnsSIGRecord DNS resolver Reads properties for an SIG record from a byte stream.
ReadDnsKEYRecord DNS resolver Reads properties for an KEY record from a byte stream.
ReadDnsPXRecord DNS resolver Reads properties for an PX record from a byte stream.
ReadDnsGPOSRecord DNS resolver Reads properties for an GPOS record from a byte stream.
ReadDnsAAAARecord DNS resolver Reads properties for an AAAA record from a byte stream.
ReadDnsLOCRecord DNS resolver Reads properties for an LOC record from a byte stream.
ReadDnsNXTRecord DNS resolver Reads properties for an NXT record from a byte stream.
ReadDnsEIDRecord DNS resolver Reads properties for an EID record from a byte stream.
ReadDnsNIMLOCRecord DNS resolver Reads properties for an NIMLOC record from a byte stream.
ReadDnsSRVRecord DNS resolver Reads properties for an SRV record from a byte stream.
ReadDnsATMARecord DNS resolver Reads properties for an ATMA record from a byte stream.
ReadDnsNAPTRRecord DNS resolver Reads properties for an NAPTR record from a byte stream.
ReadDnsKXRecord DNS resolver Reads properties for an KX record from a byte stream.
ReadDnsCERTRecord DNS resolver Reads properties for an CERT record from a byte stream.
ReadDnsA6Record DNS resolver Reads properties for an CERT record from a byte stream.
ReadDnsDNAMERecord DNS resolver Reads properties for an DNAME record from a byte stream.
ReadDnsSINKRecord DNS resolver Reads properties for an SINK record from a byte stream.
ReadDnsOPTRecord DNS resolver Reads properties for an OPT record from a byte stream.
ReadDnsAPLRecord DNS resolver Reads properties for an APL record from a byte stream.
ReadDnsDSRecord DNS resolver Reads properties for an DS record from a byte stream.
ReadDnsSSHFPRecord DNS resolver Reads properties for an SSHFP record from a byte stream.
ReadDnsIPSECKEYRecord DNS resolver Reads properties for an IPSECKEY record from a byte stream.
ReadDnsRRSIGRecord DNS resolver Reads properties for an RRSIG record from a byte stream.
ReadDnsNSECRecord DNS resolver Reads properties for an NSEC record from a byte stream.
ReadDnsDNSKEYRecord DNS resolver Reads properties for an DNSKEY record from a byte stream.
ReadDnsDHCIDRecord DNS resolver Reads properties for an DHCID record from a byte stream.
ReadDnsNSEC3Record DNS resolver Reads properties for an NSEC3 record from a byte stream.
ReadDnsNSEC3PARAMRecord DNS resolver Reads properties for an NSEC3PARAM record from a byte stream.
ReadDnsHIPRecord DNS resolver Reads properties for an HIP record from a byte stream.
ReadDnsNINFORecord DNS resolver Reads properties for an NINFO record from a byte stream.
ReadDnsRKEYRecord DNS resolver Reads properties for an RKEY record from a byte stream.
ReadDnsSPFRecord DNS resolver Reads properties for an SPF record from a byte stream.
ReadDnsTKEYRecord DNS resolver Reads properties for an TKEY record from a byte stream.
ReadDnsTSIGRecord DNS resolver Reads properties for an DLV record from a byte stream.
ReadDnsWINSRecord DNS resolver Reads properties for an WINS record from a byte stream.
ReadDnsWINSRRecord DNS resolver Reads properties for an WINSR record from a byte stream.
NewWmiConnectionManager WMI management Creates a new WMI connection wrapper which includes error handling specific to the DNS namespace.
ReadWmiDnsServer WMI management Reads DNS server information from a WMI management object.
ReadWmiDnsZone WMI management Reads DNS zone information from a WMI management object.
ReadWmiDnsResourceRecord ManagementObject Reads common DNS resource record fields from a WMI management object.
ReadWmiDnsARecord ManagementObject Reads properties for an A record from a WMI management object.
ReadWmiDnsNSRecord ManagementObject Reads properties for an NS record from a WMI management object.
ReadWmiDnsMDRecord ManagementObject Reads properties for an MD record from a WMI management object.
ReadWmiDnsMFRecord ManagementObject Reads properties for an MF record from a WMI management object.
ReadWmiDnsCNAMERecord ManagementObject Reads properties for an CNAME record from a WMI management object.
ReadWmiDnsSOARecord ManagementObject Reads properties for an SOA record from a WMI management object.
ReadWmiDnsMBRecord ManagementObject Reads properties for an MB record from a WMI management object.
ReadWmiDnsMGRecord ManagementObject Reads properties for an MG record from a WMI management object.
ReadWmiDnsMRRecord ManagementObject Reads properties for an MR record from a WMI management object.
ReadWmiDnsWKSRecord ManagementObject Reads properties for an WKS record from a WMI management object.
ReadWmiDnsPTRRecord ManagementObject Reads properties for an PTR record from a WMI management object.
ReadWmiDnsHINFORecord ManagementObject Reads properties for an HINFO record from a WMI management object.
ReadWmiDnsMINFORecord ManagementObject Reads properties for an MINFO record from a WMI management object.
ReadWmiDnsMXRecord ManagementObject Reads properties for an MX record from a WMI management object.
ReadWmiDnsTXTRecord ManagementObject Reads properties for an TXT record from a WMI management object.
ReadWmiDnsRPRecord ManagementObject Reads properties for an RP record from a WMI management object.
ReadWmiDnsAFSDBRecord ManagementObject Reads properties for an AFSDB record from a WMI management object.
ReadWmiDnsX25Record ManagementObject Reads properties for an X25 record from a WMI management object.
ReadWmiDnsISDNRecord ManagementObject Reads properties for an ISDN record from a WMI management object.
ReadWmiDnsRTRecord ManagementObject Reads properties for an RT record from a WMI management object.
ReadWmiDnsSIGRecord ManagementObject Reads properties for an SIG record from a WMI management object.
ReadWmiDnsKEYRecord ManagementObject Reads properties for an KEY record from a WMI management object.
ReadWmiDnsAAAARecord ManagementObject Reads properties for an AAAA record from a WMI management object.
ReadWmiDnsNXTRecord ManagementObject Reads properties for an NXT record from a WMI management object.
ReadWmiDnsSRVRecord ManagementObject Reads properties for an SRV record from a WMI management object.
ReadWmiDnsATMARecord ManagementObject Reads properties for an ATMA record from a WMI management object.
ReadWmiDnsWINSRecord ManagementObject Reads properties for an WINS record from a WMI management object.
ReadWmiDnsWINSRRecord ManagementObject Reads properties for an WINS record from a WMI management object.

Leave a Reply

Your email address will not be published. Required fields are marked *