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

Is it possible to configure a Linux server not to use the dns-servers it receives from the ISP? If it is, how can it be done?



share|improve this question
up vote 8 down vote accepted

Just add your desired servers to /etc/resolv.conf:


If your resolv.conf is being overwritten by the information your dhcp client is getting from the ISP, there are usually ways to prevent that, but we'd need more info about what linux distro you're running and what dhcp client you're using.

share|improve this answer
+1 for recommending Google DNS servers. The world domination plan is proceeding on schedule. – Steven Monday Oct 29 '10 at 19:05
I didn't intentionally pick google's servers - those two were just the first two public DNS servers I could remember at the time. – EEAA Oct 29 '10 at 19:07

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.