• DNS主、从服务器的配置


    所有服务器:关闭防火墙和安全机制
    iptables -F
    systemctl stop firewalld
    setenforce 0

    配置yum源

    [root@ns2 ~]# umount -a

    [root@ns2 ~]# mount /dev/sr0 /media

    [root@ns2 ~]# cd /etc/yum.r*

    [root@ns2 yum.repos.d]# mv C* a/

    [root@ns2 yum.repos.d]# vim ./local.repo


    [cdrom]
    name=cdrom
    baseurl=file:///media/
    enabled=1
    gpgcheck=0

    [root@ns2 yum.repos.d]# yum -y clean all

     主服务器的配置:

    [root@localhost ~]# yum -y install bind

    [root@localhost ~]# vim /etc/resolv.conf 

     

    [root@localhost ~]# vim /etc/hosts

    [root@localhost ~]# vim /etc/named.conf 

     [root@localhost ~]# vim /var/named/crushlinux.zheng

     

    [root@localhost ~]# cp /var/named/crushlinux.zheng /var/named/crushlinux.fan

    [root@localhost ~]# vim /var/named/crushlinux.fan

    [root@localhost ~]# chown :named /var/named/crushlinux.*

    [root@localhost ~]# named-checkconf -z /etc/named.conf

    [root@localhost ~]# named-checkzone crushlinux.com /var/named/crushlinux.zheng 

    [root@localhost ~]# named-checkzone crushlinux.com /var/named/crushlinux.fan

    [root@localhost ~]# systemctl restart named

    从服务器配置:

    [root@localhost ~]# yum -y install bind
    [root@localhost ~]# cat /etc/resolv.conf

    [root@ns2 ~]# vim /etc/hosts

    [root@localhost ~]# cat /etc/named.conf 

     [root@ns2 ~]# systemctl restart named

  • 相关阅读:
    Hadoop之HDFS中HA的搭建
    HBase详细介绍
    HBase简介
    MapReduce工作原理介绍
    springMVC中的form:标签使用
    自定义fns
    db2数据建邦联-相当于Oracle数据库的dblink
    Oracle和db2数据库基础操作
    Linux学习之添加用户
    AMPQ 0-9-1学习笔记
  • 原文地址:https://www.cnblogs.com/990624lty-jhc/p/11369197.html
Copyright © 2020-2023  润新知