Use Custom DNS Name Server
After finding that my school network provided DNS name server doesn't work on my laptop(specifically my Arch Linux system, not my Windows system), I set custom DNS name server for my Arch Linux system.
I use NetworkManager
to manage my computer network. It automatically query network provider(like a WiFi) and set DNS name server for me by modifying /etc/resolve.conf
. To set custom DNS name server, the first step is disable NetworkManager's auto setting DNS behavior. Write those content into /etc/NetworkManager/conf.d/dns.conf
(refer to NetworkManager#Unmanaged_/etc/resolv.conf - ArchWiki)
|
|
Then restart NetworkManager by executing command sudo systemctl restart NetworkManager
Then you can change the content of /etc/resolve.conf
happily :). Here I use the Google's DNS name server.
|
|
After that, you can use dig
tool(in Arch Linux Pakcage bind
) to check your DNS setting, for instance, dig raw.githubusercontent.com
.
Enjoy!