jonathanio / update-systemd-resolved

Helper script for OpenVPN to directly update the DNS settings of a link through systemd-resolved via DBus.
Other
761 stars 94 forks source link

cannot access '/run/systemd/resolve/stub-resolv.conf': No such file or directory #82

Closed queglay closed 3 years ago

queglay commented 4 years ago

I'm interested to see if I can get DNS working on my ubuntu 16.04 gateway into an AWS access server.

It appears the stub resolver is the recommended method (instead of NSS) for Ubuntu 16.04 I've read the docs, and I must be missing something, because /run/systemd/resolve/stub-resolv.conf doesn't exist. Should I be using this method for Ubuntu 16?

schnuffle commented 3 years ago

On 16.04 systemd-resolved is not active by default, you need to activate it

Regards

Schnuffle

queglay commented 3 years ago

Thanks I will try this out.