Installing MyDNS-NG & MyDNSConfig On Debian Squeeze
Installing MyDNS-NG & MyDNSConfig On Debian SqueezeThis tutorial is an updated copy from Installing MyDNS-NG & MyDNSConfig 3 On Debian Lenny tutorial. This tutorial will describe how to install and configure MyDNS-NG and MyDNSConfig 3 on Debian Squeeze. MyDNS-NG (based on MyDNS originally writen by Don Moore - http://mydns.bboy.net/) is a DNS server that uses a MySQL database as backend instead of configuration files. 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-NG. 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 MySQLWe can install MySQL as follows: aptitude install mysql-client mysql-server You will be asked the following questions: New password for the MySQL "root" user: <-- yourrootsqlpassword
3 Installing Apache2, PHP, phpMyAdminMyDNSConfig needs a web server with PHP support; therefore I install Apache2. I also install phpMyAdmin so that I can access the database later on over a web interface (although this is optional): aptitude install apache2 apache2-mpm-prefork imagemagick mcrypt php5 php-auth php5-gd php5-imagick php5-imap php5-mcrypt php5-mysql php-pear phpmyadmin vlogger You will see the following question: Web server to reconfigure automatically: <-- apache2 Then run the following command to enable the Apache modules suexec, rewrite, ssl, actions, and include: a2enmod suexec rewrite ssl actions include Restart Apache afterwards: /etc/init.d/apache2 restart You can now access phpMyAdmin under http://server1.example.com/phpmyadmin/ or http://192.168.0.100/phpmyadmin/.
4 Installing MyDNSBefore we install MyDNS, we need to install a few prerequisites: aptitude install build-essential libmysqlclient-dev MyDNS is not available in the Debian Squeeze repositories, therefore we have to build it ourselves as follows: cd /tmp Next we create the start/stop script for MyDNS: vi /etc/init.d/mydns #! /bin/sh Then we make the script executable and create the system startup links for it: chmod +x /etc/init.d/mydns
|

![Creative Commons Attribution License [Creative Commons Attribution License]](http://creativecommons.org/images/public/somerights20.gif)


Recent comments
18 hours 13 min ago
18 hours 19 min ago
23 hours 17 min ago
1 day 5 hours ago
1 day 6 hours ago
1 day 8 hours ago
1 day 12 hours ago
1 day 19 hours ago
1 day 22 hours ago
2 days 29 min ago