This bug was fixed in the package systemd - 237-3ubuntu10.33
---
systemd (237-3ubuntu10.33) bionic; urgency=medium
*
d/p/lp1852754/0001-network-do-not-re-set-MTU-when-current-and-requested.patch,
d/p/lp1852754/0002-network-call-link_acquire_conf-and-link_enter_join_n.patch,
ubuntu@lp1832672-b:~$ dpkg -l systemd|grep ii
ii systemd237-3ubuntu10.31 amd64system and service manager
ubuntu@lp1832672-b:~$ grep bar /etc/hosts
127.0.2.1 foo # bar
ubuntu@lp1832672-b:~$ systemd-resolve -4 bar
bar: 127.0.2.1
-- Information acquired via protocol DNS in 1.9ms.
--
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.33 in a few
hours, and then in the -proposed repository.
Please help us by testing this new package. See
ubuntu@lp1832672-b:~$ dpkg -l systemd|grep ii
ii systemd237-3ubuntu10.31 amd64system and service manager
ubuntu@lp1832672-b:~$ grep bar /etc/hosts
127.0.2.1 foo # bar
ubuntu@lp1832672-b:~$ systemd-resolve -4 bar
bar: 127.0.2.1
-- Information acquired via protocol DNS in 1.5ms.
--
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
** Description changed:
+ [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
** Tags removed: next-ddstreet
** Tags added: bionic ddstreet
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1832672
Title:
systemd-resolve not ignoring comments in /etc/hosts
To manage
** Also affects: systemd (Ubuntu Bionic)
Importance: Undecided
Status: New
** Changed in: systemd (Ubuntu)
Status: New => Fix Released
** Changed in: systemd (Ubuntu Bionic)
Assignee: (unassigned) => Dan Streetman (ddstreet)
** Changed in: systemd (Ubuntu Bionic)