02/21/95 NAMED Configuration Help SPECIAL NOTICES Information in this document is correct to the best of our knowledge at the time of this writing. Please send feedback by fax to "AIXServ Information" at (512) 823-4009. Please use this information with care. IBM will not be responsible for damages of any kind resulting from its use. The use of this information is the sole responsibility of the customer and depends on the customer's ability to eval- uate and integrate this information into the customer's operational environment. +----------------------------------------------------------+ | | | NOTE: The information in this document has NOT been | | verified for AIX 4.1. | | | +----------------------------------------------------------+ ABOUT THIS DOCUMENT The purpose of this document is to help with the setting up of a Domain Name Server as a primary server and as a caching server. For more information, please refer to the "Communi- cations Concepts and Procedures" publications. PROCEDURE 1. Edit /etc/rc.tcpip, and UNCOMMENT the following line: #start /etc/named "$src_running" 2. Create the file /etc/named.boot, and add the appropriate entries. For example, domain lab.com primary lab.com /u/dns/named.data primary 0.0.127.in-addr.arpa /u/dns/named.local | primary in-addr.arpa /u/dns/named.rev | cache . /u/dns/cache.ca 3. Make sure you have an /etc/hosts file with entries for all hosts you want to be serviced by this DNS server in this domain. 4. With the following command, create the named.data file: | /usr/lpp/tcpip/samples/hosts.awk /etc/hosts > /u/dns/named.data 5. With the following command, create the named.rev file: /usr/lpp/samples/addrs.awk /etc/hosts > /u/dns/named.rev NAMED Configuration Help 1 02/21/95 6. Create named.local file (there is no script to create it). a. Specify the Start of Authority of the zone and the default time-to-live information. For example: | @ IN SOA venus.abc.aus.ibm.com. gail.zeus.abc.aus.ibm.com. ( 1.1 ;serial 3600 ;refresh 600 ;retry 3600000 ;expire 86400) ;minimum b. Specify the Name Server (NS) record. For example: IN NS venus.abc.aus.ibm.com. c. Specify the Pointer (PTR) record. 1 IN PTR localhost 7. With the following command, start named with debugging (this will provide level 3 debugging): startsrc -s named -a "-d 3" 8. Create a /etc/resolv.conf file with the following command: touch /etc/resolv.conf 9. To watch the debugging, open another window and tail the log file: tail -f /var/tmp/named.run 10. After testing the configuration, stop the named that was started with the debug flag ("stopsrc -s named") and restart named normally, either through smit or with the following command: startsrc -s named NAMED Configuration Help 2 02/21/95 READER'S COMMENTS Please fax this form to (512) 823-4009, attention "AIXServ Informa- tion". You may also e-mail comments to: elizabet@austin.ibm.com. These comments should include the same customer information requested below. Use this form to tell us what you think about this document. If you have found errors in it, or if you want to express your opinion about it (such as organization, subject matter, appearance) or make sug- gestions for improvement, this is the form to use. If you need technical assistance, contact your local branch office, point of sale, or 1-800-CALL-AIX (for information about support offer- ings). These services may be billable. Faxes on a variety of sub- jects may be ordered free of charge from 1-800-IBM-4FAX. Outside the U.S. call 415-855-4329 using a fax machine phone. When you send comments to IBM, you grant IBM a nonexclusive right to use or distribute your comments in any way it believes appropriate without incurring any obligation to you. NOTE: If you have a problem report or item number, supplying that number may help us determine why a procedure did or did not work in your specific situation. Problem Report or Item #: Branch Office or Customer #: Be sure to print your name and fax number below if you would like a reply: Name: Fax Number: ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ END OF DOCUMENT (named.setup.tcp, 4FAX# 2704) NAMED Configuration Help 3