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

Is it possible to change the DNS server and flush the DNS cache based on the user that is logged in via a Windows group policy or login script?

share|improve this question
up vote 2 down vote accepted

Yes and no.

Yes: you could change the DNS per user via a startup script that is launched via Group Policy.

No: DNS settings are machine local, so all users must share the settings. If you have two concurrent users there is no way for each user to have a different DNS setting if both users are connected at the same time.

So if you used a startup script, who ever logged in last would set the DNS for all of the connected users.

share|improve this answer

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.