Home > Articles > Certification > Other IT

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

Lab Exercise 3.1: Configuring DNS

In this lab exercise, you will use YaST to configure the DNS service on your SLES 9 server. To complete this exercise, you will need your lab PC system that you installed SLES 9 on in Lab Exercise 2.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 the root password of tuX123 .
  5. Select Network Services, DNS Server.
  6. In the Forwarder Settings screen, select Next.
  7. In the DNS Zones screen, complete the following:
    1. In the Zone Name field, enter cle9.com.
    2. Select Add.
    3. Under Configured DNS Zones, ensure the cle9.com zone is selected; then select Edit Zone.
    4. Select the NS Records tab.
    5. In the Name Server to Add field, enter fs1.cle9.com ..
    6. Select Add.
    7. Select the SOA tab.
    8. Change the TTL directive to 3 days.
    9. Select the Records tab.
    10. In the Record Key field, enter fs1 .
    11. Ensure that the Type drop-down list is set to A.
    12. In the Value field, enter the IP address of your SLES 9 server.
    13. Select Add.
    14. Select OK.
  8. Create a reverse-lookup zone by completing the following:
    1. In the DNS Zones screen, enter the appropriate name for a reverse zone for your network segment. For example, if your network address is 192.168.1.0, you would enter 1.168.192. in-addr.arpa ..
    2. Select Add.
    3. Under Configured DNS Zones, select your reverse zone.
    4. Select Edit Zone.
    5. Select the NS Records tab.
    6. In the Name Server to add field, enter fs1.cle9.com ..
    7. Select Add.
    8. Select the SOA tab.
    9. Change the TTL directive to 3 days.
    10. Select the Records tab.
    11. In the Record Key field, enter the appropriate reverse FQDN for your SLES 9 server. For example, if the IP address of your server were 192.168.1.47, you would enter 47.1.168.192. in-addr.arpa. .
    12. Ensure that the Type drop-down list is set to PTR.
    13. In the Value field, enter fs1.cle9.com ..
    14. Select Add.
    15. Select OK.
    16. In the DNS Zones screen, select Next.
  9. In the Finish Wizard screen, mark On under Start-Up Behavior.
  10. Select Finish.
  11. Open a terminal session.
  12. At the shell prompt, enter su – and provide a password of tuX123.
  13. At the shell prompt, enter tail /var/log/messages .
  14. Verify that your forward and reverse zones were loaded properly by named.
  15. Verify that your system is configured with the correct DNS server address by completing the following:
    1. At the shell prompt, enter cat /etc/resolv.conf .
    2. There should be a line that reads nameserver your_server's_IP_address and a line that reads search cle9.com. If this isn't the case, use YaST to make the necessary changes. (See Lab Exercise 2.2 for specific steps.)
  16. Test your zones by completing the following:
    1. At the shell prompt, enter dig fs1.cle9.com. This should resolve to your DNS server's IP address.
    2. At the shell prompt, enter host your_server's_IP_address . Your named daemon should return fs1.cle9.com as the hostname associated with IP address.

Congratulations! You now have a functional DNS server running on SLES 9.

With named running, you're ready to explore some advanced DNS features. Let's do that next.

  • + Share This
  • 🔖 Save To Your Account