728x90
728x170
■ Resolve-DnsName 명령에서 -Name 스위치를 사용하는 방법을 보여준다.
▶ 실행 명령
Resolve-DnsName -Name www.microsoft.com
[결과]
Name Type TTL Section NameHost
---- ---- --- ------- --------
www.microsoft.com CNAME 1 Answer www.microsoft.com-c-3.edgekey.net
www.microsoft.com-c-3.edgekey. CNAME 1 Answer www.microsoft.com-c-3.edgekey.net.globalredir.akadns.net
net
www.microsoft.com-c-3.edgekey. CNAME 1 Answer e13678.dscb.akamaiedge.net
net.globalredir.akadns.net
Name : e13678.dscb.akamaiedge.net
QueryType : AAAA
TTL : 17
Section : Answer
IP6Address : 2600:1410:4000:1ad::356e
Name : e13678.dscb.akamaiedge.net
QueryType : AAAA
TTL : 17
Section : Answer
IP6Address : 2600:1410:4000:1b1::356e
Name : e13678.dscb.akamaiedge.net
QueryType : AAAA
TTL : 17
Section : Answer
IP6Address : 2600:1410:4000:1b0::356e
Name : e13678.dscb.akamaiedge.net
QueryType : AAAA
TTL : 17
Section : Answer
IP6Address : 2600:1410:4000:1ac::356e
Name : e13678.dscb.akamaiedge.net
QueryType : AAAA
TTL : 17
Section : Answer
IP6Address : 2600:1410:4000:1ab::356e
Name : e13678.dscb.akamaiedge.net
QueryType : A
TTL : 4
Section : Answer
IP4Address : 104.75.1.165
※ DNS 클라이언트 모듈이 필요하다.
▶ 실행 명령
Import-Module -Name DnsClient
728x90
그리드형(광고전용)
'PowerShell' 카테고리의 다른 글
[POWERSHELL] > 기호를 사용해 출력 방향 재지정하기 (0) | 2021.03.15 |
---|---|
[POWERSHELL] Out-File 명령 : 파일 생성하기 (0) | 2021.03.15 |
[POWERSHELL] Get-Member 명령 : -MemberType 스위치를 사용해 멤버 조회하기 (0) | 2021.03.15 |
[POWERSHELL] Remove-Module 명령 : -Name 스위치를 사용해 현재 세션에서 모듈 제거하기 (0) | 2021.03.14 |
[POWERSHELL] New-Module 명령 : -ScriptBlock 스위치를 사용해 동적 모듈 생성하기 (0) | 2021.03.14 |
[POWERSHELL] Get-Command 명령 : -Module 스위치를 사용해 DNS 클라이언트 모듈에서 사용할 수 있는 리스트 구하기 (0) | 2021.03.14 |
[POWERSHELL] Import-Module 명령 : -Name 스위치를 사용해 DNS 클라이언트 모듈 로드하기 (0) | 2021.03.14 |
[POWERSHELL] Get-Module 명령 : -ListAvailable 스위치를 사용해 이용 가능한 모듈 리스트 구하기 (0) | 2021.03.14 |
[POWERSHELL] Get-Module 명령 : 현재 세션에서 사용 가능한 모듈 리스트 구하기 (0) | 2021.03.14 |
[POWERSHELL] Compress-Archive 명령 : ZIP 파일 생성하기 (0) | 2021.03.14 |