18 lines
667 B
Markdown
18 lines
667 B
Markdown
---
|
|
creation date: 2022-01-08
|
|
tags: [note,dns,linux,archlinux,network]
|
|
---
|
|
|
|
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`
|
|
|
|
```shell
|
|
options timeout:1
|
|
options single-request
|
|
# IPv4
|
|
nameserver ...
|
|
# IPv6
|
|
nameserver .............
|
|
```
|