Spiros Kontolatis
Spiros Kontolatis

Reputation: 3

Google cloud DNS resolves correctly but times out

My client has a domain name registered at namecheap (tourmed.uk) which I want to migrate to point to the project's google cloud instance. I created a zone, added A and CNAME records pointing to the External Static IP of the instance and copied the nameservers to the domain custom dns at namecheap.

When I ping or nslookup tourmed.uk, the ip resolves fine, however when I visit on any browser or telnet, I get a timeout. dnschecker.org shows that everything is ok.

I examined network tab on my inspector and nothing gets fetched, it seems like it cannot connect to my instance, however the IP is correct.

Any help would be very much appreciated, I'm at a loss.

-----------------FIXED---------------------

Turns out, nothing was listening at port 8080 on the instance. I opened ports 80 and 443 on the google cloud firewall, configured the forwarding from 8080 to 80 and started my server and it all worked!

Upvotes: 0

Views: 1212

Answers (1)

Wojtek_B
Wojtek_B

Reputation: 4443

From your description I summarize that you run some website or an app in the VM in question. I've checked the DNS records and they are OK but have not yet propagated all over Internet - but that is not the case here.

I also can't get anything in the browser, but SSH works which confirms that DNS is not the suspect.

Please check your firewall rules and make sure port 80 and 443 is open for the traffic. If you're not sure how to do this then you can have a look at documentation here.

I assume that you are using Linux so check if your web service is running; if you're using apache then type sudo service apache2 status or change apache for nginx or whatever you're using.

But if you're using Windows VM then also check the services - try to restart them, or even entire VM.

If that doesn't help you please provide more details (type of the OS, service) - maybe some logs etc. This will help to resolve your issue.

Upvotes: 0

Related Questions