namedmanager搭建过程及配置

Posted MeFeng

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了namedmanager搭建过程及配置相关的知识,希望对你有一定的参考价值。

1 安装
yum install httpd php-soap php-xml php-ldap php-common php-cli php-mysql php-intl php-process php-pdo php mysql-server mysql-devel mysql-libs mysql -y
yum install bind-libs bind bind-sdb bind-devel bind-dyndb-ldap bind-utils -y
yum install namedmanager-bind namedmanager-www -y
数据库设置mysqladmin -u root password 123qwe
cd /usr/share/namedmanager/resources/
./autoinstall.pl      #输入mysql的root用户的passwd
2修改配置文件
cat /etc/named.conf
 
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { any; };
recursion yes;
forwarders { 114.114.114.114; 223.6.6.6; 8.8.8.8; 202.106.0.20; };
dnssec-enable yes;
dnssec-validation yes;
 
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
 
managed-keys-directory "/var/named/dynamic";
};
 
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
 
zone "." IN {
type hint;
file "named.ca";
};
 
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
include "/etc/named.namedmanager.conf";
 
cat /etc/namedmanager/config-bind.php
$config["api_url"] = "https://192.168.150.245/namedmanager"; // Application Install Location
$config["api_server_name"] = "bind-dns-245.istarshine.net.cn"; // Name of the DNS server (important: part of the authentication process)
$config["api_auth_key"] = "namedkey"; // API authentication key
 
cat /etc/namedmanager/config.php
 
$config["db_host"] = "localhost"; // hostname of the MySQL server
$config["db_name"] = "namedmanager"; // database name
$config["db_user"] = "root"; // MySQL user
$config["db_pass"] = "123qwe"; // MySQL password (if any)
访问https://192.168.150.245/namedmanager/ 用户 setup 密码setup123

 

 

 

 

 

 这里必须把机器本机做DNS解析不然不成功
添加解析更新慢 重启crond
php -q /usr/share/namedmanager/bind/namedmanager_bind_configwriter.php

以上是关于namedmanager搭建过程及配置的主要内容,如果未能解决你的问题,请参考以下文章

虚拟机搭建redis单机版及redis-cluster,使用redis desktop manager和java(eclipse)连接redis过程遇到问题汇总

Linux下DNS服务(Bind9)之Web管理利器-NamedManager部署说明

springboot入门(项目搭建及基本配置)

MySQL高可用架构之MHA(理论+部署+故障模拟)

开源仓库Harbor搭建及配置过程

DNS web管理之NamedManager