specialunderwear / Hosts.prefpane

a Cocoa GUI for /etc/hosts
http://niggazpullintriggaz.blogspot.com/2011/11/how-i-managed-to-edit-etchosts-without.html
GNU General Public License v3.0
1.62k stars 126 forks source link

"Flush DNS cache" button #18

Open dgaspar opened 11 years ago

dgaspar commented 11 years ago

In the prefpane, it would be nice to have a button to flush the DNS cache

specialunderwear commented 11 years ago

That is not needed, because host file comes before dns lookup

superwills commented 11 years ago

@specialunderwear Interesting point, I think you're right. I think @dgaspar is talking about the need for

sudo killall -HUP mDNSResponder

If you don't do that after editing /etc/hosts, OS X still seems to use the old values (it doesn't update)

See https://discussions.apple.com/thread/4466790?start=0&tstart=0

specialunderwear commented 11 years ago

Yuck, that is just aweful. I'd have to say I never had this problem before, my changes to the hosts file seem to take effect immediately (as they should). So until I can confirm, this one goes on the wall as unconfirmed.

Lars van de Kerkhof

On 22 apr. 2013, at 22:53, superwills notifications@github.com wrote:

@specialunderwear Interesting point, I think you're right. I think @dgaspar is talking about the need for

sudo killall -HUP mDNSResponder If you don't do that after editing /etc/hosts, OS X still seems to use the old values (it doesn't update)

See https://discussions.apple.com/thread/4466790?start=0&tstart=0

— Reply to this email directly or view it on GitHub.