systemd/service.d: add resolv.conf example with warnings

This commit is contained in:
Aminda Suomalainen 2024-04-24 07:30:21 +03:00
parent ba55b2c9e9
commit b36ba70a70
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -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