systemd-resolve not ignoring comments in /etc/hosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| systemd |
Unknown
|
Unknown
|
||
| systemd (Ubuntu) |
Undecided
|
Unassigned | ||
| Bionic |
Medium
|
Dan Streetman |
Bug Description
[impact]
resolved does not ignore comments properly in /etc/hosts
[test case]
see original description below
[regression potential]
as this modifies resolved parsing of /etc/hosts, regressions would likely be in hostname lookups from hosts in /etc/hosts, or failure(s) to parse /etc/hosts correctly.
[other info]
original description:
---
$ lsb_release -rd
Description: Ubuntu 18.04.2 LTS
Release: 18.04
$ LANG=C apt-cache policy systemd
systemd:
Installed: 237-3ubuntu10.22
Candidate: 237-3ubuntu10.22
Version table:
*** 237-3ubuntu10.22 500
500 http://
100 /var/lib/
237-
500 http://
237-3ubuntu10 500
500 http://
500 http://
$ head -1 /etc/hosts
127.0.2.1 foo # bar
$ /usr/bin/
expected
----------
bar: resolve call failed: 'bar' not found
What happened instead
-------
bar: 127.0.2.1
HOSTS(5)
> Text from a "#" character until the end of the line is a comment, and is ignored.
This is fixed in upstream:
https:/
https:/
Please backport to current LTS version.
I accidentally connected to wrong systems because of this bug.
summary: |
- systemd-resolve not ignoring comments /etc/hosts + systemd-resolve not ignoring comments in /etc/hosts |
Changed in systemd (Ubuntu): | |
status: | New → Fix Released |
Changed in systemd (Ubuntu Bionic): | |
assignee: | nobody → Dan Streetman (ddstreet) |
importance: | Undecided → Medium |
status: | New → In Progress |
tags: | added: next-ddstreet systemd |
tags: |
added: bionic ddstreet removed: next-ddstreet |
description: | updated |
Changed in systemd (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
tags: | added: verification-needed verification-needed-bionic |
All autopkgtests for the newly accepted systemd (237-3ubuntu10.32) for bionic have finished running.
The following regressions have been reported in tests triggered by the package:
gvfs/1.
linux/unknown (ppc64el)
Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUp
https:/
[1] https:/
Thank you!
Dan Streetman (ddstreet) wrote : | #3 |
ubuntu@
ii systemd 237-3ubuntu10.31 amd64 system and service manager
ubuntu@
127.0.2.1 foo # bar
ubuntu@
bar: 127.0.2.1
-- Information acquired via protocol DNS in 1.5ms.
-- Data is authenticated: yes
ubuntu@
ii systemd 237-3ubuntu10.32 amd64 system and service manager
ubuntu@
127.0.2.1 foo # bar
ubuntu@
bar: resolve call failed: 'bar' not found
tags: |
added: verification-done verification-done-bionic removed: verification-needed verification-needed-bionic |
Hello Bruno, or anyone else affected,
Accepted systemd into bionic-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-
Further information regarding the verification process can be found at https:/
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.
tags: |
added: verification-needed verification-needed-bionic removed: verification-done verification-done-bionic |
All autopkgtests for the newly accepted systemd (237-3ubuntu10.33) for bionic have finished running.
The following regressions have been reported in tests triggered by the package:
gvfs/1.
dovecot/
umockdev/0.11.1-1 (ppc64el)
Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUp
https:/
[1] https:/
Thank you!
Dan Streetman (ddstreet) wrote : | #6 |
ubuntu@
ii systemd 237-3ubuntu10.31 amd64 system and service manager
ubuntu@
127.0.2.1 foo # bar
ubuntu@
bar: 127.0.2.1
-- Information acquired via protocol DNS in 1.9ms.
-- Data is authenticated: yes
ubuntu@
ii systemd 237-3ubuntu10.33 amd64 system and service manager
ubuntu@
127.0.2.1 foo # bar
ubuntu@
bar: resolve call failed: 'bar' not found
tags: |
added: verification-done verification-done-bionic removed: verification-needed verification-needed-bionic |
Launchpad Janitor (janitor) wrote : | #7 |
This bug was fixed in the package systemd - 237-3ubuntu10.33
---------------
systemd (237-3ubuntu10.33) bionic; urgency=medium
* d/p/lp1852754/
d/p/
d/p/
- Complete link setup after setting mtu (LP: #1852754)
systemd (237-3ubuntu10.32) bionic; urgency=medium
[ Victor Tapia ]
* d/p/resolved_
Fix regression introduced by
resolved-
DNSSEC=yes (LP: #1796501)
[ Dan Streetman ]
* d/p/fix-
- Fix typo in previous patch
* d/p/lp1840640-
- allow sync_file_range2 in nspawn container
(LP: #1840640)
* d/p/lp1783994-
- avoid systemd-
(LP: #1783994)
* d/p/lp1832672-
- do not fail entire file on error when parsing /etc/hosts
- parse # char anywhere in line as start of comment
(LP: #1832672)
* d/p/lp1843381-
debian/
- fix rename delay for systems using "Dell MAC passthrough"
(LP: #1843381)
* d/p/lp1849733/
d/p/
d/p/
d/p/
d/p/
d/p/
d/p/
d/p/
d/p/
d/p/
d/p/
d/p/
d/p/
- add TCP pipelining to handle getaddrinfo() fallback to TCP
- ignore EDNS0 payload limit when responding over TCP (LP: #1849733)
* d/p/lp1849658-
- Fix bug in refcounting TCP stream types (LP: #1849658)
* d/p/lp1850704/
d/p/
- Fix setting mtu if interface already up (LP: #1850704)
* d/extra/
- only restart resolved if dhclient conf changed (LP: #1805183)
-- Dan Streetman <email address hidden> Fri, 15 Nov 2019 10:01:16 -0500
Changed in systemd (Ubuntu Bionic): | |
status: | Fix Committed → Fix Released |
Steve Langasek (vorlon) wrote : Update Released | #8 |
The verification of the Stable Release Update for systemd has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
Hello Bruno, or anyone else affected,
Accepted systemd into bionic-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ systemd/ 237-3ubuntu10. 32 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification- needed- bionic to verification- done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed- bionic. In either case, without details of your testing we will not be able to proceed.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance for helping!
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.