The server responds with the IP address but not with the domain name

  • Posted July 16, 2020
  • DNS

I have seen some queries and I have tried to solve but I have not succeeded, I have basically published a wildfly which I access from any browser, putting the IP address and the listening port example: ##.##.##.##:port, and it works great, I bought a domain name and followed the procedure to delegate it to digitalocean’s DNS (, ns2 …) additionally when it didn’t work, add hostname www to the domain to try to enter but it still doesn’t work for me, any idea what is my problem?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hi @rramirezech,

You’ll need to add the domain to your WebService. Your WebService is either Nginx or Apache. If you are unsure which one you are using, you can easily check by going to your droplet via SSH and typing the following command

netstat -tulpen | grep 80

This will output what’s listening on port 80. If it’s Apache2/httpd, then you are using Apache, if it shows Nginx, well then it’s Nginx.

Now, based on the output, I’ll recommend you checking one of the following articles on how to create your virtual configuration (vhost) so that your domain actually works porperly.

If it is Apache, check out the following article:

If it is Nginx :

Regards, KFSys