You could try something like this:
echo 'maps.google.com' | rev | cut -d'.' -f 1 | rev
Explanation
revreverses “maps.google.com” to bemoc.elgoog.spamcutuses dot (ie ‘.’) as the delimiter, and chooses the first field, which ismoc- lastly, we reverse it again to get
com