Installing MyDNS And The MyDNSConfig Control Panel On CentOS 5.1
|
Submitted by falko (Contact Author) (Forums) on Mon, 2007-12-17 17:42. :: CentOS | Control Panels | DNS
Installing MyDNS And The MyDNSConfig Control Panel On CentOS 5.1Version 1.0 In this tutorial I will describe how to install and configure MyDNS and MyDNSConfig on CentOS 5.1. MyDNS is a DNS server that uses a MySQL database as backend instead of configuration files like, for example, Bind or djbdns. The advantage is that MyDNS simply reads the records from the database, and it does not have to be restarted/reloaded when DNS records change or zones are created/edited/deleted. A secondary nameserver can be easily set up by installing a second instance of MyDNS that accesses the same database or, to be more redundant, uses the MySQL master / slave replication features to replicate the data to the secondary nameserver. MyDNSConfig is an easy to use web-based interface to MyDNS. MyDNSConfig can create all types of DNS records that are available in MyDNS and adds features like user management and access privileges. I do not issue any guarantee that this will work for you!
1 Preliminary NoteIn this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate.
2 Installing The PrerequisitesFirst we enable the RPMforge repository on our CentOS system as some of the packages that we are going to install in the course of this tutorial are not available in the official CentOS 5.1 repositories: rpm -Uhv http://apt.sw.be/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm MyDNSConfig is a web-based interface to MyDNS written in PHP. This requires a webserver with PHP enabled and the MySQL database server. If you have already Apache, PHP and MySQL installed, you may skip this step. We also install phpMyAdmin here so that you have a web interface to the MySQL database in case you need it: yum install httpd mysql-server php php-mysql php-mbstring phpmyadmin Start MySQL: chkconfig --levels 235 mysqld on Then set passwords for the MySQL root account: mysqladmin -u root password yourrootsqlpassword Now we configure phpMyAdmin. We change the Apache configuration so that phpMyAdmin allows connections not just from localhost (by commenting out the <Directory "/usr/share/phpmyadmin"> stanza): vi /etc/httpd/conf.d/phpmyadmin.conf
Next we change the authentication in phpMyAdmin from cookie to http: vi /usr/share/phpmyadmin/config.inc.php
Then we create the system startup links for Apache and start it: chkconfig --levels 235 httpd on Now you can direct your browser to http://server1.example.com/phpmyadmin/ or http://192.168.0.100/phpmyadmin/ and log in with the user name root and your new root MySQL password.
3 Installing MyDNSConfigLog in to MySQL and create the database: mysql -u root -p CREATE DATABASE mydns; Replace the word mydnspassword in the above commands with a password of your choice. Download MyDNSConfig: cd /tmp Install MyDNSConfig: mkdir /usr/share/mydnsconfig Install the MyDNSConfig MySQL Database: mysql -u root -p mydns < install/mydnsconfig.sql The command above asks for a password, please enter the password of the MySQL root user. Edit the MyDNSConfig configuration; please make sure you fill in the correct database settings: vi /usr/share/mydnsconfig/lib/config.inc.php
Afterwards, remove the MyDNSConfig installer from the /tmp directory: cd /tmp
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com





print: 
Recent comments
12 hours 21 min ago
16 hours 45 min ago
19 hours 24 min ago
20 hours 45 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 2 hours ago
1 day 4 hours ago
1 day 4 hours ago
1 day 8 hours ago