2022-09-04 12:54:22 +00:00
|
|
|
---
|
|
|
|
creation date: 2022-01-08
|
|
|
|
tags: [note,dns,linux,archlinux,network]
|
|
|
|
---
|
|
|
|
|
2023-04-10 08:30:46 +00:00
|
|
|
1. Disable `systemd-resolved` if you want to use plain `resolv.conf`.
|
|
|
|
2. Either use router's DNS: Restart machine to have and updates `resolv.conf` file.
|
|
|
|
3. Use dedicated DNS, e.g. see [https://www.kuketz-blog.de/empfehlungsecke/#dns](https://www.kuketz-blog.de/empfehlungsecke/#dns) or your own.
|
|
|
|
4. Edit `resolv.conf` by making it immutable afterwards: `sudo chattr -i /etc/resolv.conf; sudo nano /etc/resolv.conf; sudo chattr +i /etc/resolv.conf`
|
2022-09-04 12:54:22 +00:00
|
|
|
|
|
|
|
```shell
|
|
|
|
options timeout:1
|
|
|
|
options single-request
|
|
|
|
# IPv4
|
|
|
|
nameserver ...
|
|
|
|
# IPv6
|
|
|
|
nameserver .............
|
|
|
|
```
|