How can I save DNS Settings on behalf of the user

I would like to build an app that overrides DNS Server so I can route traffic to OpenDNS for Safe Search. Anyone knows which extension I can use to save the DNS Server IP Address on behalf of the user?