Super User is a question and answer site for computer enthusiasts and power users. 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

I saw many different /etc/resolve.conf configurations on the net. Some of them have just nameservers listed, some of them have 'search', some of them have 'round robin' parameters... etc.

What are the best practices for /etc/resolv.conf file on Ubuntu?

EDIT: This is machine running Ruby on Rails Web server with Apache front end. The server has occasional access to Google Data APIs.

So the questions are:

  • Should I use google DNS servers or server provided by my hosting?
  • Should I have anything else additional to nameserver entries?

I understand there are manuals but I'm confused why different cloud providers (Rackspace, SoftLayer, etc) have different configurations.

share|improve this question

closed as not constructive by Nifle, haimg, Mokubai, Ƭᴇcʜιᴇ007, Sathya Dec 27 '11 at 18:07

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

It greatly depends on your network setup and DNS server. Since you didn't write anything about it, there could not be any generic advice. Visit resolv.conf manpage to read about its contents: – haimg Dec 25 '11 at 19:34

This depends entirely on what you want to achieve from the dns.

If the machine is on its own, possibly the most straight forward is to simply set two name server entries to some dns provider such as Google.

If you have several machines and/or a domain, you are best off using a search domain if the router/domain has one and select the router as the dns server... Then from the router, configure it's dns server to google or something else.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .