cd /usr/lib
ln -s libmysqlclient.so.15.0.0 libmysqlclient.so.12
apt-get install libz-dev
apt-get install libmysqlclient15-dev phpmyadmin
get mydns from http://mydns.bboy.net/download/
extract ; change into directory
./configure --with-mysql-lib=/usr/lib
make
make install
make conf
---change host, username and passwd
$ mysqladmin -h localhost -u root -p create mydns
$ mydns --create-tables | mysql -h host -u username -p mydns
on phpmyadmin create a non-root user and grant him all privleges on mydns database....
change details in /etc/mydns.conf
in the cource code
cd contrib
chmod u+x *
./create_domain.pl --domain=lo.org ip=172.16.0.100 --create
Now go into mydns database in phpmyadmin and edit your host entries in table 'rr'.
to create another domain use create_domain.pl script in contrib
########mydns init file##########################
#! /bin/sh
#
# mydns Start the MyDNS server
#
# Author: Falko Timme.
#
set -e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME=mydns
DAEMON=/usr/local/sbin/$NAME
DESC="DNS server"
SCRIPTNAME=/etc/init.d/$NAME
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
$DAEMON --background
echo "."
;;
stop)
echo "Stopping $DESC: $NAME."
kill -9 `pidof $NAME` &> /dev/null
;;
restart)
echo "Restarting $DESC: $NAME."
$0 stop && sleep 1
$0 start
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart}" >&2
exit 1
;;
esac
exit 0
####################################
