Giter VIP home page Giter VIP logo

dnsmasqweb's Introduction

DNSmasqWeb

基于DNSmasq的开源轻量级DNS解析、DHCP地址分配的开源系统

Desgin By Xiaok

【Python运维圈】微信公众号

Python运维圈

也可以微信搜索 Python运维圈

技术交流QQ群

459457262

加群时请注明来自 Github

一、应用说明

  • 本系统可同时提供DNS解析功能和DHCP地址分配功能
  • 本系统可以用于机房内网、公司内网、家庭内网等类似内部网络环境
  • 系统基于DNSmasq,Web端基于Python语言和Tornado框架

二、运行环境

  • OS:RHEL 6.5 x64
  • Python:2.7.8
  • DnsMasq:2.72
  • Tornado:4.0.2
  • Jinja2:2.7.3

注意:以上是测试运行正常的环境,其他环境请自行测试

三、DNSmasq配置说明

  • 常规安装(版本:2.48)

yum -y install dnsmasq

chkconfig dnsmasq on

  • 编辑安装(版本:2.72)

wget http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.72.tar.gz

tar zxf dnsmasq-2.72.tar.gz

cd dnsmasq-2.72

vim Makefile

PREFIX = /usr/local/dnsmasq

make && make install

cp dnsmasq.conf.example /etc/dnsmasq.conf

ln -s /usr/local/dnsmasq/sbin/dnsmasq /usr/sbin/

dnsmasq --version

  • 主配文件:/etc/dnsmasq.conf

resolv-file=/etc/dnsmasq.resolv.conf

addn-hosts=/etc/dnsmasq.hosts

conf-dir=/etc/dnsmasq.d

四、Web配置

  • 安装Tornado

easy_install tornado

  • 安装jinja2

easy_install tornado

  • 安装数据库驱动

yum -y install MySQL-python

easy_install torndb

  • 导入数据库文件

mysql> create database xk_dnsmasq;

mysql> use xk_dnsmasq;

mysql> source xk_db_sql/xk_dnsmasq.sql;

  • 配置Web

cp xk_config/xk_setting.sample.py xk_config/xk_setting.py

在文件xk_config/xk_setting.py设置MySQL的主机、端口、用户名、密码

  • 启动Web端

python run.py

默认用户名/密码:admin/admin

默认端口:9886

五、截图

  • 登录页面

DnsMasqWeb Login

  • 控制中心

DnsMasqWeb Dashboard

  • 域名管理

DnsMasqWeb Domain

  • DNS记录管理

DnsMasqWeb Record

  • DHCP管理

DnsMasqWeb DHCP

dnsmasqweb's People

Contributors

luxiaok 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.