Windows Server 2012 build DNS server

        In order to achieve load balancing and expand server bandwidth, you need to configure the DNS server to resolve the corresponding domain name.

        This article records the method of configuring DNS service in Windows Server 2012.

        Assuming that the domain name www.mydomain.com has been resolved in Alibaba Cloud, now you need to add a second-level domain name stream.mydomain.com for push streaming service, and you need to use your own configured DNS service for request resolution and distribution.

        The steps to configure the DNS server for Windows Server are as follows

1. Add DNS service

        Open Server Manager and select "Add Roles and Features"

         On the pop-up interface, press the default option and click Next until the server role selection interface, select "DNS server" and click Next, then press the default setting and click Next until the installation is complete.

2. Configure DNS service

        Select "DNS" from the Tools menu at the top right of the Service Manager to bring up the configuration page:

        Click the right mouse button on the forward lookup area to create a new area 

        Follow the wizard to complete the setup: 

 

 

 

 

 

        Select the newly created domain name mydomain.com under the forward lookup zone, right-click to create a new host 

        Fill in the field name of the domain name to be resolved and the corresponding IP address in the pop-up interface 

        According to the above configuration, stream.mydomain.com will be resolved to 47.108.xx.xx. If the domain name needs to be resolved to multiple servers for load balancing, you can use the same name and different IP to add a new host according to the above steps 

​​​​​​​

        As shown in the figure below, stream.mydomain.com has added two IP hosts 

        A general domain name also needs to add a host named www to realize the resolution of www.mydomain.com. Here, because the resolution of www has already been resolved on the Alibaba Cloud platform with the help of the DNS server used by Alibaba Cloud, no configuration will be made here.

        You can see that there is also a reverse lookup area in the DNS settings page. It is found that the lookup is to look up the domain name through IP, which can be used to identify spam. If your domain name does not send emails, you don’t need to set it.

3. Test

1. Click on our DNS server, right click to start nslookup

2. Enter the stream.mydomain.com you just configured in the command window to find out the host address you just added.

 

        It shows that the local test is ok.

3. Using a remote client, set the DNS of the client to the IP of the Windows Server server that just configured the DNS service:

        From the client machine use ping stream.mydomain.com:

         The result shows that it is correctly resolved to the previously set host. It means that the DNS server is working normally.

Guess you like

Origin blog.csdn.net/evanyanglibo/article/details/123477047