It takes about 20-120 milliseconds for DNS (Domain Name System) to resolve IP address for a given hostname or domain name and the browser cannot do anything until the process is properly completed.
Before a browser can establish a network connection to a web server, it must resolve the DNS name of the web server to an IP address. Since DNS resolutions can be cached by the client's browser and operating system, if a valid record is still available in the client's cache, there is no latency introduced. However, if the client needs to perform a DNS lookup over the network, the latency can vary greatly depending on the proximity of a DNS name server that can provide a valid response.
So... how to / is there any way to reduce this DNS lookups through some server-side optimization or something else? Am i helpless here or it depends on size of web page / my hosting provider?
resolver 8.8.8.8 8.8.4.4 valid=300s;