如何在Ubuntu 16.04上安装Bind

Linux / BSD世界的De-Facto标准域名系统服务器绑定,易于在Ubuntu和任何其他分布上安装。 绑定将域名转换为IP地址主要,但有一些其他功能。 在Ubuntu 16.04上安装绑定如下:

在Ubuntu Server 16.04上安装Bind

与Ubuntu的桌面版本不同,我们的Ubuntu Server VPS映像将为您提供root命令行,因此您无需使用"sudo"以root运行命令。应之后的命令行执行这些命令 使用SSH连接到服务器.

如果您刚刚安装了Ubuntu,则应确保它是最新的:

apt-get update
apt-get upgrade

(在询问您是否要升级时按回车键)

然后可以安装BIND-BIND 9是Ubuntu 16.04中的版本:

apt install bind9

在你之后 在服务器上配置BIND (与CentOS的相同说明将在Ubuntu工作),您将想启动它:

systemctl start bind9.service

您可能还希望它在启动时启动

systemctl enable bind9.service

您可以通过以下方式查看状态

systemctl status bind9.service

在任何进一步的配置更改之后,您需要重新启动该服务:

systemctl restart bind9.service
10

发表回复