Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

1 Answer 1

up vote 2 down vote accepted

Try using something like mysite.dev in the hosts file.

Further details in stackoverflow.

share|improve this answer

Your Answer

 
discard

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.