The essence of DNS Intelligent Resolution: the dns server returns different results based on different sources
The most basic function of DNS policy resolution is to intelligently identify the users who access your website, and resolve your domain names to different IP addresses based on different visitors. If the visitor is a Netcom user, the DNS policy resolution server will resolve the IP address of your domain name to this visitor. The DNS policy resolution server will resolve the Telecom IP address corresponding to your domain name to this visitor.
Experimental environment: the dns server is implemented on the CentOS6.4 32-bit operating system, and an H3C firewall is used in the middle. The Internet is simulated by a PC.
In this experiment, mysql-5.5.15-linux2.6-i686.tar.gz can be downloaded from the official mysql website www.mysql.com. bind-9.8.6-p1.tar.gz
The network topology is as follows:
Expected results: the address resolved by the intranet user is 192.168.80.12, and the address parsed by the Internet address is 61.130.130.1.
[Root @ localhost ~] # Tar-zxvf mysql-5.5.15-linux2.6-i686.tar.gz-C/usr/local/
Decompress the source code to the/usr/local/directory.
[Root @ localhost ~] # Cd/usr/local/
[Root @ localhost local] # ln-s mysql-5.5.15-linux2.6-i686 mysql
Go to the extracted directory and create a shortcut for this directory for ease of access
[Root @ localhost local] # cd mysql
[Root @ localhost mysql] # vim INSTALL-BINARY
Go to the mysql directory, and there is an INSTALL-BINARY file in it. This is an installation help document. You can see the following steps:
[Root @ localhost ~] # Groupadd mysqlsts
[Root @ localhost ~] # Useradd-r-g mysql
Create a mysql group and add an account mysql
[Root @ localhost mysql] # chown-R mysql.
[Root @ localhost mysql] # chgrp-R mysql.
Change the owner of all files and all groups to mysql.
[Root @ localhost mysql] # scripts/mysql_install_db -- user = mysql
Initialize the database as an SQL user
[Root @ localhost mysql] # chown-R root.
[Root @ localhost mysql] # chown-R mysql data
Change the owner and all groups back.
[Root @ localhost mysql] # cp support-files/my-medium.cnf/etc/my. cnf
Copy support-files/my-medium.cnf to/etc/my. cnf, whether to overwrite select y.
[Root @ localhost mysql] # cp support-files/mysql. server/etc/init. d/mysqld
[Root @ localhost mysql] # chmod a + x/etc/init. d/mysqld
Grant the execution permission to mysqld
[Root @ localhost mysql] # service mysqld start
Start the service mysqld.
An error is found:
If this error occurs, run the command again:
[Root @ localhost mysql] # chown-R mysql.
[Root @ localhost mysql] # chgrp-R mysql.
[Root @ localhost mysql] # scripts/mysql_install_db -- user = mysql
[Root @ localhost mysql] # chown-R root.
[Root @ localhost mysql] # chown-R mysql data
The two steps copied later do not need to be redone. Then the mysqld service starts again and runs successfully!
[Root @ localhost mysql] # netstat-tupln | grep 3306
Check whether the mysqld port is enabled
The port has been opened.
[Root @ localhost mysql] # chkconfig -- add mysqld
[Root @ localhost mysql] # chkconfig mysqld on
Set mysqld to start automatically at startup.
[Root @ localhost mysql] # vim/etc/profile
PATH = $ PATH:/usr/local/mysql/bin
To facilitate the use of the binfile in the directory, add it to the system file:
[Root @ localhost mysql] #./etc/profile
Re-read the profile file: (you can log on again)
[Root @ localhost mysql] # mysqladmin-u root-p password '000000' and press ENTER
Create an administrator user for mysql with a password of 123
Mysql has been installed.
RHEL6 server build DNS Server
Linux RHEL 6.x DNS Server
Ubuntu DNS Server Configuration
Configure DNS server in Solaris
Use MySQL and DNS view for intelligent DNS in CentOS 6.3 x64