display domain name for forwarded url

Posted July 11, 2018 1.1k views
DNSUbuntu 16.04

I want to keep my email at my provider, but I want to direct web traffic to my droplet.

My current setup is keeping the provider’s name servers (so everything stays there) and forwarding web traffic to my droplets ip. That works, but only problem is I see the ip address instead of the domain name (logically). And I imagine I will run into trouble in the future, as soon as I start fiddling with ftp and such…

Any ideas how I can make this happen properly? Is it possible to replace the name servers by the digital ocean nameservers and then somehow forward email back to my provider?

Many thanks!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hello friend!

If you are seeing an IP in the URL bar when visiting the site, the most common scenario in which this occurs is when you are running Wordpress and it is configured to see that IP as it’s URL. If that sounds like it may be your situation, check out this guide on changing the URL configured in Wordpress:

Kind Regards,

  • Hi Jarland,

    Thanks for your reply, but that’s not the problem. I have a laravel site. But apart from that, I think this is really a DNS / domain management thingy.

    I know I can make the domain name visible by simply adding the digital ocean name servers to my provider and registering the domain name in my digital ocean account. But as soon as I do that, I loose my email on my provider side because everything (including the email) gets DNS’d to the droplet.