Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com 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

1 Answer 1

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.