Tue Sep 11, 2018 1:27 am
If you're trying to resolve hostname only, then your computer goes through various steps to resolve it.
1. It checks the hosts file, this returns immediately.
2. It checks DNS, if any of your adapters has a dns suffix then it'll try and resolve that way. If any DNS servers are slow to respond, this adds a delay.
3. When DNS fails, it'll then try a WINS server if configured.
4. If no WINS server configured, or it times out, then it'll try to contact the "Computer Browser" service on the network.
5. Finally if that doesn't work, then it uses a netbios broadcast where it asks all computers on a network if it has the name you're looking for.
Since you're not using DNS, timeouts in the rest of the steps may account for the 4 second delay.