added resolvctl and grub config

This commit is contained in:
piccihud 2023-10-15 16:29:21 +02:00
parent f8b958f611
commit e79174320c
2 changed files with 32 additions and 1 deletions

View File

@ -210,7 +210,10 @@ GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX=""
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="systemd.show_status=1"
GRUB_GFXMODE=1920x1080
GRUB_GFXPAYLOAD_LINUX=keep
```
![debian](./asset/minidebian/debian42.png)

View File

@ -45,6 +45,33 @@ sudo chattrr +i /etc/resolv.conf
sudo systemctl restart NetworkManager.service
```
## resolvconf
Installare il seguente pacchetto e abilitarlo:
```bash
apt install resolvconf
systemctl enable --now resolvconf.service
systemctl status resolvconf.service
```
Modificare il file di configurazione, aggiungendo i dns:
```bash
nano /etc/resolvconf/resolv.conf.d/head
nameserver 5.2.75.75
nameserver 1.1.1.1
```
Infine, aggiornare il file `resolv.conf` coi comandi:
```bash
resolvconf --enable-updates
resolvconf -u
```
## Impostare NextDNS da browser
È possibile anche modificare i DNS direttamente dal browser, utilizzando **DNS over HTTPS** (**DoH**): l'obiettivo principale del protocollo è di aumentare la privacy dell'utente e la sicurezza prevenendo intercettazioni e manipolazioni dei dati del DNS attraverso attacchi *man in the middle*.
@ -78,3 +105,4 @@ Per esempio: `https://dns.nextdns.io/12ff34/Firefox%20di%20Mario`
- [https://www.lealternative.net/2022/11/02/nextdns/](https://www.lealternative.net/2022/11/02/nextdns/)
- [https://my.nextdns.io/](https://my.nextdns.io/)
- [https://it.linux-console.net/?p=520#gsc.tab=0](https://it.linux-console.net/?p=520#gsc.tab=0)
- [https://www.ionos.com/digitalguide/server/configuration/how-to-set-dns-on-debian/](https://www.ionos.com/digitalguide/server/configuration/how-to-set-dns-on-debian/)