Switch DNS settings per Windows user?

3

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.

Rhythmic Algorithm

Posted 2009-07-15T08:33:09.840

Reputation: 240

Which version of windows are you using? – Andrew Cox – 2009-07-15T08:38:03.150

I am using xp pro – Rhythmic Algorithm – 2009-07-15T08:40:45.173

Answers

1

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.

Mark Turner

Posted 2009-07-15T08:33:09.840

Reputation: 901

1This is a "manual" solution - and it requires Admin rights too - so it will not work for web filtering, which @Rhythmic wants. – user1686 – 2010-06-13T16:28:27.613

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 – 2010-06-15T21:57:07.340

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. – None – 2011-01-19T10:14:03.747