As a web developer, I need to make a domain redirect to localhost. I modified the hosts file to do that. But I don't know why it always took so long to do the lookup.
How can I solve this?
Try using something like mysite.dev in the hosts file.
Further details in stackoverflow.