DNS lookup adding 1s, missing search domain
Our service resolves internal names like db and it takes about 1s each time. Using short names and /etc/resolv.conf has: search svc.internal.example.com and nameserver 10.0.0.53. If I use the FQDN db.svc.internal.example.com it is instant. Is the search domain causing the delay? I inherited this config and never questioned why we use short names everywhere. The one-second delay adds up because our service resolves these names on every request rather than caching them.
4 replies