Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have set up an account at OpenDNS for web filtering. I think it is a great service and don't want to change to any alternative.

What I would like to do is change the DNS settings per user so I can choose who on that particular computer has filtered web access. What is the most reliable/robust solution to do this?

Windows XP Professional.

share|improve this question
Which version of windows are you using? – Andrew Cox Jul 15 '09 at 8:38
I am using xp pro – Rhythmic Algorithm Jul 15 '09 at 8:40

I suggest you look at writing a script that uses the netsh command. Example:

netsh interface ip set dns "Local Area Connection" <Primary DNS ADDRESS>
netsh interface ip set dns "Local Area Connection" <Secondary DNS ADDRESS> index=2

You can leave the script on the desktop of any user that needs to change the dns information, you can also create a script that reverses the change and set that script to run at logout.

share|improve this answer
This is a "manual" solution - and it requires Admin rights too - so it will not work for web filtering, which @Rhythmic wants. – grawity Jun 13 '10 at 16:28
You can place these lines in the login script for each individual user or groups of users in OU's if he's using AD. – Mark Turner Jun 15 '10 at 21:57
But isn't this per a machine like all other TCP/IP settings and not per users ? This will probably will not work on a terminal server. – user63682 Jan 19 '11 at 10:14

Your Answer


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.