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.

link|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
feedback

closed as not constructive by Nifle, haimg, Mokubai, techie007, Sathya Dec 27 '11 at 18:07

This question is not a good fit to our Q&A format. We expect answers to generally involve facts, references, or specific expertise; this question will likely solicit opinion, debate, arguments, polling, or extended discussion. See the FAQ for guidance on how to improve it.

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.

link|improve this answer
feedback

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