From 09a3e05577cf254ec09e6bef7f31249531491320 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 9 Mar 2024 13:11:14 +0100 Subject: [PATCH] Add resolved.conf --- README.md | 8 ++++++++ resolved.conf | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 resolved.conf diff --git a/README.md b/README.md index a89433a..35d1f86 100644 --- a/README.md +++ b/README.md @@ -33,5 +33,13 @@ docker compose restart - Web: 8999 - DNS: 53 +## systemd-resolved +If you use systemd-resolved (default on Arch Linux) you can use this command to apply a premade configuration file: +```bash +cp resolved.conf /etc/systemd/resolved.conf +systemctl restart systemd-resolved +resolvectl flush-caches +``` + ## License It's in the public domain. diff --git a/resolved.conf b/resolved.conf new file mode 100644 index 0000000..a799313 --- /dev/null +++ b/resolved.conf @@ -0,0 +1,9 @@ +# Copy this file to /etc/systemd/ +[Resolve] +DNS=127.0.0.1 +DNS=::1 +FallbackDNS=127.0.0.1 +FallbackDNS=::1 +Cache=no +CacheFromLocalhost=no +DNSStubListener=no