← Back to team overview

touch-packages team mailing list archive

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

 

> 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?


1. If you have only the dnsmasq-base and network-manager packages installed then a dnsmasq process is run as a slave of NetworkManager and gets its nameserver information exclusively from NetworkManager. This dnsmasq process provides name service exclusively at IP address 127.0.1.1.

2. If you have the "dnsmasq" package installed then a(nother) dnsmasq
process is run independently of NetworkManager. By default this
independent dnsmasq service is configured to obtain its nameserver
information exclusively from resolvconf which in turn gets nameserver
information from interface configuration processes including ifup, whose
configuration file is /etc/network/interfaces.

The fact that you have no /etc/dnsmasq.conf strongly suggests that you
do not have the "dnsmasq" package installed and so you fall into class
#1.

Dnsmasq itself never looks in /etc/network/interfaces.

To understand how resolvconf works, please consult
/usr/share/doc/resolvconf/README.gz .

To understand how Ubuntu uses NetworkManager, dnsmasq and resolvconf,
please consult https://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/
.

** Changed in: dnsmasq (Ubuntu)
       Status: New => Invalid

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

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

Status in “dnsmasq” package in Ubuntu:
  Invalid
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/dnsmasq/+bug/1284607/+subscriptions