adding cmd arg for querytype, defaults to A record
add a bit of error handling for failed queries