JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
HOW TO SETUP DNS IN WINDOWS SERVER
INSTALLING WINDOWS SERVER
SETUP DNS
More
Share
Explore
SETUP DNS
April 5, 2023
by the
RIVAN TECHNOLOGICAL INSTITUTE
Go to
Virtual Network Editor.
Click
VMnet0 (Bridged),
and set the the following configurations (refer to the image below).
If machine is
turned off
:
Click
Edit virtual machine settings
If machine is
turned on:
Right click the Windows Server VM Tab above, and select
Settings.
Set your
Network Adapter
to
Bridged (Automatic),
and click
Close.
Power on your virtual machine if it is
turned off.
Restart your Windows Server if it is
turned on
to save changes:
Type the password to login.
Open
cmd
and type this command to check if there is an IP:
ipconfig
Search
Windows Defender Firewall.
Find this option (refer to the image below)
Turn off all Firewalls from
Public
and
Private
Networks. Click
OK.
Search
Windows Powershell
and select any of the results.
Type this command:
Install-WindowsFeature -Name DNS -IncludeManagementTools
**OOPS, IT NEEDS STATIC IP**
It says
True,
but somewhat we need to configure to
Static Mode
for the other requirements.
Go ahead and proceed to your
Personal Windows OS (non-VM).
Open
cmd,
and type this command.
ipconfig /all
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
Look for your
IPv4 Address
, and mostly remember your
third octet.
In my case it’s 192.168.
1
.6
Press
Windows+R
key and type:
ncpa.cpl
Right click your Ethernet/Wi-Fi, and select
Properties.
Disable
Internet Protocol Version 6 (TCP/IPv6).
Click
Internet Protocol Version 4(TCP/IPv4),
and click
Properties.
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
Go back to your
Powershell,
and re-type:
Install-WindowsFeature -Name DNS -IncludeManagementTools
Search
DNS
from your Windows Server.
Right click
Server,
then select
Properties.
Select
Forwarders,
and click
“Edit...”
Click
“<Click here to add a...”
And enter the following before clicking
OK
:
1.1.1.1
8.8.8.8
Click
Apply.
**FOR YOUR NOTES**:
TEST PING THE FOLLOWING:
ping www.nba.com
ping
ns.google.com
ping www.gmail.com
ping smtp.gmail.com
ping pop.gmail.com
ping imap.gmail.com
Back to your
DNS,
go ahead and right click
Forward Lookup Zones.
Select
New Zone.
Select
Primary Zone,
and click
Next.
Use the following format:
[name].[pc-number].com
In my case it's
umak.11.com.
Then click
Next.
Click
Next.
Click
Next.
Click
Finish.
Right click
Reverse Lookup Zones,
and select
New Zone.
Select
Primary Zone,
and click
Next.
Select
IPv4 Reverse Lookup Zone,
and click
Next.
Type:
192.168._
Click
Next.
Click
Next.
Click
Next.
Click
Finish.
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)...”
Type the following:
Name:
ns
IP Address:
192.168._.12
☑️ Create associated pointer (PTR) record.
NS was successfully created.
Create another host:
Name:
<no name>
IP Address:
192.168._.12
☑️ Create associated pointer (PTR) record.
Success Prompt.
Click
Done.
STEP 2:
Creating
Aliases
Right click the created Zone under
Forward Lookup Zones,
and select
“New Alias (CNAME)...”
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 (
Ctrl
P
) instead.