DEV Community

ADONIS SIMO
ADONIS SIMO

Posted on

How to reduce DNS query response time ?

Hi, I am facing a kind of weird issue with my backend api, all the query i send to it with a tool like Insomnia REST client or raw python code using requests lib take ~77sec to reach the server and return a response, but it is fast when i do the same query from the frontend app (via API Calls).

I tried this command from a forum, it seem related to the DNS.

Alt Text

My API is hosted on AWS (ECS) and everything is behind an Application Load Balancer, when i check the stat (Target Response Time, etc) everything is normal, i mean response are in average 400ms, that makes me think the issue is with the DNS system.

Thanks

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more