You could do this by running pkdns locally, then pointing your browser DNS to it.
I think a browser extension could simplify this process. That's the point.