How to get the systemd resolver to resolve local (i.e. unqalified) names?

Tom H tomh0665 at gmail.com
Sun Jun 4 09:45:47 UTC 2017


On Sun, Jun 4, 2017 at 3:46 AM, Xen <list at xenhideout.nl> wrote:
> Chris Green schreef op 04-06-2017 8:36:
>
> [Unit]
> Description=Send an email
>
> [Service]
> Type=oneshot
> ExecStart=/bin/su root -c '/usr/bin/mail -s changed root < /etc/resolv.conf'

You don't need "/bin/su root". If you're really worried that it won't
default to "root" you can set "User=root".




More information about the ubuntu-users mailing list