Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.slow DNS lookup

How can I solve this?

share|improve this question
up vote 2 down vote accepted

Try using something like in the hosts file.

Further details in stackoverflow.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.