First we install the bind-9.3.3-7.el5.i386.rpmcaching-nameserver-9.3.3-7.el5.i386.rpm packages. We will not briefly describe the basic configuration of Bind here. I have written it in space. Edit named. caching-nameserver.conf we add such an acl below "wangtong" {192.168.1.0/24;}; First we install the bind-9.3.3-7.el5.i386.rpm caching-nameserver-9.3.3-7.el5.i386.rpm packages. We will not briefly describe the basic configuration of Bind here. I have written it in space.
Edit named. caching-nameserver.conf
Add such a paragraph below
Acl "wangtong" {192.168.1.0/24 ;}; // you can change the ip address segment in the URL to the ip address segment of China Netcom.
View "wangtong "{
Match-clients {"wangtong ";};
Recursion yes; // whether iteration is allowed.
Include "/etc/named. rfc1912.zones"; // all the world's root addresses are included in this file.
Zone "yueyang.com" {// This is the same as the primary configuration file. It is not hard to understand.
Type master;
File "yueyang.com ";
};
};
View "all "{
Match-clients {any ;}; // any indicates that all do not match.
Recursion yes;
Include "/etc/named. rfc1912.zones ";
Zone "yueyang.com "{
Type master;
File "yueyang.com. ";
};
};
Then we edit/var/named/yueyang.com and/var/named/yueyang.com..
Add different A records.
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