Install and configure mydns

Source: Internet
Author: User

MyDNS is a DNS server that uses the MySQL database as the background. It uses the data record format to replace the traditional DNS server in the configuration file format, such as BIND ). The installation, configuration, and management of the MyDNS server are easier to implement and understand. MyDNS reads records from the MySQL database. When a region or record is added, modified, or deleted, you do not need to restart or load the server. MyDNSConfig is a WEB-based MyDNS configuration interface that allows you to create all types of MyDNS records.

Installation steps:

1. Configure the network interface.
My host name is "server.a.com" and the IP address is 192.168.2.10.

2. Configure the lamp environment.
1: install required software:
# Yum install httpd mysql-server php-mysql php-mbstring-y

2: Start httpd and MySQL and set auto-start upon startup

# Service httpd start

# Chkconfig httpd on

# Service mysqld start

# Chkconfig mysqld on

3: Set the MySQL root User Password
# Mysqladmin-u root-p password "123"

3. Install MyDNSConfig

1. log on to MySQL and create a database, create a database user, and authorize
# Mysql-u root-p

Enter the administrator password '20140901'
Mysql> create database mydns;
Mysql> grant select, INSERT, UPDATE, delete on mydns. * TO 'mydn' @ 'localhost' identified by 'mydn ';
Mysql> grant select, INSERT, UPDATE, delete on mydns. * TO 'mydns' @ 'localhost. localdomain 'identified BY 'mydns ';
// The above two statements are used to create and authorize users.
Mysql> flush privileges;
Mysql> quit;

2. Download and install MyDNSConfig:
# Switch cd to the root directory
# Wget http://mesh.dl.sourceforge.net/s...Config-1.1.0.tar.gz
# Tar-zxvf MyDNSConfig-1.1.0.tar.gz
# Cd MyDNSConfig-1.1.0
# Mkdir/usr/share/mydnsconfig
# Cp-rf interface/*/usr/share/mydnsconfig/
# Ln-s/usr/share/mydnsconfig/web // var/www/html/mydnsconfig
3. Install MyDNSConfigMySQLDatabase
# Mysql-u root-p mydns <install/mydnsconfig. SQL
Enter the MySQLroot User Password '20140901 '.

4. Edit the configuration file of MyDNSConfig

Vim/usr/share/mydnsconfig/lib/config. inc. php

650) this. width = 650; "title =" 1.jpg" style = "float: none;" alt = "2112020.3.jpg" src =" http://www.bkjia.com/uploads/allimg/131228/0439341556-0.jpg "/>

650) this. width = 650; "title =" 2.jpg" style = "float: none;" alt = "236626656.jpg" src =" http://www.bkjia.com/uploads/allimg/131228/043934N54-1.jpg "/>

5. After completing the preceding settings, you can delete the MyDNSConfig source package.
# Cd ../
# Rm-rf MyDNSConfig-1.1.0/
# Rm-f MyDNSConfig-1.1.0.tar.gz

4. Install MyDNS
1. download and install the mydns-mysqlRPM package
# Wget http://mydns.bboy.net/download/mydns-mysql-1.1.0-1.i386.rpm
# Rpm-ivh mydns-mysql-1.1.0-1.i386.rpm

2. Start MyDNS and set Automatic startup

# Service mydns start

# Chkconfig mydns on
3. Edit the MyDNS configuration file

# Vim/etc/mydns. conf

650) this. width = 650; "title =" 3.jpg" style = "float: none;" alt = "211442544.jpg" src =" http://www.bkjia.com/uploads/allimg/131228/0439341K3-2.jpg "/>

650) this. width = 650; "title =" 4.jpg" style = "float: none;" alt = "211458205.jpg" src =" http://www.bkjia.com/uploads/allimg/131228/04393412c-3.jpg "/>
5. Open the URL in a browser: http:/192.168.2.10/mydnsconfig/
Log On with the default username and password. The default username and password are admin. You can change the user password in System> Users.

650) this. width = 650; "title =" 5.jpg" alt = "212920224.jpg" src =" http://www.bkjia.com/uploads/allimg/131228/0439341T4-4.jpg "/>

650) this. width = 650; "title =" 7.jpg" style = "float: none;" alt = "212758477.jpg" src =" http://www.bkjia.com/uploads/allimg/131228/0439341063-5.jpg "/>

This article from the "Life is short, do not ask what to wait" blog, please be sure to keep this source http://pjp5945.blog.51cto.com/7647561/1303203

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.