It would be nice to not have to specify the domainName and tld seperate.
Currently I have created a function as follows;
get_MijnDomeinReseller(){
if [ -z "${1}" ]
then
echo "Missing domainName, correct syntax is;"
echo "${FUNCNAME[0]} google.com"
else
# split dns
tld=$(awk '{ print $(NF) }' FS=\\. <<<"${1}")
domainName=$(awk '{ print $(NF-1) }' FS=\\. <<<"${1}")
mdr dns info --domain "${domainName}" --tld "${tld}"
fi
}