Add resolved.conf
This commit is contained in:
parent
76c7c99f0b
commit
09a3e05577
2 changed files with 17 additions and 0 deletions
|
@ -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.
|
||||
|
|
9
resolved.conf
Normal file
9
resolved.conf
Normal file
|
@ -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
|
Loading…
Reference in a new issue