Article Title: Linux-Bind-DNS server configuration case. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
On Linux, how can I quickly configure a DNS server? Many network administrators find it troublesome. I will summarize the following case study methods in my practice.
Case: The domain name of a certain organization is avnads.cn, the address of the www host is 192.168.1.1, and the address of the DNS server is 192.168.1.100.
Steps:
1. Install the bind software package:
# Rpm? Qa | grep bind
# Mount/mnt/cdrom
# Cd/mnt/cdrom/RedHat/RPMS
# Rpm? Ivh bind-9.2.1-16.i386.rpm
# Rpm? Ivh bind-utils-9.2.1-16.i386.rpm
# Rpm? Ivh redhat-config-bind-1.9.0-13.noarch.rpm
# Rpm? Ivh caching-nameserver-7.2.-7. noarch. rpm
2. Edit the main configuration file:
# Vi/etc/named. conf
Options {
Directory "/var/named ";
};
Controls {
Inet 127.0.0.1 allow {localhost;} keys {rndckey ;};
};
Zone "." IN {
Type hint;
File "named. ca ";
};
Zone "localhost" IN {
Type master;
File "localhost. zone ";
Allow-update {none ;};
};
Zone "0.0.127.in-addr. arpa" IN {
Type master;
File "named. local ";
};
Include "/etc/rndc. key ";
// The content below is my configuration
Zone "seogate.cn" IN {
Type master;
File "seogate.cn. hosts ";
Allow-update {none ;};
};
Zone "1.168.192.in-addr. arpa" IN {
Type master;
File "192.168.1.rev ";
Allow-update {none ;};
};
[1] [2] Next page