Results 1 to 4 of 4

Thread: /etc/resolv.conf vs /etc/network/interfaces DNS?

  1. #1
    Join Date
    Jul 2012
    Beans
    23

    /etc/resolv.conf vs /etc/network/interfaces DNS?

    What is the point of /etc/resolv.conf if /etc/network/interfaces contains dns-nameservers for each interface that specifies the DNS? Does one override the other?

  2. #2
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: /etc/resolv.conf vs /etc/network/interfaces DNS?

    Yes, I believe the resolv.conf is overwritten with the info in dns-nameservers in /etc/network/interfaces. In fact, in the latest 12.04 LTS the recommendation is not to edit manually resolv.conf any more. Instead use dns-nameservers.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  3. #3
    Join Date
    Feb 2010
    Location
    California
    Beans
    244
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: /etc/resolv.conf vs /etc/network/interfaces DNS?

    Its also been my experience that resolv.conf is overwritten with dynamic info.

  4. #4
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,008
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: /etc/resolv.conf vs /etc/network/interfaces DNS?

    it's documented behaviour;

    /etc/resolv.conf is the traditional place to keep DNS server info;
    one used to edit it by hand;

    more recently the resolvconf progam has come in use, it automatically updates /etc/resolv.conf on behalf of a number of other network utilities to facilitate autoconfiguration mechanisms and such;
    That's why it's now recommended to have your DNS servers in .../network/interfaces.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •