Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have done some changes to /private/etc/hosts on my mac and need to flush the DNS cache.

Previously been using lookupd -flushcache on Mac OS X 10.4 to do this successfully. However something seems to have changed in Mac OS X 10.5, cause the lookupd command doesn't seem to exist? How do you flush the DNS cache in Mac OS X 10.5?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Found the answer on Mac OS X Hints =)

I primarily work with web servers, and I use lookupd -flushcache all of the time to clear my DNS cache.

This morning was moving some websites around using my newly-upgraded Mac, and I went to flush my DNS cache with lookupd and I got a command not found error. It seems that lookupd has been removed in 10.5 and replaced with dscacheutil.

So now I can flush my DNS cache with dscacheutil -flushcache.

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.