Fix systemd resolved not working (

Systemd comes with its own implementation: systemd-resolved. Ubuntu included systemd-resolved in version 16.10 and it’s now present in latest 18.04. These cause resolv.conf use and in many case make system cannot resolve name.

I found some tricks to slove this issue.

  1. Edit /etc/systemd/resolved.conf replace DNS_IPx with your DNS’s IP
  2. Make link resolv.conf
    ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
  3. Restart systemd-resolved
    systemctl restart systemd-resolved

2 Replies to “Fix systemd resolved not working (”

Leave a Reply

%d bloggers like this: