GithubHelp home page GithubHelp logo

uglyliu / bind-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from guleng/bind-web

0.0 1.0 0.0 11.82 MB

Bind-DLZ + Flask + Mysql DNS管理平台

Python 0.31% CSS 14.20% JavaScript 1.79% Ruby 0.12% Makefile 0.05% HTML 83.52% Shell 0.01%

bind-web's Introduction

Bind-DLZ + Flask + Mysql DNS服务管理平台

系统环境:CentOS 7.4 X64

软件版本:

  bind-9.9.5.tar.gz  
  mysql-5.6.16.tar.gz

描述: 数据库安装就不在絮叨,了解运维的同学都应该知道

一.源码安装配置Bind:

1.yum安装

  yum  install  -y bind  mysql-server    mysql<br/>

2.配置Bind
vim /etc/named.conf

  options {<br/>
    listen-on port 53 { 192.168.10.1; };
    directory       "/etc/named";            #zone文件路径
    allow-query     { any; };
    recursion yes;
    dnssec-enable yes;

  };

  zone  "cdd.group" {
type  master;
file  "cdd.group.zone";
        notify yes;
    allow-transfer { 192.168.10.2; };
    also-notify { 192.168.10.2; };
    #allow-update { none; };
  };

保存退出

3.配置数据库,导入sql 文件

mysql -p   #登录数据库
mysql> CREATE DATABASE  named   CHARACTER SET utf8 COLLATE utf8_general_ci; 
mysql> source named.sql;             #注意路径,这里我放在当前目录
就两张表,一个dns用到的表,一个用户管理表

二.配置Bind-Web 管理平台

上传 Bind-web-1.0.tar.gz 管理平台

guleng # git  clone  https://github.com/guleng/Bind-Web.git  #git  克隆下来
guleng # cd Bind-Web
guleng # python  run.py     

运行软件程序使用flask框架写的,要用pip安装该框架

http://ip/5000   访问WEB 界面 登录账户 admin 密码 123456

功能有,用户管理,域名管理

#登录页面

#仪表盘

#域名解析页面,有添加删除功能

#添加页面,默认是前端的页面写入cdd.group的定语域名,Bind-Web-master/app/templates/named.html,需要的话更改默认值即可用!

改程序原理是web段显示的是从数据库里调出来的数据,而bind真正解析的是zone文件里的域名,数据库只是为了<br/>
web显示,第一次需要手动同步所有的zone文件里的和数据库里的域名,每次添加或删除时数据库的和文件里的都删除后<br/>
reload bind  service,而且每次更改时backup目录里做一次备份更改之前的备份,保证丢失记录<br/>

三BUG修改记录

更改原只支持数据库模式加支持文本配置模式<br/>
增加输入框的默认值<br/>
增加判断输入框的值是否有效功能<br/>
修复原添加不成功无报错bug加提示<br/>
修复二级域名的重复添加bug<br/>
增加id的增长与服务的reload方法<br/>
增加配置文件的备份函数<br/>
文字的修改与图片的更改<br/>
把添加域名的函数和添加用户的函数分开,原是同一个来着<br/>
增加数据库连接端口好指定配置<br/>
修复10行以上无法删除与修改bug<br/>
增加更新域名时重复和ip地址的有效性判断<br/>

bind-web's People

Contributors

guleng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.