By accessing the site'm being redirected to the server ip, must remain the link being

Posted September 27, 2016 910 views
UbuntuDNSUbuntu 16.04

By accessing the site’m being redirected to the server ip, must remain the link being

Apparently dns not working

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

Without more details it’ll be difficult to provide a 100% guaranteed solution for this problem but based on how often I see it, I have a guess.

First, this is not a DNS issue. DNS only makes sure that your computer finds out the IP address to send it’s request to. It would appear that DNS is working correctly as you are getting to the server. DNS cannot redirect a domain name to an IP address in your address bar, that has to be done by a web service.

Instead, this appears to be a default URL set in the software you are running your site on. This is a common issue for people using WordPress if they installed it using the IP address in the process rather than the name. WordPress will make sure that visitors are redirected to the configured domain name. In some cases this can make sure a www is present or not present in the domain or see that multiple domains pointed to one website all get redirected to the main name for that site.

You’ll need to update your WordPress configuration via the wp-admin panel and set your Site Address (URL) to your domain name under Settings->General.