https://copr.fedorainfracloud.org/coprs/isc/bind/
安装过程
下载repo文件
curl https://copr.fedorainfracloud.org/coprs/isc/bind/repo/epel-7/isc-bind-epel-7.repo -o /etc/yum.repos.d/isc-bind-epel-7.repo
安装isc-bind
yum install isc-bind
Dependencies Resolved
==============================================================================================================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================================================================================================
Installing:
isc-bind x86_64 1:2-3.el7 copr:copr.fedorainfracloud.org:isc:bind 2.8 k
Installing for dependencies:
audit-libs-python x86_64 2.8.5-4.el7 os 76 k
checkpolicy x86_64 2.5-8.el7 os 295 k
isc-bind-bind x86_64 9.16.21-1.1.el7 copr:copr.fedorainfracloud.org:isc:bind 5.3 M
isc-bind-bind-libs x86_64 9.16.21-1.1.el7 copr:copr.fedorainfracloud.org:isc:bind 1.2 M
isc-bind-bind-utils x86_64 9.16.21-1.1.el7 copr:copr.fedorainfracloud.org:isc:bind 176 k
isc-bind-fstrm x86_64 0.6.1-3.el7 copr:copr.fedorainfracloud.org:isc:bind 24 k
isc-bind-fstrm-utils x86_64 0.6.1-3.el7 copr:copr.fedorainfracloud.org:isc:bind 41 k
isc-bind-libevent x86_64 2.1.12-4.el7 copr:copr.fedorainfracloud.org:isc:bind 251 k
isc-bind-libuv x86_64 1:1.41.0-2.el7 copr:copr.fedorainfracloud.org:isc:bind 152 k
isc-bind-protobuf-c x86_64 1.3.3-8.el7 copr:copr.fedorainfracloud.org:isc:bind 34 k
isc-bind-runtime x86_64 1:2-3.el7 copr:copr.fedorainfracloud.org:isc:bind 15 k
libcgroup x86_64 0.41-21.el7 os 66 k
libsemanage-python x86_64 2.5-14.el7 os 113 k
policycoreutils-python x86_64 2.5-34.el7 os 457 k
python-IPy noarch 0.75-6.el7 os 32 k
setools-libs x86_64 3.3.8-4.el7 os 620 k
Transaction Summary
==============================================================================================================================================================================================================================================================================
Install 1 Package (+16 Dependent packages)
命令会安装一系列软件包,最重要的是:
-
isc-bind-bind
,包含了named
二进制文件,rndc
工具, DNSSEC 功能,以及相关的配置/系统文件。 -
isc-bind-bind-utils
,包含了其他的 BIND 功能,最重要的比如dig
、nsupdate
。
配置文件:/etc/opt/isc/isc-bind/named.conf
命令参数:/etc/opt/isc/isc-bind/sysconfig/named
启动服务
启动服务
systemctl start isc-bind-named
开机启动
systemctl enable isc-bind-named
named.conf 范例
options {
listen-on { 127.0.0.1;10.41.100.3;};
listen-on-v6 { ::1; };
directory "/named/data";
allow-query { any; }; #开放查询
recursion yes; #允许递归
dnssec-validation no;
forward only;
forwarders{
183.60.83.19; #腾讯云VPC环境下默认DNS地址(直接cat /etc/resolv.conf 获取)
183.60.82.98; #腾讯云VPC环境下默认DNS地址
};
};
logging {
channel default_debug {
file "named.run";
print-time yes;
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
include "/named/named.rfc1912.zones";
网友评论