Sie sind auf Seite 1von 26

Exercise 3

Installing and
Configuring DNS

Exercise 3 : Installing and Configuring DNS


Installing Domain Name System (DNS) Services Role
In this section, youll learn how to implement a domain name server for your network. Domain
Name System (DNS) provides a standard method for associating names with numeric Internet
addresses. This makes it possible for users to refer to network computers by using easy-toremember names instead of a long series numbers.
Windows DNS services can be integrated with Dynamic Host Configuration Protocol (DHCP)
services on Windows, eliminating the need to add DNS records as computers are added to the
network.
The first step is required to ensure that you are using a static IP address and that the DNS
settings on the computer have been correctly configured. Make sure your have hook up your PC
to the network and you are using a static IP address before you start.
EXERCISE 3.1
Installing Domain Name System (DNS) Services Role
1. Launch Server Manager. Click Start Administrator Tools Server Manager (Figure
0036).

Figure 0036 : Launch Server Manager

2. In Server Manager, select Roles (Figure 0037).

Figure 0037 : Roles


3. Select Add Roles (Figure 0038).

Figure 0038 : Add Roles


4. On the Before You Begin page, review the requirements, and click Next (Figure 0039).

Figure 0039 : Add Roles Before You Begin

5. On the Select Server Role page, select the check box next to DNS Server, and click
Next (Figure 0040).

Figure 0040 : Server Roles DNS Server


6. On the DNS Server page, review the information, and click Next (Figure 0041).

Figure 0041 : DNS Server

7. On the Confirm Installation Selections page, click Install (Figure 0042).

Figure 0042 : Confirm Installation Selections

Please wait. This operation will take a few minutes.

Figure 0043 : Installation Progress

8. On the Installation Result page, review the information.


Click Close to continue (Figure 0044).

Figure 0044 : Installation Result

EXERCISE 3.2
Configuring Domain Name System (DNS)
9. Launch DNS Manager. Click Start Administrator Tools DNS (Figure 0045)

Figure 0045 : Launch DNS Manager

10. Double-click on the computer icon to expand the DNS Server (Figure 0046).

Figure 0046 : DNS Manager

EXERCISE 3.2.1
Configuring Forward Lookup Zones
11. Click on Forward Lookup Zones first, and then right-click on it.
12. Select New Zone (Figure 0047)

Figure 0047 : Create New Zone


13. New Zone welcome wizard appear. Click Next to continue (Figure 0048).

Figure 0048 : New Zone Welcome Wizard

14. Select Primary zone and click Next button (Figure 0049).

Figure 0049 : Zone Type


15. The New Zone Wizard dialog box requests the name for the zone. Enter the name that
has been assigned to your domain (this example uses myserver.com). (Figure 0050).

Figure 0050 : Zone Name


16. Once you have entered the correct name for the zone name, click Next button to
continue.

17. The dialog box now displays the name that will be used to the new zone file. Leave the
filename as suggested, then click Next (Figure 0051).

Figure 0051 : Zone File


18. Select the option "Allow both nonsecure and secure dynamic updates". Click Next to
continue (Figure 0052).

Figure 0052 : Dynamic Update

19. Click Finish to close the wizard and create the new zone (Figure 0053).

Figure 0053 : Successfully Completed the New Zone Wizard

EXERCISE 3.2.2
Creating Forward Lookup Zones New Host
20. Double click to expand Forward Lookup Zones.
21. Right click myserver.com and select New Host (Figure 0054).

Figure 0054 : Create New Host

22. Enter IP address for DNS server (myserver.com) and click Add Host (Figure 0055).

Figure 0055 : New Host


23. Click OK button.
24. Click Done button to exit New Host Wizard.

25. After finish configuring Forward Lookup Zones, recheck myserver.com must have
minimum three(3) types resource record (SOA), (NS) and (A). (Figure 0056).

Figure 0056 : Forward Lookup Zones

EXERCISE 3.3

Configuring Reverse Lookup Zones


26. Click on Reverse Lookup Zones.
27. Right click Reverse Lookup Zones and select New Zone (Figure 0057).

Figure 0057 : Add a New Zone


28. New Zone welcome wizard appear. Click Next to continue (Figure 0058)

Figure 0058 : New Zone Welcome Wizard

29. Select Primary zone and click Next button (Figure 0059)

Figure 0059 : Zone Type


30. Select IPv4 Reverse Lookup Zone and click Next to continue (Figure 0060).

Figure 0060 : Reverse Lookup Zone Name

31. A reverse zone maps IP addresses to computer names, so it has to know what range of
IP addresses it will be responsible for.

Enter the first 3 octets of the IP address that has been allocated to your network domain
(Figure 0061).

Figure 0061 : Network ID


32. After entering the network ID, click Next button to continue.
33. The wizard will display the name of the reverse zone file that it will create. Leave the
filename as suggested, then click Next (Figure 0062).

Figure 0062 : Zone File


34. Select the option "Allow both nonsecure and secure dynamic updates". Click Next to
continue (Figure 0063)

Figure 0063 : Dynamic Updates


35. Click Finish to close the wizard and create the new zone (Figure 0064).

Figure 0064 : Successfully Completed the New Zone Wizard


EXERCISE 3.3.1
Creating Reverse Lookup Zones New Pointer (PTR)

36. In the DNS manager window, double-click the computer icon and expand the Reverse
Lookup Zone field.
37. Expand the subnet field.
38. Right-click the subnet field and select New Pointer (Figure 0065).

Figure 0065 : Create New Pointer

39. Enter the IP address of your domain server (Figure 0066).

Figure 0066 : Host IP Address


40. Click Browse button to browse for host name.

41. Double click your server icon (Figure 0067).

Figure 0067 : Browse Host Name - Domain

42. Double click Forward Lookup Zones (Figure 0068).

Figure 0068 : Browse Host Name - Forward Lookup Zones

43. Double click your domain (Figure 0069).

Figure 0069 : Browse Host Name Domain.com


44. Double click Host (A) record (Figure 0070).

Figure 0070 : Browse Host Name Host (A)

45. Click OK to create new pointer (Figure 0071).

Figure 0071 : New Pointer Complete Data

46. After finish configuring Reverse Lookup Zones, recheck the subnet field. The subnet
field must have minimum three(3) types resource record (SOA), (NS) and (PTR).
(Figure 0072).

Figure 0072 : Reverse Lookup Zones

EXERCISE 3.4

Testing The DNS Server


In this section you verify that the DNS Server is installed, running, and correctly configured.
47. In the DNS manager window, right-click the computer icon and select properties (Figure
0073).

Figure 0073 : DNS Manager Server Properties


48. Click the Monitoring tab (Figure 0074).

Figure 0074 : DNS Server Properties

49. Enable both tests and click Test Now button (Figure 0075).

Figure 0075 : DNS Server Properties - Monitoring


Do not proceed till the test results for Simple Query indicate Pass. Your recursive
query result will indicate Fail because we did not configure our DNS to query to other
DNS server.
50. Click OK to continue
51. Close the DNS Manager.

EXERCISE 3.5

Testing The DNS Server Using NSLOOKUP To Query DNS


In this exercise you will use a client tool to check the operation of the DNS server. You will
query both a forward and reverse lookup.
52. Launch Run. Click Start Run (Figure 0076).

Figure 0076 : Launch RUN

53. Enter nslookup and click OK (Figure 0077).

Figure 0077 : Launch Nslookup Program

54. A command prompt DOS window will appear with the program nslookup running in it
(Figure 0078).
The default server name and IP address of the DNS server will be shown.

Figure 0078 : Running Nslookup

55. To perform a forward lookup (resolve a computer name to an IP address) enter the
name of the computer (e.g. myserver.com) (Figure 0079).

Figure 0079 : Query Forward Lookup

56. Press ENTER. Your query result will be same as Figure 0080 below.

Figure 0080 : Query Forward Lookup Result

57. To perform a reverse lookup (resolve an IP address to a computer name), enter the IP
address given in step 56 and press ENTER (Figure 0081).

Figure 0081 : Query Reverse Lookup


58. Close the command prompt windows (Figure 0082).

Summary
The DNS server is a database that manages computer names and their IP addresses. Zone
files are used to store this information. Within a zone, a forward lookup resolves computer
names to IP addresses. A reverse zone resolves IP addresses to computer names.
A client tool such as NSLOOKUP can be used to test the operation of a DNS server.

Das könnte Ihnen auch gefallen