Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

We are having linux system in our organisation having 700 systems . I need to change the DNS server of every other system. I cant go and change the DNS in each and every system so i need a script, so that all the respective users can run the script and change the DNS config of their system

share|improve this question

migrated from May 22 '13 at 12:24

This question came from our site for professional and enthusiast programmers.

Why aren't you using DHCP to assign the DNS server? – Ignacio Vazquez-Abrams May 22 '13 at 10:23
Why aren't you using puppet to control your systems' configuration? – Michael Hampton May 22 '13 at 14:09

Write a script to change /etc/resolv.conf, or if you have DHCP, push the changes from DHCP.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.