Domain Name Converts to IP Address When Visiting Page

When I try to access my OwnCloud server using my domain name, the page loads, but the URL is converted to the IP address. I’ve spent a couple of days trying to find a solution, with no luck. I am new to this, so I’m not sure what information is important in toubleshooting the issue.

Also, when I tried to activate Google Drive in OwnCloud, I got an error stating that raw IP addresses are not allowed.

Any suggestions would be greatly appreciated.

Thanks in advance.