From b36ba70a70a30500f85341f5cdf3b84310bfc5fe Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 24 Apr 2024 07:30:21 +0300 Subject: [PATCH] systemd/service.d: add resolv.conf example with warnings --- etc/systemd/system/service.d/resolv.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 etc/systemd/system/service.d/resolv.conf diff --git a/etc/systemd/system/service.d/resolv.conf b/etc/systemd/system/service.d/resolv.conf new file mode 100644 index 00000000..2cfa80cb --- /dev/null +++ b/etc/systemd/system/service.d/resolv.conf @@ -0,0 +1,10 @@ +# Unlike everything else(?), this can actually be placed to +# /etc/systemd/system/service.d if /etc/resolv.conf cannot be modified +# for some reason and specify the search and options options. +# I would just edit /etc/resolv.conf directly though, but this is just a +# note that this is possible. +[Service] +Environment=LOCALDOMAIN=. +Environment=RES_OPTIONS="edns0 trust-ad timeout:1 attempts:5" + +# vim: filetype=systemd