Create named-checkzone Function

Put this at the end of your .bashrc function cz { zonefile=$1 zone=$(basename $zonefile .zone) named-checkzone $zone $zonefile } Then you will be able to use cz to check you zone files. Example: cbrown$ cz...

Compare Directories and Files with Diff

Sometimes working with a directory full of subdirectories and files you need to compare the directories and files to another version of the files.  This comes in extremely useful when restoring a hacked website.  To do this you need to have the old copy and the...

Changing Multiple Directory and File Permissions

After setting up your website it is always a good idea to change the directory and file permissions.  This makes it a little harder for an attacker to compromise your site.  For Joomla and WordPress it is best practice to set your directory permissions to 755 and your...

Fix Slow SSH Login (Ubuntu)

sudo echo “UseDNS no” >> /etc/ssh/sshd_config This prevents the server from doing a reverse DNS lookup on the IP address, which apparently takes forever sometimes.