Skip to content

Instantly share code, notes, and snippets.

@josecanciani
Created August 22, 2015 17:36
Show Gist options
  • Save josecanciani/318b7d67b1e348c3003b to your computer and use it in GitHub Desktop.
Save josecanciani/318b7d67b1e348c3003b to your computer and use it in GitHub Desktop.
mydns-ng compiling (step 2)
# extract code (download from mydns-ng site first)
cd /tmp
tar zxvf mydns-1.2.8.31.tar.gz
cd mydns-1.2.8.31
# depeding on your architecture, provide different lib paths
if [ -d /usr/lib/x86_64-linux-gnu ]
then
./configure — with-mysql-lib=/usr/lib/x86_64-linux-gnu — with-zlib=/lib/x86_64-linux-gnu
else
./configure — with-mysql-lib=/usr/lib/i386-linux-gnu — with-zlib=/usr/lib/i386-linux-gnu
fi
# compile, install, create config file
make
make install
make conf
# copy and edit accordingly
cp mydns.conf /etc
cp mydns.init /etc/init.d/mydns
chmod 600 /etc/mydns.conf # protect passwords!
# Use new password for mydns user: sql> SET PASSWORD FOR ‘mydns’@’%’ = PASSWORD(‘mydns***’);
echo “Adding symlinks to enable mydns as a service”
update-rc.d mydns defaults 99 10
update-rc.d mydns enable 235
@josecanciani
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment