Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind9+Mysql+mysql-bind搭建DNS服务器 #3

Open
AlexZ33 opened this issue Oct 25, 2019 · 1 comment
Open

Bind9+Mysql+mysql-bind搭建DNS服务器 #3

AlexZ33 opened this issue Oct 25, 2019 · 1 comment

Comments

@AlexZ33
Copy link
Member

AlexZ33 commented Oct 25, 2019

简介

DNS(Domain Name System,域名系统),是域名和IP地址互相映射的系统,通过主机名,最终得到该主机名对应的IP地址的过程叫做域名解析。

背景

测试环境wifi由于测试需要经常需要更改的DNS解析,之前的DNS服务器是windows服务器,每次修改都需要远程进DNS服务器,打开DNS管理,添加主机.不能批量操作,不能批量导入.一次增加好多域名的话实在是很烦人的事情.所以,问题来了.
刚开始想到的是改成linux服务器,使用bind9.搭建好之后发现它的数据是以文本存储的,也就是添加修改域名我都要去修改一个文本文件.这样的操作跟windows的操作其实差不多.不是很方便也容易出错。所以抛弃这个方案.
后来发现了bind-mysql,这是一个bind连接读取mysql数据的一个底层驱动,这样就可以将数据存储到mysql数据库中,添加或者域名就修改数据库即可.然后写一个web界面管理。

1、安装mysql数据库,yum源安装

yum install -y mysql-server mysql mysql-devel
@AlexZ33
Copy link
Member Author

AlexZ33 commented Oct 25, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant