← Back to team overview

touch-packages team mailing list archive

[Bug 1284607] Re: resolvconf ignores given dns-servers in /etc/network/interfaces

 

The use of TRUNCATE_NAMESERVER_LIST_AFTER_LOOPBACK_ADDRESS=no is defined
in the resolvconf documentation.

However, the resolvconf documentation also says that one should be able
to use dns-server settings in /etc/network/interfaces

This inconsistency is frustrating:  Is dnsmasq getting its DNS server
information from resolvconf, which in turn gets it from
/etc/network/interfaces?  Or, does dnsmasq take what it likes from
/etc/network/interfaces directly, discarding the rest?

I've managed to get static DNS server settings configured into my
machine by setting them in /etc/resolvconf/resolv.conf.d/base

/usr/share/doc/dnsmasq-base/README.Debian refers to settings in
/etc/dnsmasq.conf but I had no luck configuring anything in this file,
nor in /etc/dnsmasq.d/dnsmasq.conf

What's more, that documentation says /etc/dnsmasq.conf is "well
commented" however that file seems not to exist in the package
(therefor, none of its "good" comments exist in the package, either).
Nor does /etc/defaults/dnsmasq exist.  How is one to infer that that is
the place to configure this package, especially in light of the
contradictory information in the README.Debian file?

It seems the Ubuntu 14.04 use of dnsmasq departs significantly from the
way it is used in Debian, but in poorly-documented ways, and in ways
inconsistent with the documentation and its use alongside resolvconf.
Perhaps adding an /etc/defaults/dnsmasq file with
TRUNCATE_NAMESERVER_LIST_AFTER_LOOPBACK_ADDRESS=no in it, if in fact
that works, would be a reasonable default.  If /etc/network/interfaces
is not used, then no harm done, but if it is done, then the package can
respect that the system operator means for those settings to be used.
This would be consistent with the broader behavior of network-manager,
which also defers to settings made in /etc/network/interfaces.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to resolvconf in Ubuntu.
https://bugs.launchpad.net/bugs/1284607

Title:
  resolvconf ignores given dns-servers in /etc/network/interfaces

Status in “resolvconf” package in Ubuntu:
  Invalid

Bug description:
  resolvconf ignores given dns-servers in /etc/network/interfaces if the
  interface in question is configured by dhcp:

  auto em1
  iface em1 inet dhcp
    dns-nameservers 10.161.18.34 10.129.18.34
    dns-search xxx.yy

  the "dns-nameservers"-line is ignored (it shouldn't), while the "dns-
  search"-line is honoured:

  # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
  #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
  nameserver 127.0.0.1
  search xxx.yy

  Together with dnsmasq handling name resolution no names other tan
  local known ones are resolved.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: resolvconf 1.69ubuntu1
  ProcVersionSignature: Ubuntu 3.13.0-12.32-generic 3.13.4
  Uname: Linux 3.13.0-12-generic x86_64
  ApportVersion: 2.13.2-0ubuntu5
  Architecture: amd64
  Date: Tue Feb 25 12:57:34 2014
  InstallationDate: Installed on 2014-01-31 (25 days ago)
  InstallationMedia: Ubuntu-Server 13.10 "Saucy Salamander" - Release amd64 (20131016)
  PackageArchitecture: all
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=de_DE.UTF-8
   SHELL=/bin/bash
  SourcePackage: resolvconf
  UpgradeStatus: Upgraded to trusty on 2014-01-31 (25 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1284607/+subscriptions