Home > Articles

  • Print
  • + Share This
This chapter is from the book

Lab Exercise 3.2: Advanced DNS Configuration

In this lab exercise, you will use YaST to configure forwarding, DNS security, and LDAP support. To complete this exercise, you will need your lab PC system that you installed SLES 9 on in Lab Exercise 2.1 and configured in Lab Exercise 3.1.

Complete the following:

  1. Boot your SLES 9 server.
  2. Authenticate as tux with a password of SuSE789 .
  3. Start YaST.
  4. When prompted, supply a root password of tuX123 .
  5. Select Network Services, DNS Server.
  6. Configuring DNS forwarding by completing the following:
    1. In the left frame, select Forwarders.
    2. Mark Set Forwarders Manually.
    3. In the IP Address field, enter the IP address of your ISP's DNS server.
    4. Select Add.
  7. Configure an ACL by completing the following:
    1. In the left frame, select ACLs.
    2. In the Name field, enter allowedhosts .
    3. In the Value field, enter your network address and subnet mask. For example, if your network address is and your subnet mask is, you would enter .
    4. Select Add.
  8. Restrict DNS queries to hosts on your network segment by completing the following:
    1. In the left frame, select Basic Options.
    2. In the Option drop-down list, select allow-query.
    3. In the Value field, enter {allowedhosts; } .
    4. Select Add.
  9. Select Finish.
  10. Verify the changes by completing the following:
    1. Open a terminal session.
    2. Switch to your root user.
    3. At the shell prompt, enter cat /etc/named.conf |more .
    4. Verify that your changes were made.
  11. Configure LDAP support by completing the following:
    1. In YaST, select DNS Server.
    2. In the left frame, select Start-Up.
    3. Mark LDAP Support Active.
    4. When prompted that perl-ldap needs to be installed, select Continue.
    5. When prompted, insert your SLES 9 CD 3; then select Continue.
    6. Wait while the package is installed. (Leave your CD in the drive; we'll need it in just a minute.)
    7. In the DNS Server Start-Up screen, select Finish.
    8. When prompted for the LDAP Server password, enter tuX123 .
  12. To view the contents of the LDAP directory on your server, you have to install the gq client. To do this, complete the following:
    1. In YaST, select Software, Install and Remove Software.
    2. In the Search field, enter gq ; then select Search.
    3. Mark the gq package; then select Accept.
    4. Wait while the package is installed.
  13. Verify that your DNS zone information was imported into your LDAP directory by doing the following:
    1. Select N, System, GQ LDAP Client.
    2. Select File, Preferences.
    3. Select Servers.
    4. Select localhost, Edit.
    5. Select Details.
    6. In the Bind DN field, enter cn=Administrator,dc=cle9,dc=com .
    7. Select OK, OK.
    8. Select the Browse tab.
    9. Expand localhost.
    10. When prompted for a password, enter tuX123 .
    11. Expand dc=cle9,dc=com.
    12. Expand ou=DNS.
    13. Browse your zone records to verify that they were imported properly.
  14. Close GQ and YaST.

Congratulations! You now have a locked-down DNS server that's integrated with your LDAP directory.

That's it for this chapter. Before we go to Chapter 4, "Configuring DHCP on SLES 9," let's review what you've learned.

  • + Share This
  • 🔖 Save To Your Account