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 mpl.com.zone

Leave a Reply

Your email address will not be published. Required fields are marked *