Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I saw many different /etc/resolve.conf configurations on the net. Some of them have just nameservers listed, some of them have 'search local.localhost.net', 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
    
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: linuxcertif.com/man/8/resolvconf –  haimg Dec 25 '11 at 19:34
add comment

closed as not constructive by Nifle, haimg, Mokubai, techie007, 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.

1 Answer

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
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.