DNS is extremely slow

I noticed that DNS lookups are extremely slow in my unit tests of a Nodejs package on Travis. 80 lookups take over 60s.

Is there a way to mitigate this?

When reporting a problem, please include a build log URL that shows the problem you are describing. If it’s for a private repository and (or for any reason) you’d rather not discuss it in public, please close this issue and send email to support@travis-ci.com.

Thank you!