How to set DNS on Windows Server

  1. Open the “Server Manager” and click on the “Local Server” from the left pane.
  2. In the “Local Server” pane, click on the “Ethernet” link next to “NIC”.
  3. In the “Ethernet” pane, click on the “Properties” link.
  4. In the “Ethernet Properties” dialog box, select “Internet Protocol Version 4 (TCP/IPv4)” and click on the “Properties” button.
  5. In the “Internet Protocol Version 4 (TCP/IPv4) Properties” dialog box, select the “Use the following DNS server addresses” radio button.
  6. In the “Preferred DNS server” field, enter the IP address of your primary DNS server.
  7. In the “Alternate DNS server” field, enter the IP address of your secondary DNS server (if you have one).
  8. Click on the “OK” button to save your changes.
  9. If you have IPv6 enabled, repeat steps 4-8 for the “Internet Protocol Version 6 (TCP/IPv6)” option.

That’s it! Your Windows Server 2019 is now configured with your DNS server(s).

How to install Bind 9 DNS

BIND (Berkeley Internet Name Domain) is a popular open-source implementation of the Domain Name System (DNS) protocol. BIND version 9 is the current stable release and is widely used to provide DNS services on Linux and Unix-based systems. Setting up BIND 9 DNS server involves several steps, including configuring the BIND software, creating DNS zones, and configuring DNS records.

Here is a general overview of the steps to set up a BIND 9 DNS server:

  1. Install BIND: To set up a BIND 9 DNS server, you first need to install the BIND software on your Linux or Unix-based system. This can be done by using the package manager of your operating system, such as apt-get or yum.
  2. Configure BIND: Once the BIND software is installed, you need to configure the BIND server by editing the main configuration file, named.conf. You will need to specify the IP address of the DNS server, the location of the zone files, and other settings.
  3. Create DNS zones: A DNS zone is a container for DNS records. You will need to create one or more zones for your DNS server, depending on your network configuration. This can be done by creating text files with the zone information and placing them in the location specified in the named.conf file.
  4. Configure DNS records: DNS records are used to map domain names to IP addresses or other resources. You will need to create DNS records for each zone you created in the previous step. This can be done by editing the zone files and adding the appropriate DNS records.
  5. Test the DNS server: Once you have completed the configuration, you should test the DNS server to ensure that it is working correctly. You can use the “dig” command to perform a DNS lookup and check the results.
  6. Start the BIND service: After the test, you can start the BIND service by running the command systemctl start named or service named start depending on the linux distribution you are using.
  7. Secure the service: Make sure to secure your DNS service by following best practices for securing BIND 9. This includes restricting access to the DNS server, configuring access controls, and implementing security measures such as TSIG and DNSSEC.

It’s important to note that this is a general overview of the steps to set up a BIND 9 DNS server, and more detailed steps and considerations are required to make sure that the process is done correctly. It’s always recommended to have a backup and a plan before proceeding with the setup, and also to use the official BIND documentation as a reference.