Created
August 22, 2015 17:36
-
-
Save josecanciani/318b7d67b1e348c3003b to your computer and use it in GitHub Desktop.
mydns-ng compiling (step 2)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Part of the tutorial: https://medium.com/@josecanciani/mydns-ng-in-ubuntu-14-04-bf9b5ced659f