Ubuntu搭建DNS服务

一、Bind9域名解析服务器配置流程

1. 安装Bind9(当前节点IP:192.168.8.31)

打开终端,执行以下命令来更新系统包列表并安装Bind9:

apt-get update  
apt-get install bind9 bind9utils bind9-doc

这些命令会安装Bind9服务器及其工具集和文档。

2. 配置Bind9

Bind9的配置文件主要位于/etc/bind/目录下,包括named.conf.options、named.conf.local等。

named.conf.options:该文件包含全局配置选项,如日志设置、转发器配置等。
使用文本编辑器(如nano或vim)打开并编辑该文件:

vim  /etc/bind/named.conf.options
options {
   
   
        directory "/var/cache/bind";

        // If there is a firewall between you and nameservers you want
        // to talk to, you may need to fix the firewall to allow multiple
        // ports to talk.  See http://www.kb.cert.org/vuls/id/800113

        // If your ISP provided one or more IP addresses for stable
        // nameservers, you probably want to use them as forwarders.
        // Uncomment the following block, and insert the addresses replacing
        // the all-0's placeholder.

        // forwarders {
   
   
        //      0.0.0.0;
        // };

        //====================
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值