This was a fun issue that I just went through hours of troubleshooting to resolve. If you use .local domains for local dev environment or just to setup local name resolution in your Windows hosts file, there could be a delay in DNS resolution due to Apple’s Bonjour service, win loss analysis. You can either remove the Bonjour service completely or refrain from using .local in your hosts file. I replaced all my .local entries with .loc and now my resolution is instant instead of taking 2 seconds. Use a sub-domain instead of a special TLD.