{"id":21581484,"url":"https://github.com/luxiaok/dnsmasqweb","last_synced_at":"2025-09-07T02:41:33.942Z","repository":{"id":23619510,"uuid":"26988939","full_name":"luxiaok/DNSmasqWeb","owner":"luxiaok","description":"基于DNSmasq的DNS解析、以及DHCP地址分配系统","archived":false,"fork":false,"pushed_at":"2017-09-30T06:29:41.000Z","size":459,"stargazers_count":219,"open_issues_count":10,"forks_count":96,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-05-07T13:06:40.875Z","etag":null,"topics":["dhcp","dns","dnsmasq","jinja2","python","tornado"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luxiaok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-22T04:46:23.000Z","updated_at":"2025-02-11T03:07:38.000Z","dependencies_parsed_at":"2022-08-22T02:31:18.350Z","dependency_job_id":null,"html_url":"https://github.com/luxiaok/DNSmasqWeb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxiaok%2FDNSmasqWeb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxiaok%2FDNSmasqWeb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxiaok%2FDNSmasqWeb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxiaok%2FDNSmasqWeb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luxiaok","download_url":"https://codeload.github.com/luxiaok/DNSmasqWeb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252883204,"owners_count":21819160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dhcp","dns","dnsmasq","jinja2","python","tornado"],"created_at":"2024-11-24T14:12:41.818Z","updated_at":"2025-05-07T13:06:47.437Z","avatar_url":"https://github.com/luxiaok.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"DNSmasqWeb\n==========\n\n基于DNSmasq的开源轻量级DNS解析、DHCP地址分配的开源系统\n\nDesgin By [Xiaok](http://github.luxiaok.com)\n\n\n## 【Python运维圈】微信公众号 ##\n\n![Python运维圈](https://raw.githubusercontent.com/luxiaok/SaltAdmin/master/static/images/ops_circle_qrcode.jpg)\n\n\u003e也可以微信搜索 **Python运维圈**\n\n\n## 技术交流QQ群 ##\n\n**459457262**\n\n\u003e加群时请注明来自 **Github**\n\n\n## 一、应用说明 ##\n* 本系统可同时提供DNS解析功能和DHCP地址分配功能\n* 本系统可以用于机房内网、公司内网、家庭内网等类似内部网络环境\n* 系统基于DNSmasq，Web端基于Python语言和Tornado框架\n\n## 二、运行环境 ##\n* OS：RHEL 6.5 x64\n* Python：2.7.8\n* DnsMasq：2.72\n* Tornado：4.0.2\n* Jinja2：2.7.3\n\n注意：以上是测试运行正常的环境，其他环境请自行测试\n\n## 三、DNSmasq配置说明 ##\n* 常规安装（版本：2.48）\n\n`yum -y install dnsmasq`\n\n`chkconfig dnsmasq on`\n\n* 编辑安装（版本：2.72）\n\n`wget http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.72.tar.gz`\n\n`tar zxf dnsmasq-2.72.tar.gz`\n\n`cd dnsmasq-2.72`\n\n`vim Makefile`\n\n`PREFIX = /usr/local/dnsmasq`\n\n`make \u0026\u0026 make install`\n\n`cp dnsmasq.conf.example /etc/dnsmasq.conf`\n\n`ln -s /usr/local/dnsmasq/sbin/dnsmasq /usr/sbin/`\n\n`dnsmasq --version`\n\n* 主配文件：/etc/dnsmasq.conf\n\n`resolv-file=/etc/dnsmasq.resolv.conf`\n\n`addn-hosts=/etc/dnsmasq.hosts`\n\n`conf-dir=/etc/dnsmasq.d`\n\n## 四、Web配置 ##\n* 安装Tornado\n\n`easy_install tornado`\n\n* 安装jinja2\n\n`easy_install tornado`\n\n* 安装数据库驱动\n\n`yum -y install MySQL-python`\n\n`easy_install torndb`\n\n* 导入数据库文件\n\n`mysql\u003e create database xk_dnsmasq;`\n\n`mysql\u003e use xk_dnsmasq;`\n\n`mysql\u003e source xk_db_sql/xk_dnsmasq.sql;`\n\n* 配置Web\n\n`cp xk_config/xk_setting.sample.py xk_config/xk_setting.py`\n\n在文件xk_config/xk_setting.py设置MySQL的主机、端口、用户名、密码\n\n* 启动Web端\n\n`python run.py`\n\n默认用户名/密码：admin/admin\n\n默认端口：9886\n\n## 五、截图 ##\n\n* 登录页面\n\n![DnsMasqWeb Login](https://github.com/luxiaok/DNSmasqWeb/raw/master/xk_screenshot/xk_login.png)\n\n* 控制中心\n\n![DnsMasqWeb Dashboard](https://github.com/luxiaok/DNSmasqWeb/raw/master/xk_screenshot/xk_dashboard.png)\n\n* 域名管理\n\n![DnsMasqWeb Domain](https://github.com/luxiaok/DNSmasqWeb/raw/master/xk_screenshot/xk_domain.png)\n\n* DNS记录管理\n\n![DnsMasqWeb Record](https://github.com/luxiaok/DNSmasqWeb/raw/master/xk_screenshot/xk_record.png)\n\n* DHCP管理\n\n![DnsMasqWeb DHCP](https://github.com/luxiaok/DNSmasqWeb/raw/master/xk_screenshot/xk_dhcp.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluxiaok%2Fdnsmasqweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluxiaok%2Fdnsmasqweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluxiaok%2Fdnsmasqweb/lists"}