fix ssl letsencrypt for android personal dns

This commit is contained in:
mercury
2023-04-22 19:52:51 +04:00
parent aad0b4597a
commit 3fd9eb9220
3 changed files with 14 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
make d
rm /etc/systemd/resolved.conf.d/adguardhome.conf
mv /etc/resolv.conf.backup /etc/resolv.conf
systemctl reload-or-restart systemd-resolved
make u
+8
View File
@@ -0,0 +1,8 @@
mkdir /etc/systemd/resolved.conf.d
echo "[Resolve]
DNS=127.0.0.1
DNSStubListener=no" > /etc/systemd/resolved.conf.d/adguardhome.conf
mv /etc/resolv.conf /etc/resolv.conf.backup
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
systemctl reload-or-restart systemd-resolved
make d u