In the previous studies Lao Wei introduced to Bago the basic methods of deploying file services deploying DHCP services and deploying services and for each Services have done further technical extensions. This arrangement has benefited Bago a lot not only mastered the basic knowledge but also improved. After successfully deploying the service users within the LAN can use the IP address to access the internal website. However if it is possible to allow internal users to use friendly names (such as \u0026ldquo;.yesky.com\u0026rdquo;) to access internal websites like visiting websites on the Internet it will definitely make more sense. Pug talked about his plan with Lao Wei and Lao Wei said relaxedly: 'What's so difficult? You can realize your idea by deploying a DNS server. \u0026rdquo;
But Bago doesn’t understand what DNS is so Lao Wei gave a brief explanation of DNS. DNS (Domain Name System Domain Name System) is a distributed database organized into a hierarchical structure which contains mappings from DNS domain names to various data types (such as IP addresses). This usually requires the establishment of an A (Address) record which means 'host record' or 'host address record' which is the most common type of all DNS records. With DNS users can find the location of computers and services on the network using friendly names. The DNS name is divided into multiple parts separated by dots. The leftmost part is the host name and the rest is the DNS domain to which the host belongs. Therefore a DNS name should be expressed in the form of \u0026ldquo;host name + DNS domain\u0026rdquo;.
Tips: To successfully deploy the DNS service the computer running Windows Server 2003 must have a static IP address. Only in this way can the DNS client locate the DNS server. In addition if you want the DNS server to be able to resolve domain names on the Internet you need to ensure that the DNS server can connect to the Internet normally.
1. Install DNS server
By default there is no DNS server installed in the Windows Server 2003 system. The first job Lao Wei did was to install the DNS server.
Step 1 click 'Start/Administrative Tools/Configure Your Server Wizard' and then click the 'Next' button in the wizard page that opens. The configuration wizard automatically detects the settings of all network connections. If no problems are found enter the 'server role' wizard page.
Tips: If you use the configuration wizard for the first time a 'Configuration Options' wizard page will appear click the 'Custom Configuration' radio button.
Step 2 in the 'Server Roles' list click the 'DNS Server' option and click the 'Next' button. Open the \u0026ldquo;Select Summary\u0026rdquo; wizard page if \u0026ldquo;Install DNS Server\u0026rdquo;and \u0026ldquo;Run Configure DNS Server Wizard to configure DNS\u0026rdquo; in the list then directly click the \u0026ldquo;Next\u0026rdquo; button. Otherwise click the \u0026ldquo;Previous\u0026rdquo; button to reconfigure (Figure 1).
Figure 1 Select \u0026ldquo;DNS server\u0026rdquo; role
Step 3. The wizard starts to install the DNS server and you may be prompted Insert the Windows Server 2003 installation CD or specify the installation source file (Figure 2).
Figure 2 Specify the system installation disk or installation source file
Tip: If the server is currently configured to automatically obtain an IP address Then the 'Configuring Components' page of the 'Windows Component Wizard' will appear prompting the user to configure the DNS server with a static IP address.
2. Create zone
After the DNS server is installed the 'Configure DNS Server Wizard' dialog box will automatically open. Users can create areas under the guidance of the wizard.
Step 1 in the welcome page of the 'Configure DNS Server Wizard' click the 'Next' button to open the 'Select Configuration Operation' wizard page. By default the 'Create a forward search area' radio box which is suitable for small networks is selected. The network managed by Bago is not too large so keep the default options and click the 'Next' button (Figure 3).
Figure 3 Select configuration operation
Step 2 open the \u0026ldquo;Main server location\u0026rdquo; wizard page if deployed The DNS server is the first DNS server in the network so you should keep the 'This server maintains this zone' radio box checked use the DNS server as the primary DNS server and click 'Next' ; Button (Figure 4).
Figure 4 Determine the location of the main server
Step 3 open the \u0026ldquo;zone name\u0026rdquo; wizard page in \u0026ldquo; Area name\u0026rdquo; type an area name that can reflect company information (such as \u0026ldquo;yesky.com\u0026rdquo;) in the edit box and click the \u0026ldquo;Next\u0026rdquo; button (Figure 5).
Figure 5 Fill in the area name
Step 4 in the opened 'area file' wizard page has been based on the area The name is filled with a file name by default. The file is an ASCII text file which saves the information of the area and is saved in the 'windowssystem32dns' folder by default. Keep the default value unchanged click the 'Next' button (Figure 6).
Figure 6 Create zone file
Step 5 specify the DNS in the opened 'Dynamic Update' wizard page The type of registration information update that the area can accept. Allowing dynamic updates allows the system to automatically register relevant information in the DNS which is more useful in practical applications so click the 'Allow non-secure and secure dynamic updates' radio box and click the 'Next' button ( Figure 7).
Figure 7 Choose to allow dynamic updates
Step 6 open the \u0026ldquo;forwarder\u0026rdquo; wizard page keep \u0026ldquo;yes The query should be forwarded to the DNS server with the following IP address \u0026 rdquo; check box. Type the DNS server IP address provided by the ISP (or superior DNS server) in the IP address edit box and click the 'Next' button (Figure 8).
Figure 8 Configure DNS forwarding
Small tip: By configuring \u0026ldquo;forwarder\u0026rdquo; you can enable internal users to access the Internet Use the DNS server provided by the local ISP for domain name resolution.
Step 7 click the \u0026ldquo;Finish/Finish\u0026rdquo; button to end the creation process of the \u0026ldquo;yesky.com\u0026rdquo; zone and the installation and configuration process of the DNS server.
三. Create a domain name
Lao Wei successfully created the 'yesky.com' zone using the wizard but internal users cannot use this name to access internal sites because it Not yet a qualified domain name. Then you need to create domain names pointing to different hosts on the basis of it to provide domain name resolution services. Lao Wei is going to create a domain name \u0026ldquo;.yesky.com\u0026rdquo; to access the Web site. The specific steps are as follows:
Step 1 click on \u0026ldquo;Start\u0026rdquo;\u0026rarr;\u0026ldquo; Management tool\u0026rdquo;\u0026rarr;\u0026ldquo;DNS\u0026rdquo; menu command open \u0026ldquo;dnsmagt\u0026rdquo; console window.
Step 2 in the left pane expand the \u0026ldquo;ServerName\u0026rdquo;\u0026rarr;\u0026ldquo;forward search area\u0026rdquo; directory. Then right-click the 'yesky.com' area and execute the 'New Host' command in the shortcut menu (Figure 9).
Figure 9 Execute the 'New Host' command
Step 3 open the 'New Host' dialog box In the \u0026ldquo;Name\u0026rdquo; edit box type a name that can represent the service provided by the host (in this example type \u0026ldquo;\u0026rdquo;). Type the IP address of the host in the 'IP address' edit box (such as '192.168.0.198') and click the 'Add Host' button. Soon it will be prompted that the host record has been successfully created (Figure 10).
Figure 10 Create host record
Finally click the \u0026ldquo;Finish\u0026rdquo; button to end the creation.
4. Setting up a DNS client
Although the DNS server has been created and a suitable domain name has been created it cannot be used in the browser of the client\u0026ldquo ;.yesky.com\u0026rdquo; such a domain name to visit the website. This is because although there is a DNS server the client does not know where the DNS server is and therefore cannot recognize the domain name entered by the user. The user must manually set the IP address of the DNS server. In the client\u0026ldquo;Internet Protocol (TCP/IP) Properties\u0026rdquo; dialog box in the\u0026ldquo;Preferred DMS Server\u0026rdquo; edit box set the IP address of the DNS server you just deployed (in this example\u0026ldquo;192.168.0.1\u0026rdquo; Figure 11).
Figure 11 Setting the client DNS server address
Then use the domain name to visit the website again and you will find that it can be accessed normally.