␡
- The Need for DNS
- Installing DNS on SLES 9
- Lab Exercise 3.1: Configuring DNS
- Advanced DNS Configuration
- Lab Exercise 3.2: Advanced DNS Configuration
- Summary
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:
- Boot your SLES 9 server.
- Authenticate as tux with a password of SuSE789 .
- Start YaST.
- When prompted, supply the root password of tuX123 .
- Select Network Services, DNS Server.
- In the Forwarder Settings screen, select Next.
- In the DNS Zones screen, complete the following:
- In the Zone Name field, enter cle9.com.
- Select Add.
- Under Configured DNS Zones, ensure the cle9.com zone is selected; then select Edit Zone.
- Select the NS Records tab.
- In the Name Server to Add field, enter fs1.cle9.com ..
- Select Add.
- Select the SOA tab.
- Change the TTL directive to 3 days.
- Select the Records tab.
- In the Record Key field, enter fs1 .
- Ensure that the Type drop-down list is set to A.
- In the Value field, enter the IP address of your SLES 9 server.
- Select Add.
- Select OK.
- Create a reverse-lookup zone by completing the following:
- 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 ..
- Select Add.
- Under Configured DNS Zones, select your reverse zone.
- Select Edit Zone.
- Select the NS Records tab.
- In the Name Server to add field, enter fs1.cle9.com ..
- Select Add.
- Select the SOA tab.
- Change the TTL directive to 3 days.
- Select the Records tab.
- 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. .
- Ensure that the Type drop-down list is set to PTR.
- In the Value field, enter fs1.cle9.com ..
- Select Add.
- Select OK.
- In the DNS Zones screen, select Next.
- In the Finish Wizard screen, mark On under Start-Up Behavior.
- Select Finish.
- Open a terminal session.
- At the shell prompt, enter su – and provide a password of tuX123.
- At the shell prompt, enter tail /var/log/messages .
- Verify that your forward and reverse zones were loaded properly by named.
- Verify that your system is configured with the correct DNS server address by completing the following:
- At the shell prompt, enter cat /etc/resolv.conf .
- 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.)
- Test your zones by completing the following:
- At the shell prompt, enter dig fs1.cle9.com. This should resolve to your DNS server's IP address.
- 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.