Redhat Linux bind fast install _unix Linux

Source: Internet
Author: User
Tags bind nslookup
1. Use the CD-ROM from the package, install the following package:
Bind
Bind-utils
Bind-libs
(Rpm-i xxx.rpm)

2.
Set the named service to self-boot
(using tools such as Ntsysv,chkconfig)

3.
Suppose you need to parse bcomcn.com, as follows:

Cd/var/named
CP Localdomain.zone Bcomcn.zone
VI Bcomcn.zone


$TTL 86400
@ in SOA ns.bcomcn.com. Root.bcomcn.com. (
200612230; Serial
28800; Refresh
14400; Retry
3600000; Expire
86400); Minimum
In NS ns.bcomcn.com.
In MX ten mail.bcomcn.com.
Ns.bcomcn.com. In A 192.168.1.5
Mail.bcomcn.com. In A 192.168.1.5
Www.bcomcn.com. In A 192.168.1.5


Note that the host name with "Dot", said to be a full host, without a point, said also to add the current domain name, such as: mail.bcomcn.com. = Mail

CP Localdomain.zone 192.zone
VI 192.zone


$TTL 86400
@ in SOA localhost. Root.bcomcn.com. (
200612230; Serial
28800; Refresh
14400; Retry
3600000; Expire
86400); Minimum
In NS localhost.
5 in PTR www.bcomcn.com.



4. Modify/etc/named.conf and add:


Zone "Bcomcn.com" in {
Type master;
File "Bcomcn.zone";
allow-update {none;};
};
Zone "1.168.192.in-addr.arpa" in {
Type master;
File "192.zone";
allow-update {none;};
};



Start named, set the DNS server for this computer to native, use Nslookup, or other tools to detect:

Nslookup
> Set TYPE=MX
> bcomcn.com

(You can see if/var/log/message checks whether the named is starting correctly, and whether a domain resolution is loaded.)

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.