Okie so this is sord of the final version, i've dropped the idea to verify the NS, i'll just do it myself with 'dig -t NS $1 +short' if it's the right one i'll know.
Code:
function dns ()
{
####################################
echo " "
echo DNS resolve:
echo " "
dig +nocmd +nostats +nocomments +noquestion $1
echo " "
echo Inregistrari MX:
echo " "
host -t mx $1
echo " "
echo "Sunt folosite urmatoarele NS-uri:"
echo " "
dig -t NS $1 +short
echo " "
####################################
}
Guys thanks for all the kind support. Be good!
@timmeke the information you give there makes me think of adding some improvements to my script, thanks a million times!