Get-HcsDnsClientServerAddress

Get-HcsDnsClientServerAddress

Gets the server addresses that a Domain Name System (DNS) client device is configured to use.

구문

Get-HcsDnsClientServerAddress [ <CommonParameters>]

자세한 설명

The Get-HcsDnsClientServerAddress cmdlet gets the server addresses that a DNS client device is configured to use.

매개 변수

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • Microsoft.HCS.Management.Powershell.Cmdlets.DnsInfo

    The return object has four properties:

    -- Primary DNS address (an IPAddress)
    -- Secondary DNS addresses (an array of IPAddress)

    The DnsInfo object has the following properties:

    -- DnsInfo: PrimaryIPv4 = platInfo.PrimaryIPv4; PrimaryIPv6 = platInfo.PrimaryIPv6; SecondaryIPv4 = platInfo.SecondaryIPv4.ToArray();SecondaryIPv6 = platInfo.SecondaryIPv6.ToArray();
    -- IPAddress PrimaryIPv4
    -- IPAddress PrimaryIPv6
    -- IPAddress[] SecondaryIPv4
    -- IPAddress[] SecondaryIPv6

예제

Example 1: Get the server addresses of a DNS client

This command gets the server addresses of a DNS client.

PS C:\> Get-HcsDnsClientServerAddress

관련 항목

Set-HcsDnsClientServerAddress