Slow dns lookup to custom domain

Strange, it should be milliseconds, rather than seconds.

Is this the very first time you connect to the app after a deploy (so within, say, 60 seconds of deploying)? Or does it persist and is still an issue once several minutes have passed?

Only there is a known issue (which is being fixed) where, after a deploy, it can take a minute or so for the new vm/instance to be found by the proxy, and that can result in large delays in requests being responded to.

If so, that can be mitigated by having a minimum of three vms and using a rolling deploy strategy to give time for them to be recognised: