It sounds like you're experiencing an issue with your website not working when trying to connect to it using a DNS (Domain Name System), but it works fine when using the IP address directly. Let's troubleshoot the problem together.
First, it's worth checking if the DNS settings are properly configured for your domain. Double-check that you've entered the correct DNS records, including the A record pointing to the IP address of your website. Sometimes, changes to DNS settings can take some time to propagate, so you might need to wait for a while for the changes to take effect.
If you've already tried using a different IP address in the DNS settings and it worked, there might be an issue with the original IP address you were using. Ensure that the IP address you're trying to use is correctly associated with your website and that it's accessible.
Since you mentioned trying a different DNS provider and still experiencing the issue, it's unlikely that the problem lies with the DNS service itself. However, it's always a good idea to verify that you've correctly configured the DNS settings with your current provider.
If the issue persists, it might be helpful to reach out to your web hosting provider for further assistance. They can investigate any potential server-related issues that could be causing the problem.
I hope these suggestions help you resolve the issue and get your website working properly with the DNS. If you have any further questions, feel free to ask. Good luck!