DNS ändern
Betriebssystem: Linux
Problem: DNS-Sperre EU-weit von rt.de
, obwohl wir nicht Kriegspartei sind im Ukraine-Konflikt
Lösung: Nameserver auf https://8.8.8.8
einstellen
Quelle: Telepolis, Kommentator mag2000 – https://www.heise.de/forum/p-41952317/
- Als root anmelden: mit
sudo bash
- Link umtaufen:
mv /etc/resolv.conf /etc/resolv.conf.bak
- Kopie erzeugen:
cp /etc/resolv.conf.bak /etc/resolv.conf
- Kopie editieren:
xed /etc/resolv.conf
- Zeile
nameserver
ändern auf8.8.8.8
- Speichern und als root abmelden
Inhalt der Datei:
# This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8). # Do not edit. # # This file might be symlinked as /etc/resolv.conf. If you're looking at # /etc/resolv.conf and seeing this text, you have followed the symlink. # # This is a dynamic resolv.conf file for connecting local clients to the # internal DNS stub resolver of systemd-resolved. This file lists all # configured search domains. # # Run "resolvectl status" to see details about the uplink DNS servers # currently in use. # # Third party programs should typically not access this file directly, but only # through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a # different way, replace this symlink by a static file or a different symlink. # # See man:systemd-resolved.service(8) for details about the supported modes of # operation for /etc/resolv.conf. # nameserver 127.0.0.53 nameserver 8.8.8.8 options edns0 trust-ad search speedport.ip
Kontrolle: resolvectl status
2.12.2022
<< | Heimatseite | Verzeichnis | Stichworte | Autor | >>