一、配置阿里云yum源
执行脚本配置阿里云的yum源,已配置yum源的可以忽略
#!/bin/bash
- Author : Lchen
- Email : chn1970@qq.com
- Create Time : 2020-10-13 10:00
- Description : Configure alicloud Yum source
- Version : V1.0
- Last modified : 0000-00-00 00:00
- Blog Site: : https://www.cnblogs.com/lcxhk/p/14109408.html
cd /etc/yum.repos.d/
test -d bak || mkdir bak && mv * bak
wget http://mirrors.aliyun.com/repo/Centos-7.repo
wget http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum repolist
二、安装bind
yum install -y bind bind-chroot bind-utils
named服务配置文件说明:
主配置文件/etc/named.conf
定义zone的配置文件/etc/named.rfc1912.zones
域zone配置文件/var/named/
三、修改主配置文件
主要修改的有三处:
修改监听
找到listen-on port 53 { 127.0.0.1; };将127.0.0.1改为本机IP
注释