resolvconf doesn't create the correct /etc/resolv.conf file when static IP addresses are used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dnsmasq (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
By default, when installing ubuntu-desktop (and when installing some other packages as well), apt will also install dnsmasq as a dependency. When dnsmasq is installed, and static IP addresses are used, resolv.conf creates a nearly empty /etc/resolv.conf file. The file only contains entries for localhost and the search domain. If static IP addresses are defined in /etc/network/
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: resolvconf 1.78ubuntu2
ProcVersionSign
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
Date: Wed Apr 27 08:34:24 2016
InstallationDate: Installed on 2016-04-26 (0 days ago)
InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.3)
PackageArchitec
SourcePackage: resolvconf
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
affects: | resolvconf (Ubuntu) → dnsmasq (Ubuntu) |
Not dnsmasq but dnsmasq-base is pulled in by ubuntu-desktop.
If you define your interfaces statically using /etc/network/ interfaces then you have to add the nameserver information to /etc/network/ interfaces on lines like "dns-nameserver 1.2.3.4". See resolvconf(8) for more info.