Skip to content
Gallery
HOW TO SETUP DNS IN WINDOWS SERVER
Share
Explore

SETUP DNS

April 5, 2023

Go to Virtual Network Editor.
image.png

Click VMnet0 (Bridged), and set the the following configurations (refer to the image below).
image.png

If machine is turned off:
Click Edit virtual machine settings
image.png

If machine is turned on:
Right click the Windows Server VM Tab above, and select Settings.
image.png

Set your Network Adapter to Bridged (Automatic), and click Close.
image.png

Power on your virtual machine if it is turned off.
image.png

Restart your Windows Server if it is turned on to save changes:
image.png

Type the password to login.
image.png

Open cmd and type this command to check if there is an IP:
ipconfig
image.png

Search Windows Defender Firewall.
pasted image 0.png
Find this option (refer to the image below)
pasted image 0.png


Turn off all Firewalls from Public and Private Networks. Click OK.
pasted image 0.png
Search Windows Powershell and select any of the results.
pasted image 0.png
Type this command:
Install-WindowsFeature -Name DNS -IncludeManagementTools
pasted image 0.png

**OOPS, IT NEEDS STATIC IP**
pasted image 0.png
It says True, but somewhat we need to configure to Static Mode for the other requirements.
pasted image 0.png
Go ahead and proceed to your Personal Windows OS (non-VM).
Open cmd, and type this command.
ipconfig /all
pasted image 0.png
Take note of the following:
The Default Gateway
DNS Server: 127.0.0.1

Go to your Windows Server VM, then open cmd, and re-type the command:
ipconfig /all
pasted image 0.png
Look for your IPv4 Address, and mostly remember your third octet.

In my case it’s 192.168.1.6
pasted image 0.png
Press Windows+R key and type:
ncpa.cpl
pasted image 0.png
Right click your Ethernet/Wi-Fi, and select Properties.
pasted image 0.png
Disable Internet Protocol Version 6 (TCP/IPv6).
Click Internet Protocol Version 4(TCP/IPv4), and click Properties.
pasted image 0.png
Set the following configurations:
IP Address: 192.168._.12
Subnet Mask: 255.255.255.0
Default gateway: 192.168._.1
\\this somewhat depends to your network\\

Preferred DNS: 127.0.0.1
pasted image 0.png

Go back to your Powershell, and re-type:
Install-WindowsFeature -Name DNS -IncludeManagementTools
pasted image 0.png

Search DNS from your Windows Server.
pasted image 0.png
Right click Server, then select Properties.
pasted image 0.png
Select Forwarders, and click “Edit...”
pasted image 0.png
Click “<Click here to add a...”
And enter the following before clicking OK:
1.1.1.1
8.8.8.8
pasted image 0.png

Click Apply.
pasted image 0.png

**FOR YOUR NOTES**:
image.png

TEST PING THE FOLLOWING:
ping www.nba.com
pasted image 0.png

ping ns.google.com
pasted image 0.png

ping www.gmail.com
ping smtp.gmail.com
pasted image 0.png

ping pop.gmail.com
ping imap.gmail.com
pasted image 0.png
Back to your DNS, go ahead and right click Forward Lookup Zones.
Select New Zone.
pasted image 0.png

Select Primary Zone, and click Next.
pasted image 0.png

Use the following format:
[name].[pc-number].com

In my case it's umak.11.com. Then click Next.
pasted image 0.png

Click Next.
pasted image 0.png

Click Next.
pasted image 0.png
Click Finish.
pasted image 0.png
Right click Reverse Lookup Zones, and select New Zone.
pasted image 0.png
Select Primary Zone, and click Next.
pasted image 0.png

Select IPv4 Reverse Lookup Zone, and click Next.
pasted image 0.png

Type:
192.168._
Click Next.
pasted image 0.png

Click Next.
pasted image 0.png

Click Next.
pasted image 0.png

Click Finish.
pasted image 0.png

We need to create the following:
2 x Hosts
4 x Aliases
1 x MX Record

STEP 1: Creating Hosts

Right click the created Zone under Forward Lookup Zones, and select “New Host (A or AAAA)...”
pasted image 0.png
Type the following:
Name: ns
IP Address: 192.168._.12

☑️ Create associated pointer (PTR) record.
image.png

NS was successfully created.
pasted image 0.png

Create another host:
Name: <no name>
IP Address: 192.168._.12

☑️ Create associated pointer (PTR) record.
image.png

Success Prompt.
pasted image 0.png
Click Done.
pasted image 0.png


STEP 2: Creating Aliases

Right click the created Zone under Forward Lookup Zones, and select “New Alias (CNAME)...”
pasted image 0.png
Type:
Alias Name: www
Fully qualified domain...: ns.[name].[pc-number].com.

Click OK.
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.