A service is reachable by IP but not by hostname.
BeginnerTroubleshootingConnectivity: refused, timed out, no route
Answer
Likely causes → DNS problem, wrong /etc/hosts entry, or a virtual-host-based server returns a different site for the Host header.
Diagnose →
getent hosts app.example.com
dig app.example.com +short
curl -v --resolve app.example.com:443:203.0.113.10 https://app.example.com/
Fix → Fix the record or hosts file. If DNS is right but the response differs, check the server's server_name / vhost config.
Prevent → Monitor the public name, not just the IP.
More on Connectivity: refused, timed out, no route
`curl: (7) Failed to connect to 10.0.2.15 port 8080: Connection refused`Beginner`curl: (28) Failed to connect to api.internal port 443 after 130001 ms: Connection timed out`Beginner`ssh: connect to host 10.1.4.20 port 22: No route to host`BeginnerService works with `curl localhost:3000` on the box but times out from other hosts.Beginner`ping` works but `curl` to port 80 on the same host times out.Beginner`curl` to a public site works, but `ping 8.8.8.8` shows 100% packet loss.Beginner