You are not logged in.

#1 2019-02-14 02:16:29

lnxsrt
Member
Registered: 2013-03-23
Posts: 16

[solved] systemd 240 breaks local domain resolving

I've noticed that after upgrading a couple of machines to systemd 240 that local domain resolution no longer works. I've confirmed that all of the settings are correct and identical and the "search domain" is present in the /etc/resolv.conf (link to /run/systemd/resolve/stub-resolv.conf). "networkctl status" confirms that all is identical.

Identical config works with 239, but no longer works with 240. The long form still works (hostname.domain), but the short version is broken (hostname). Downgrading to 239 fixes the issue. Anyone else seeing similar behavior?

Last edited by lnxsrt (2019-02-23 15:32:34)

Offline

#2 2019-02-14 05:21:11

dmartins
Member
Registered: 2006-09-23
Posts: 360

Re: [solved] systemd 240 breaks local domain resolving

Looks like it could be this upstream issue, which has a fix merged for version 241.
https://github.com/systemd/systemd/issues/11391

You can try cherry picking this commit to test it by adding 'fea46786ce45f1fa4ba2ad3a88049ccf078e68d3' to the backports array in the systemd PKGBUILD, then run makepkg as usual to create updated packages.

If this works for you, open a bug on the Arch Linux bug tracker referencing the systemd issue from above, and the devs may backport this to the official repos.

Last edited by dmartins (2019-02-14 05:23:00)

Offline

#3 2019-02-21 18:52:56

Defender110
Member
Registered: 2017-12-28
Posts: 13

Re: [solved] systemd 240 breaks local domain resolving

disregard. sorry, I don't think my issue is directly related to this bug.

Last edited by Defender110 (2019-02-21 18:55:34)

Offline

#4 2019-02-21 18:56:54

lnxsrt
Member
Registered: 2013-03-23
Posts: 16

Re: [solved] systemd 240 breaks local domain resolving

241 has fixed local name resolution for me. It works as it did in 239.

Offline

#5 2019-02-21 21:09:53

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [solved] systemd 240 breaks local domain resolving

You might want to edit your OP and tag that into the subject.

Offline

#6 2019-04-28 00:52:21

lnxsrt
Member
Registered: 2013-03-23
Posts: 16

Re: [solved] systemd 240 breaks local domain resolving

Broken again in 242. I've really tried to accept systemd, but they make it so very hard. Unreal.

Offline

#7 2019-04-28 11:03:07

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,866

Re: [solved] systemd 240 breaks local domain resolving

I've really tried to accept systemd, but they make it so very hard.

That's a familiar feeling to me .

as for the name resolving problems :
systemd-resolved appears to be the single biggest source of network problems this year.

You can't use systemd-networkd without systemd-resolved.
Networkmanager also is using systemd-resolved now by default.

You may want to look at other network managing options.
dhcpcd , dhclient, netctl are some of the possibilities.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#8 2019-04-28 11:44:20

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [solved] systemd 240 breaks local domain resolving

If you desire a local dns cache (what's questionable enough and silly if you've a dns proxy in your router) have a look at the alternatives here: https://wiki.archlinux.org/index.php/Do … NS_servers

Offline

#9 2019-04-28 21:14:59

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,679
Website

Re: [solved] systemd 240 breaks local domain resolving

Lone_Wolf wrote:

You can't use systemd-networkd without systemd-resolved.

Yes you can:

empty@shinken:~ $ systemctl is-enabled systemd-resolved
disabled
1|empty@shinken:~ $ networkctl --no-p
IDX LINK             TYPE               OPERATIONAL SETUP     
  1 lo               loopback           carrier     unmanaged 
  2 enp0s25          ether              no-carrier  configuring
  3 wlp2s0           wlan               routable    configured

3 links listed.
empty@shinken:~ $
Lone_Wolf wrote:

Networkmanager also is using systemd-resolved now by default.

If the OP removes the symlink and keeps /etc/resolv.conf as a static file then systemd-resolved will act as a consumer rather than a provider.

Or just disable it, as seth suggests.

Offline

#10 2019-04-29 10:23:42

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,866

Re: [solved] systemd 240 breaks local domain resolving

Thanks for the correction .

My personal solution :
only use tools that work with multiple PID1 implementations.
I use dhcpcd + ntp and let my router take care of name resolution.

Last edited by Lone_Wolf (2019-04-29 10:24:01)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#11 2019-04-29 15:08:15

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [solved] systemd 240 breaks local domain resolving

You can, but I'm not sure whether we've already established if systemd-networkd (by itself) can obtain the DNS server via dhcp to feed resolv.conf (and at least idk how)

Offline

#12 2019-04-30 06:06:03

gdl
Member
Registered: 2015-04-18
Posts: 4

Re: [solved] systemd 240 breaks local domain resolving

lnxsrt wrote:

Broken again in 242. I've really tried to accept systemd, but they make it so very hard. Unreal.

Yea, broken for me too.

Offline

Board footer

Powered by FluxBB