systemd-resolved generated resolve.conf gets comment spam with high numbers of seach domains

Bug #1588229 reported by Andy Whitcroft
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

When a large number of search domains are configured in a *.network file the auto-generated /run/systemd/resolve/resolv.conf file is spammed with commentary for each and every dropped search term.

# This file is managed by systemd-resolved(8). Do not edit.
#
# Third party programs must not access this file directly, but
# only through the symlink at /etc/resolv.conf. To manage
# resolv.conf(5) in a different way, replace the symlink by a
# static file or a different symlink.

nameserver 1.2.3.4
nameserver 2.3.4.5
search this that other me you them # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored. # Too many search domains configured, remaining ones ignored. # Total length of all search domains is too long, remaining ones ignored.

Tags: resolved
Martin Pitt (pitti)
tags: added: resolved
Revision history for this message
Martin Pitt (pitti) wrote :

Reproduced in test cases, and fix+tests sent upstream: https://github.com/systemd/systemd/pull/3422

Changed in systemd (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

My fix landed upstream, and I cherry-picked it into the Debian packaging it.

Changed in systemd (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package systemd - 230-3git1

---------------
systemd (230-3git1) yakkety; urgency=medium

  Upload current Debian packaging git to fix tests.

  [ Martin Pitt ]
  * tmp.mount: Add nosuid and nodev mount options. This restores compatibility
    with the original SysV int RAMTMP defaults. (Closes: #826377)
  * debian/tests/upstream: Some tests fail on platforms without QEMU at the
    moment due to upstream PR#3587; blacklist these for now if QEMU is not
    available.
  * debian/rules: Don't run the "anything links against /usr" check for
    upstream tests, as those run on Ubuntu 16.04 LTS which does not yet have
    libidn moved to /lib.
  * debian/tests/upstream: Clean up old journals before running a test, to
    avoid printing a wrong one on failure.
  * debian/tests/upstream: Do not run the QEMU tests on i386. Nested QEMU on
    i386 causes testbed hangs on Ubuntu's cloud infrastructure, which is the
    only place where these actually run.

  [ Laurent Bigonville ]
  * Build with IDN support. (Closes: #814528)

 -- Martin Pitt <email address hidden> Thu, 23 Jun 2016 10:51:14 +0200

Changed in systemd (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.