How to Configure DNS & DHCP
Configuring DNS (Domain Name System) on a Windows Server involves setting up a DNS server to resolve domain names to IP addresses. Here’s how to do it:
Step 1: Install the DNS Server Role
1. Open Server Manager:
o Log in to your Windows Server and open Server Manager.
2. Add Roles and Features:
o Click on Manage - Add Roles and Features.
o Choose Role-based or feature-based installation and select your server.
3. Select DNS Server:
o In the roles list, check DNS Server and click Next.
o Follow the prompts to complete the installation and then click Install.
4. Close the Wizard:
o Once installed, click Close.
Step 2: Configure DNS Server
1. Open DNS Manager:
o In Server Manager, go to Tools and select DNS.
2. Create a New Zone:
o In the DNS Manager, right-click on Forward Lookup Zones and select New Zone.
3. Choose Zone Type:
o Select the zone type (usually Primary zone) and click Next.
4. Zone Name:
o Enter the name of your zone (e.g., mega.com) and click Next.
5. Zone File:
o You can either create a new zone file or use an existing one. Click Next.
6. Dynamic Updates:
o Choose whether to allow dynamic updates (e.g., secure, nonsecure, or none) and click Next.
7. Finish:
o Review your settings and click Finish.
Step 3: Add DNS Records
1. Add A Record:
o Right-click on your new zone and select New Host (A or AAAA).
o Enter the name (e.g., www for www.mega.com) and the corresponding IP address.
o Click Add Host.
2. Add Other Records:
o You can add other record types, like MX (Mail Exchange) or CNAME (Canonical Name), by right-clicking on the zone and selecting the appropriate record type.
Step 4: Configure DNS Forwarding (Optional)
1. Open DNS Manager:
o If not already open, access the DNS Manager.
2. Open Properties:
o Right-click on the DNS server name and select Properties.
3. Forwarders:
o Go to the Forwarders tab and click Edit.
o Enter the IP addresses of external DNS servers you want to forward queries to (e.g., your ISP's DNS or Google’s DNS: 8.8.8.8).
4. Apply Changes:
o Click OK to save your changes.
Step 5: Testing DNS Configuration
1. Use nslookup:
o Open Command Prompt and use nslookup to test your DNS records:
nslookup www.mega.com
2. Check DNS Resolution:
o Ensure the correct IP address is returned. If not, check your DNS records and configuration.
Step 6: Configure Client Settings
1. Set DNS Server on Clients:
o Ensure client devices are configured to use the DNS server you just set up. You can do this manually or through DHCP settings.
Configuring DHCP on Active Directory involves several steps to ensure that the DHCP server is properly set up and integrated with the domain. Here's how to do it:
Step 1: Install DHCP Server Role
1. Open Server Manager:
o Log in to your Windows Server and open Server Manager.
2. Add Roles and Features:
o Click on Manage - Add Roles and Features.
o In the wizard, choose Role-based or feature-based installation and select your server.
3. Select DHCP Server:
o In the roles list, check DHCP Server and click Next to proceed through the wizard.
4. Install:
o Complete the wizard and click Install. Once installed, click Close.
Step 2: Authorize the DHCP Server in Active Directory
1. Open DHCP Management Console:
o Go to Tools in Server Manager and select DHCP.
2. Authorize the Server:
o In the DHCP console, right-click on DHCP and select Authorize.
o The server should now be listed as authorized once the action is completed.
Step 3: Create a DHCP Scope
1. Open the DHCP Console:
o If you haven’t already, open the DHCP management console.
2. Create New Scope:
o Right-click on IPv4 (or IPv6 if needed) and select New Scope.
3. Follow the New Scope Wizard:
o Name: Provide a name and description for the scope.
o IP Address Range: Define the starting and ending IP addresses for the scope.
o Subnet Mask: The subnet mask will be filled in automatically based on the IP range.
o Exclusions: Specify any IP addresses you want to exclude from the DHCP assignments.
o Lease Duration: Set the lease duration for IP addresses.
o Configure DHCP Options: Set options such as default gateway, DNS servers, etc. You can choose to configure these now or later.
4. Activate the Scope:
o After completing the wizard, right-click the new scope and select Activate.
Step 4: Configure Additional Options (if needed)
1. Add Additional Options:
o Right-click on your scope and select Properties.
o Go to the Advanced or DNS tab to configure additional settings like WINS servers or specific DNS options.
Step 5: Testing DHCP Configuration
1. Connect a Client:
o Connect a client device to the network and configure it to obtain an IP address automatically.
2. Verify IP Address:
o Check the client’s IP address configuration using ipconfig (Windows) or ifconfig (Linux) to ensure it received an address from the DHCP server.
3. Check DHCP Logs:
o You can also review the DHCP server logs to ensure it is functioning correctly.
@WindowsAdminWorld
Watch video How to Configure DNS & DHCP @WindowsAdminWorld online without registration, duration hours minute second in high quality. This video was added by user WindowsAdminWorld 09 October 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 531 once and liked it 27 people.