21 lines
674 B
Markdown
21 lines
674 B
Markdown
|
---
|
||
|
creation date: 2022-01-08
|
||
|
tags: [note,dns,linux,archlinux,network]
|
||
|
---
|
||
|
|
||
|
# DNS
|
||
|
|
||
|
0. Disable `systemd-resolved` if you want to use plain `resolv.conf`.
|
||
|
1. Either use router's DNS: Restart machine to have and updates `resolv.conf` file.
|
||
|
2. Use dedicated DNS, e.g. see [https://www.kuketz-blog.de/empfehlungsecke/#dns](https://www.kuketz-blog.de/empfehlungsecke/#dns) or your own.
|
||
|
3. 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 .............
|
||
|
```
|