当前位置: 首页 > 工具软件 > NamedManager > 使用案例 >

部署DNS管理工具--namedmanager

慕祯
2023-12-01

参考文档:

http://docstore.mik.ua/orelly/networking_2ndEd/dns/ch07_01.htm

https://github.com/huangyingcai/namedweb#readme

https://projects.jethrocarr.com/p/oss-namedmanager/page/Installation-RPM/

http://wiki.deimos.fr/NamedManager_:_une_interface_web_agr%C3%A9able_pour_administrer_Bind

操作系统: CentOS_x64

主机名:bogon

IP:192.168.1.245

1、安装服务及依赖软件包

yum -y install httpd mysql mysql-libs mysql-server php php-mysql bind

2、将服务加入启动

chkconfig --level 35 httpd on; chkconfig --level 35 named on; chkconfig --level 35 mysqld on

3、生成key

rndc-confgen -r /dev/urandom -a

chown named.named /etc/rndc.key

4、启动服务

service httpd start; service named start; service mysqld start

5、初始化MySQL密码

mysqladmin -u root password 'root'

6、下载远程仓库配置文件,安装管理软件,并设置启动

cd /etc/yum.repos.d/

wget http://repos.amberdms.com/config/centos/6/amberdms-c6-public.repo

# cp CentOS-Base.repo.bak CentOS-Base.repo

yum install -y namedmanager-www namedmanager-bind

chkconfig --level 35 namedmanager_logpush on

chown named.root /etc/named.namedmanager.conf

7、初始化数据

cd /usr/share/namedmanager/resources/

./autoinstall.pl

8、加入定时任务

* * * * * php -q /usr/share/namedmanager/bind/namedmanager_bind_configwriter.php >> /var/log/namedmanager_bind_configwriter

9、修改配置文件

/etc/named.conf

  • listen-on port 53 { 127.0.0.1; }; --> listen-on port 53 { any; };

  • allow-query { localhost; }; --> allow-query { any; };

  • dnssec-enable yes; --> dnssec-enable no;

  • dnssec-validation yes; --> dnssec-validation no;

  • [add]
    • forwarders {
      • 219.141.136.10;
      • 219.141.140.10;
      };
    • include "/etc/named.namedmanager.conf";

/etc/namedmanager/config-bind.php

10、通过WEB访问控制 https:// 192.168.1.245 /namedmanager/index.php 默认用户名和密码分别为: setup 和setup123
 类似资料: