Skip to content

馃┕ [Patch]: Enrich the output from Resolve-DnsHost, in line with what we get from Windows' Resolve-DnsName#4

Description

Describe the change

Update so that we get rich info back from the Resolve-DnsHost, similar to how we get a rich object from Resolve-DnsName.

This is an example of the output generated from Resolve-DnsName

Resolve-DnsName -Name 'microsoft.com'

Name                                           Type   TTL   Section    IPAddress
----                                           ----   ---   -------    ---------
microsoft.com                                  AAAA   60    Answer     2603:1030:b:3::152
microsoft.com                                  AAAA   60    Answer     2603:1020:201:10::10f
microsoft.com                                  AAAA   60    Answer     2603:1010:3:3::5b
microsoft.com                                  AAAA   60    Answer     2603:1030:c02:8::14
microsoft.com                                  AAAA   60    Answer     2603:1030:20e:3::23c
microsoft.com                                  A      60    Answer     13.107.253.53

This is the details for the same:

Resolve-DnsName -Name 'microsoft.com' | Select *

Address      : 2603:1030:c02:8::14
IPAddress    : 2603:1030:c02:8::14
QueryType    : AAAA
IP6Address   : 2603:1030:c02:8::14
Name         : microsoft.com
Type         : AAAA
CharacterSet : Unicode
Section      : Answer
DataLength   : 16
TTL          : 60

Address      : 2603:1030:20e:3::23c
IPAddress    : 2603:1030:20e:3::23c
QueryType    : AAAA
IP6Address   : 2603:1030:20e:3::23c
Name         : microsoft.com
Type         : AAAA
CharacterSet : Unicode
Section      : Answer
DataLength   : 16
TTL          : 60

Address      : 2603:1030:b:3::152
IPAddress    : 2603:1030:b:3::152
QueryType    : AAAA
IP6Address   : 2603:1030:b:3::152
Name         : microsoft.com
Type         : AAAA
CharacterSet : Unicode
Section      : Answer
DataLength   : 16
TTL          : 60

Address      : 2603:1020:201:10::10f
IPAddress    : 2603:1020:201:10::10f
QueryType    : AAAA
IP6Address   : 2603:1020:201:10::10f
Name         : microsoft.com
Type         : AAAA
CharacterSet : Unicode
Section      : Answer
DataLength   : 16
TTL          : 60

Address      : 2603:1010:3:3::5b
IPAddress    : 2603:1010:3:3::5b
QueryType    : AAAA
IP6Address   : 2603:1010:3:3::5b
Name         : microsoft.com
Type         : AAAA
CharacterSet : Unicode
Section      : Answer
DataLength   : 16
TTL          : 60

Address      : 13.107.253.53
IPAddress    : 13.107.253.53
QueryType    : A
IP4Address   : 13.107.253.53
Name         : microsoft.com
Type         : A
CharacterSet : Unicode
Section      : Answer
DataLength   : 4
TTL          : 60

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions