sed help - remove a period from a domain name

I have this code that parses the output of a reverse dns lookup to a domain name

nslookup $IP | sed -n 's/.*arpa.*name = \(.*\)/\1/p'

But my ouput is always

randomsite.com.

Notice the period tacked on to the end. How do I correct this so it is just

randomsite.com

Thank you.

nslookup $IP | sed -n 's/.*arpa.*name = \(.*\).$/\1/p'