How to Configure DNS Server in Windows Server

Configure DNS Server in Windows Server

To visit a friend or a new place, you need an address and to call someone, a phone number. How to find websites? Yes! DNS as an Internet address book or phone book is required. How to Configure DNS Server in Windows. However, you just found the exact article to completely learn about DNS and review How to Configure DNS Server in Windows Server.

The IP address of a website can be rather difficult to recall, however, DNS servers make this less of an issue. They assist in converting lengthy IP addresses into domain names that are easier for humans to read and remember. A DNS is used to assist in translating domain names into IP addresses so that computers may comprehend queries and load the desired pages for users.

DNS operates in the background, so ordinary internet users won’t need to worry about it much. But, if you have purchased your own Windows VPS or you are going to, it is essential to be an expert in configuring DNS Server on it and be familiar with its advanced settings. We try to present the most efficient method in simple terms. Before that, to help you with a better DNS understanding, let’s see what is DNS and How does it work?

DNS in A Simple Word

The Domain Name System (DNS) functions as a fictitious phone book for the Internet. Your device utilizes DNS to look up the specific IP addresses of the websites you enter into the address bar of your browser to locate them online. You no longer need to bother trying to remember the IP address of each website you wish to access thanks to this. DNS is a naming database that contains data about domain names and the IP addresses that go with them.

Additionally, it converts human-readable domain names such as www.operavps.com into their IPv4 or IPv6 equivalents, which are more difficult for people to remember and type out.

How Does DNS Work?

Your computer searches for the associated IP address of a website when you type its address into a search engine, such as YouTube.com, to find the correct page. In order to avoid a web traffic backlog, well-known websites like Google have numerous IP addresses that can be used concurrently. The recursive DNS server, root name server, top-level domain (TLD) nameserver, and authoritative nameserver are the four main servers that convert hostname-to-IP address. They are also called DNS resolutions.

Your browser receives the data after the correct IP address has been identified, and the web page loads. Additionally, the recursive DNS server keeps that IP in its cache memory for a short while up to a week. You can also learn how to clear DNS Cache in Windows.

This is done so that the server won’t need to ping other servers in order to swiftly return the address. Consider this to be comparable to your computer’s RAM, which keeps track of recently used programs, so it may access them more rapidly the next time they are needed. Your browser receives an error notice if a query reaches the authoritative name server level but the IP address still cannot be located. It all happens in a few milliseconds.

Note: A cyberattack technique known as DNS tunneling allows attackers to exploit DNS to introduce data packets containing malicious software into a system. This exploit conceals malicious software behind what seems to be legitimate DNS traffic and is frequently applied to create a command and control link with a target network. If DNS traffic isn’t constantly checked, many individuals may be misdirected because bad DNS cache data frequently persist on the server and directs fresh inquiries until it expires or is manually erased.

So, it is important to use a trustable DNS server and manage and prohibit your considered websites to prevent devices on your home or office network from accessing them.

Prerequisites to Configure DNS Server in Windows

To let this tutorial works correctly, provide the options below and move on.

  • A server running Windows VPS.
  • A user with administrative privileges.
  • At least 4 GB RAM with 2 Cores CPU.

Install a DNS Server on Windows Server

Once you purchased your own Windows VPS to run Windows Server with any edition you prefer, you also need to have a pre-installed DNS server role. If you’re all set with this, skip this step to the next one. If not, review the required steps of installing the DNS server role to prepare to Configure DNS Server in Windows Server. As an administrator, you have the option of installing many server roles on a single computer or dedicating an entire server to one particular role. The Domain Name System (DNS) and Dynamic Host Configuration Protocol (DHCP) roles can be implemented simultaneously on one server for convenience.

As you read in the prerequisites part, you must log in to your Windows Server as an administrator user. Then, follow the below steps to Install DNS Server.

Step 1. Click Start, then click Server Manager and open it. When you see the screen below, click on Add roles and features.

Install a DNS Server on Windows

Step 2. Once you see the Before You Begin screen, click Next.

Prepare to install DNS Server

Step 3. After clicking the Next button in the previous step, you must see the Select installation type screen. There, select Role-based and feature-based installation and click on the Next button to continue.

select installation type to install DNS Server

Step 4. On the Select destination server screen, you should select the server from the server pool and click on the Next button.

select destination server to install DNS Server

Step 5. On the Select server roles, select the DNS server and click on the Next button.

How to select dns server roles

A pop-up window will appear asking you to install some more tools for the DNS server. Check your needs if you want to install the tools, then proceed as necessary. You can see some more features for your DNS server in the following window. Read them attentively, and if necessary, add them.

Select Features while installing DNS server

Step 6. When you see the below screen, you should verify all settings. Then, click on the Install button to start the installation process.

confirm DNS installation

Step 7. Now, you must see the Installation progress screen. Just wait till the installation is complete. When the installation is complete, click on the Close button to close the installation wizard.

DNS installation progress on Windows

Your system’s DNS Server role has been successfully installed. Go to your Server Manager right now. A box that represents the DNS role is visible. Now that the DNS server role has been installed, let’s move on to learn How to Configure DNS Server on Windows Server.

Remove the DNS Server Role

To uninstall the DNS Server role, run the following command:

Uninstall-WindowsFeature -Name DNS

How to Configure DNS Server in Windows Server [Visual Step]

Now that you have successfully installed DNS Server on your Windows Server, let’s go through the steps of this part to Configure DNS Server in Windows.

Step 1. Create a Forward Lookup Zone

Zones are the various parts of a domain namespace. In this step, to resolve the name to the IP address you must create a forward lookup zone. To do this, review the following instructions.

1. Open the Server Manager and click Tools > DNS. So, you can see the DNS manager will be opened.

2. Right-click on the server name and click on the New Zone.

How to Create a Forward Lookup Zone

3. Once you see the zone configuration wizard screen, click on the Next button.

New Zone Wizard

4. Now, you must see the zone type selection screen. Just select the Primary zone and click on the Next button.

select zone type

5. On the below screen, select Forward lookup zone and click on the Next button.

Create a Forward Lookup Zone

6. On the below screen, you will be asked for the name of the new zone. So, give your zone name and click on the Next button.

 Provide zone name

7. On the Zone File screen, select “Create a file with the file name” and click on the Next button.

create a zone file

8. Once the Dynamic Update screen is displayed, select “Do not allow dynamic update” and click on the Next button.

dynamic update

9. After viewing the below screen, click on the Finish button.

complet reverse lookup zone wizard

10. when you see your reverse lookup zone in the below screen, you’re done with this step.

verify reverse zone

Step 2. Create a Reverse Lookup Zone

You completed the first step to Configure DNS Server in Windows. You need to complete three more steps. In this step, you will review how to create a reverse lookup zone to resolve the IP address to the name. Just follow all the below-required actions.

1. On the DNS manager, right-click on the server name and click on the New Zone to view the zone creation wizard:

reverce zone welcome screen

2. The Zone Type selection screen should be displayed. Select the Primary zone and click on the Next button.

select reverse zone type

3. On the Forward or Reverse Lookup Zone screen, select “Reverse lookup zone” and click on the Next button.

select reverse lookup zone

4. Once you see the Reverse Lookup Zone Name screen, select IPv4 Reverse Lookup Zone and click on the Next button.

select ipv4 reverse lookup zone

5. As you see below, it is time to define your network id. Then, click on the Next button.

define your network ID

6. When the below screen is shown, select “Create a file with this file name” and click on the Next button.

create a reverse lookup zone file

7. Again on the Dynamic Update screen, select “Do not allow dynamic update” and click on the Next button.

reverse lookup deny dynamic update

8. When the below screen is displayed, click on the Finish button.

complete reverse lookup zone wizard

9. And finally, when you see your reverse lookup zone on the following screen, it says you have successfully completed the second step to Configure DNS Server in Windows Server.

verify reverse zone

Step 3. Add A and PTR Records to DNS

The third step to Configure DNS Server in Windows is to add A and PTR Records for remote hosts to perform name resolution. If you need to know about DNS Records, refer to our related article and come back to complete this step by adding A and PTR records to DNS.

1. On the DNS manager, right-click on the forward lookup zone. Then, click on the New Host (A or AAAA).

add A record to DNS

2. Now, define the parent domain name and IP address of your host in the below screen. then, select “Create associated pointer record” then click on the Add Host button.

define A record

3. When the below screen is displayed, click on the forward lookup zone.

verify A record

By this, you can make sure that you have successfully completed the steps. Configuring DNS Server in Windows is done if you can see the above screen.

How to Configure DNS Server to Listen on a Specify Interface

Since a DNS server will listen for requests on all IP address interfaces by default, you can use the GUI or PowerShell to configure DNS server to listen on a specify interface.

Run PowerShell on your computer. Then, find your computers existing IP address by running the Get-NetIPAddress cmdlet. Make a note of the IP address that you want to use for your DNS server.

How to Test DNS Name Resolution

Once you are done with Installing and Configuring DNS Server, you are ready to verify if DNS Name Resolution works correctly.

Simply open your command line interface and run the following command:

nslookup

If you can view the name you provided for your server and your IP address in the output, you can continue by typing the FQDN of your added host:

> web.exampledns.com

You should see the name to IP address resolution in your output. If yes, type the IP address of your added host to see the IP address to name resolution and make sure everything is working correctly.

FAQ

Zones that are integrated with AD DS are saved or erased for a DNS server depending on the storage type. To zone data are not deleted unless the DNS server you uninstall is the last DNS server hosting that zone.

You will require a minimum of two DNS servers for each Internet domain you own. A domain may contain more than two.

Yes, they are not loaded but they remain in the %systemroot%\System32\Dns directory.

Create a new zone with the same name (as an old zone) to replace the old zone with the new zone file.

You have to integrate the Active Directory namespace into any existing DNS infrastructure if you have one.

Conclusion

In this article, you learned How to Configure DNS Server in Windows Server. This content can be used for Windows 2012, 2016, 2019, and Windows 2022. With the help of this tutorial, you should be able to set up your own DNS server for internal name resolution in your company.

If you follow the above steps properly then you can smoothly Install and Configure DNS Server in Windows without any errors but do not hesitate to contact us if you encounter any problems like DNS Server Not Responding. Our technical support team will try their best to solve your problems.

Leave a Reply

Your email address will not be published. Required fields are marked.


Jeffri Publish in October 25, 2023 at 11:19 am

halo, saya masih bingung menegnai dns server , kalau kita membuat dns server pribadi semisal untuk perusahaan , untuk bagian set ip address di arahkan ke ip dnsnya atau diarahkan ke ip ISP? lalu pada bagia router gateway apakah ini diarahkan juga ke dns server lokalnya atau di arahkan ke dns ISP, mohon pencerahanya terimakasih

    Ashley Publish in October 27, 2023 at 1:36 am

    A public DNS server, such as Google's 8.8.8.8, or the DNS server provided by your ISP can be set as the upstream DNS server when you create a private DNS server. The **primary DNS server** setting on the configuration page of your router is the IP address section to which you are referring. The IP address of the DNS server that your router should use to resolve domain names is specified by this setting.You may specify the IP address of your private DNS server as the primary DNS server in your router's setup page if you put one up for your business. A public DNS server or the DNS server provided by your internet provider can be used as the upstream DNS server when creating a private DNS server. The IP address of the DNS server your router should use to resolve domain names is specified by the primary DNS server setting on the settings page of your router. Your router will redirect all DNS requests to your private DNS server if you set this to the IP address of your private DNS server.

Xbs_zt2000 Publish in June 25, 2023 at 1:36 pm

How to find a good DNS server for 2023 games?

    Ashley Publish in June 25, 2023 at 3:40 pm

    Our recent article about the best DNS servers for gaming helps you find the most suitable one according to your needs and equipment.