共有以下几个文件:
第一个。name.conf
## named.conf - configuration for bind
#
# Generated automatically by redhat-config-bind, alchemist et al.
# Any changes not supported by redhat-config-bind should be put
# in /etc/named.custom
#
options {
directory "/var/named/";
};
zone "."{
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa";
};
zone "10.168.192.in-addr.arpa" {
type master;
file "10.168.192.in-addr.arpa";
};
zone "localhost" {
type master;
file "localhost";
};
zone "company.com" {
type master;
file "company.com";
};
第二个。hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.10.112 dns12.company.com dns12
192.168.10.112 group2.company.com group2