I'm trying to check if my DNS TXT entry has propagated so I wrote this simple loop, but I'm getting an error from the host command and I've tried many different syntaxes but all seem wrong.
while [[ ($basednsentry != $basehost) ]]; do
$basehost=$(host -t TXT "$basednsname")
sleep 1m
done