Cara mengatur OpenDNS atau Google DNS di Fedora / RHEL
Sistem keluarga Fedora dan RHEL biasanya menggunakan NetworkManager plus systemd-resolved.
Mengapa mengubah DNS di Fedora?
DNS kustom menghindari resolver ISP yang captive atau terfilter yang hanya merusak beberapa domain.
Server DNS publik yang direkomendasikan
- OpenDNS (Cisco): 208.67.222.222 / 208.67.220.220
- Google Public DNS: 8.8.8.8 / 8.8.4.4
- Cloudflare DNS: 1.1.1.1 / 1.0.0.1
Konfigurasi DNS
- Buka Settings → Network dan edit profil wired atau Wi‑Fi aktif.
- Di IPv4, nonaktifkan automatic DNS jika ada dan tambahkan 8.8.8.8 dan 8.8.4.4 (atau alamat OpenDNS).
- Apply dan sambungkan kembali.
- Alternatif CLI: sudo nmcli connection modify "CONNECTION_NAME" ipv4.dns "208.67.222.222 208.67.220.220" ipv4.ignore-auto-dns yes
- Aktifkan kembali koneksi dengan nmcli connection up "CONNECTION_NAME".
Flush cache
Hapus systemd-resolved setelah perubahan.
sudo resolvectl flush-caches
- Jalankan sudo resolvectl flush-caches
- Opsional restart NetworkManager: sudo systemctl restart NetworkManager
- Uji dengan curl -I https://example.com
Verifikasi berhasil
Konfirmasi server DNS di nmcli connection show "CONNECTION_NAME" | grep ipv4.dns.
Panduan DNS terkait
- Cara mengatur OpenDNS atau Google DNS di Windows 11
- Cara mengatur OpenDNS atau Google DNS di Windows 10
- Cara mengatur OpenDNS atau Google DNS di Windows 8
- Cara mengatur OpenDNS atau Google DNS di Windows 7
- Cara mengatur OpenDNS atau Google DNS di Windows Vista
- Cara mengatur OpenDNS atau Google DNS di Windows XP
- Cara mengatur OpenDNS atau Google DNS di macOS
- Cara mengatur OpenDNS atau Google DNS di Ubuntu / Debian
- Cara mengatur OpenDNS atau Google DNS di Android
- Cara mengatur OpenDNS atau Google DNS di iPhone & iPad
- Cara mengatur OpenDNS atau Google DNS di ChromeOS
- Cara mengatur OpenDNS atau Google DNS di router