systemd-resolved generated resolve.conf gets comment spam with high numbers of seach domains
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/
# This file is managed by systemd-
#
# 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.
Reproduced in test cases, and fix+tests sent upstream: https:/ /github. com/systemd/ systemd/ pull/3422