• rndc


    配置rndc.conf 命令:rndc-confgen > /etc/bind/rndc.conf

    自动生成rndc.conf,内容如下:

    # Start of rndc.conf key "rndc-key" {    

      algorithm hmac-md5;    

      secret "oYV+NSAXam5nY1xa++tElQ==";

    };
    options {    

      default-key "rndc-key";    

      default-server 127.0.0.1;    

      default-port 953;

    };

    # End of rndc.conf
    # Use with the following in named.conf, adjusting the allow list as needed:

    # key "rndc-key" {

    #     algorithm hmac-md5;

    #     secret "oYV+NSAXam5nY1xa++tElQ==";

    # };

    #

    # controls {

    #     inet 127.0.0.1 port 953

    #         allow { 127.0.0.1; } keys { "rndc-key"; };

    # }; # End of named.conf

    这个文件里面有两段,把上面蓝色那段保留,把绿色那段剪切到named.conf文件的最下边
    (3)重新启动named #/etc/init.d/named restart

    BIND 9 rndc 的命令

    以下列表介绍 rndc 命令。命令前面要加 rndc    (OK) 直接输入rndc查看帮助
    reload                 重新装入配置文件和区域
    reload zone [class [view]]         重新装入单个区域
    refresh zone [class [view]]        安排区域的立即维护
    reconfig               仅重新装入配置文件和新区域
    stats                  将服务器统计信息写入统计文件中
    querylog               切换查询日志
    dumpdb                 将高速缓存转储到转储文件 (named_dump.db)
    stop                   将暂挂更新保存到主文件并停止服务器
    halt                   停止服务器,但不保存暂挂更新
    trace                  将调试级别增加一级
    trace level            更改调试级别
    notrace                将调试级别设置为 0
    flush                  刷新服务器的所有高速缓存
    flush [view]           为某一视图刷新服务器的高速缓存
    status                 显示服务器的状态
    restart                重新启动服务器(尚未实现
  • 相关阅读:
    BZOJ 4358 坑 莫队+线段树 死T
    BZOJ 4321 DP
    两倍问题
    通宵教室
    [编程题]字符串模式匹配
    [编程题]表达式求值
    [编程题]美团骑手包裹区间分组
    1153 Decode Registration Card of PAT
    1154 Vertex Coloring
    1155 Heap Paths
  • 原文地址:https://www.cnblogs.com/wangyongbin/p/3712128.html
Copyright © 2020-2023  润新知