Book Image

Active Directory with PowerShell

By : Pamarthi Venkata Sitaram, YELLAPRAGADA U PADMAVATHI
5 (1)
Book Image

Active Directory with PowerShell

5 (1)
By: Pamarthi Venkata Sitaram, YELLAPRAGADA U PADMAVATHI

Overview of this book

Table of Contents (16 chapters)
Active Directory with PowerShell
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Installing and configuring a DNS server


In this section, let's learn some of the basic Windows DNS server-related operations, installation, and configuration of a DNS server. To start with, how do we know if a given server is a DNS server and can function properly? DNS servers are generally configured on the network adapter in the Windows operating system. If you have multiple network adapters, then it is possible for each adapter to have its own set of DNS servers.

In Windows Server 2012 or later, we can get the DNS server IP addresses that are assigned to local adapters by running the following command:

PS C:\> Get-NetIPConfiguration -InterfaceAlias LabNet

InterfaceAlias       : LabNet
InterfaceIndex       : 19
InterfaceDescription : Hyper-V Virtual Ethernet Adapter #3
NetProfile.Name      : techibee.ad
IPv4Address          : 10.10.101.20
IPv4DefaultGateway   :
DNSServer            : 10.10.101.20
                       10.10.101.10

This returns the IP configuration details of the network...