Cannot Reconnect domain to lightsail snapshot instance ubuntu nginx kestrel

0

I created an instance with a snapshot. I had some domains pointing to the nginx server. I changed the domain IP (DNS) to point to the new instance but .netcore site not coming up. I was able to connect via ssh and the site service is running. I also connected to the mysql database using that same IP

asked 8 months ago186 views
2 Answers
0

Hello.

Is the TTL of the DNS record set too long?
If the TTL is long, the IP may be accessed before the DNS is updated.
If it is a TTL problem, it may become accessible after a little time.
It is also possible that there may be some cache left in the router from which you are connecting or in your terminal, so a reboot may be effective.

profile picture
EXPERT
answered 8 months ago
  • I waited for 2 days and it didnt connect. I changed the IP back to the old instance and it connected. The only difference between the 2 snapshot instance and the original instance is that the original is 18.04 and I upgraded the snapshot instance to 20.04. All the services are running on both

0

Have you attempted visiting the instance IP address directly and ensuring it is working? This could let you know if the instance is with your instance or with DNS.

If you visit your IP directly (e.g. 1.2.3.4) and see the same problems, then you know the issue is with your instance itself. If the site loads as expected when visiting the IP then you know the issue is with your DNS records. Once we know that we can attempt to identify and address the issue.

AWS
MODERATOR
answered 7 months ago
  • The IP takes me to the Nginx Server.

    Welcome to nginx!

    If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

    For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com.

    Thank you for using nginx.

    I am using a reverse proxy with .netcore. The service is running on the server.

    The IP works with the MySQL server and am able to access the database remotely.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions