RHEL 5.4: rhce dns setup (1)

Source: Internet
Author: User
Tags nameserver subdomain subdomain name

Lab environment: Three DNS servers, one serving as the primary server and the other serving as a subdomain. The RHEL 5.4 system is installed on the three servers, and the test is successful. Note: The primary dns address is 192.168.1.1, the secondary dns address is 192.168.1.2, And the subdomain dns address is 192.168.1.3. The dns domain name is feng.com and the subdomain is test.feng.com. The computer name of the primary dns is server1.feng.com. The computer name of the secondary dns is slave.feng.com. The subdomain name is test.test.feng.com. Note the/etc/resolv. conf and/etc/nsswitch. conf files. The nameserver in the resolv. conf file must be the DNS itself, that is, the nameserver 192.168.1.2 of 192.168.1.1. The hosts file dns in the nsswitch. conf file must exist in the dns so that the dns can be correctly interpreted. Note that it is set for the client)

Tutorial steps:

1. Install the three RHEL5.4 systems, and then install the BIND package,

The preceding software packages are required for bind.

2. Build the primary dns and generate the named. conf file.

-P remains unchanged in the pwd path.

Modify the named. conf file

Modify the named file.

Then add named. rfc1912.zones

3. generate feng.com. zone, 192.168.1.zone, and cp-p localdomain under/var/named/chroot/var/named. zone feng.com. zone, cp-p name. zero 192.168.1.zone, and then changed

The above two files are dns data files, which are forward and reverse files respectively.

4. Restart the named service and test it with the client.

Service named restart and chkconfig named on start the service and add automatic start. Host server1.feng.com, host slave.feng.com, host test.test.feng.com

This is the forward query result of the dns Client.

The reverse Query Result of the DNS Client.

All tests are OK. The first part of DNS is basically completed.

Modify: Change 0.0.0.0 in named. conf to 192.168.1.1 to the IP address of the primary DNS,

Change none in allow-update {none;}; To any. If only one DNS is used, you do not need to change it.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.