DnsEntry Output Object (Get-DNS Cmdlet)
This object is created after a DNS record has been returned.
Syntax
Object DnsEntry {string Type;
string[] Fields;
string[] Values;
string Domain;
int TTL;
string RecordSource;
bool Success;
string ProtocolLog;
}
Remarks
Once the query is complete, one DnsEntry object will be created for each answer returned, and the following properties will contain the results:
Type | The type of the record being listed. |
Fields* | An array of field names for each record. |
Values | An array of field values for each record. |
Domain | An array of domains for each record. |
TTL | An array of TTL's for each record. TTL specifies the time interval, in seconds, for which the record is valid or the time interval that the record can be cached before the DNS server should be queried again. |
Success | If the operation completed successfully this will be True. In the case of an error this will be False. |
ProtocolLog | If the configuration setting "DNSProtocolLog" is set to "True" this will hold a 'nslookup' style log. The log will be the same in each DnsEntry object. |
*Field names
Field names are different depending on the record type. For example, an MX record type will contain two fields: PREFERENCE and EXCHANGE, but an SOA record type contains seven fields.
A Records | ADDRESS |
NS Records | DNAME |
MD | MADNAME |
MF | MADNAME |
CNAME | CNAME |
SOA | MNAME |
SOA | RNAME |
SOA | SERIAL |
SOA | REFRESH |
SOA | RETRY |
SOA | EXPIRE |
SOA | MINIMUM |
MB | MADNAME |
MG | MGMNAME |
MR | NEWNAME |
NULL | NULL |
WKS | ADDRESS |
WKS | PROTOCOL |
WKS | SERVICEMAP |
PTR | PTRDNAME |
HINFO | CPU |
HINFO | OS |
MINFO | RMAILBX |
MINFO | EMAILBX |
MX | PREFERENCE |
MX | EXCHANGE |
TXT | TXT |
RP | MBOXDNAME |
RP | TXTDNAME |
AFSDB | SUBTYPE |
AFSDB | HOSTNAME |
X25 | PSDNADDRESS |
ISDN | ISDNADDRESS |
RT | PREFERENCE |
RT | INTERMEDIATE |
AAAA | ADDRESS |
SRV | PRIORITY |
SRV | WEIGHT |
SRV | PORT |
SRV | TARGET |