Article 6EE8E How to address the issue: failed to start Network Name Resolution

How to address the issue: failed to start Network Name Resolution

by
Cranegsh
from LinuxQuestions.org on (#6EE8E)
Hello,

I am setting up the wifi for a customized Linux image. It uses systemd to manage network.

Right now, I am able to config the ip address and ping 8.8.8.8, but get "bad address" when ping google.ca.

It is because that the systemd-resolved service failed to start.

systemctl status shows below info:
Active: failed (Result: exit-code)
Process: 254 ExecStart=/lib/systemd/systemd-resolved (code=exited, status=226/NAMESPACE).
Main PID: 255 (code=exited, status=226/NAMESPACE)

journalctl shows below info:
systemd-resolved.service: Failed to set up mount namespacing: /run/systemd/unit-root/dev: No such file or directory
systemd-resolved.service: Failed at step NAMESPACE spawning /lib/systemd/systemd-resolved: No such file or directory

I guess the issue is that the files required for systemd-resolved to execute successfully are not there.

But by googling I couldn't find how to set up there two files and how systemd-resolved sets up the name server.

Has tried to configure the name server in /etc/systemd/resolved.conf, /etc/systemd/resolved.conf.d/dns.conf and /run/systemd/resolve/resolv.conf. None of them works.

Any help is appreciated. Thanks!

Regards,
Crane
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments